Struct sep2_common::packages::primitives::Uint16
source · pub struct Uint16(pub u16);
Expand description
Unsigned integer, max inclusive 65535 (2^16-1)
Tuple Fields§
§0: u16
Methods from Deref<Target = u16>§
pub const MIN: u16 = 0u16
pub const MAX: u16 = 65_535u16
pub const BITS: u32 = 16u32
Trait Implementations§
source§impl Ord for Uint16
impl Ord for Uint16
source§impl PartialEq<Uint16> for Uint16
impl PartialEq<Uint16> for Uint16
source§impl PartialOrd<Uint16> for Uint16
impl PartialOrd<Uint16> for Uint16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Uint16
impl Eq for Uint16
impl StructuralEq for Uint16
impl StructuralPartialEq for Uint16
Auto Trait Implementations§
impl RefUnwindSafe for Uint16
impl Send for Uint16
impl Sync for Uint16
impl Unpin for Uint16
impl UnwindSafe for Uint16
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more