#[repr(C)]pub struct NetworkU16(pub u16);Expand description
Wrapper around a network order integer
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
Source§impl Clone for NetworkU16
impl Clone for NetworkU16
Source§fn clone(&self) -> NetworkU16
fn clone(&self) -> NetworkU16
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkU16
impl Debug for NetworkU16
Source§impl Display for NetworkU16
impl Display for NetworkU16
Source§impl From<u16> for NetworkU16
impl From<u16> for NetworkU16
Source§impl Hash for NetworkU16
impl Hash for NetworkU16
Source§impl Ord for NetworkU16
impl Ord for NetworkU16
Source§fn cmp(&self, other: &NetworkU16) -> Ordering
fn cmp(&self, other: &NetworkU16) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NetworkU16
impl PartialEq for NetworkU16
Source§impl PartialOrd for NetworkU16
impl PartialOrd for NetworkU16
impl Copy for NetworkU16
impl Eq for NetworkU16
impl StructuralPartialEq for NetworkU16
Auto Trait Implementations§
impl Freeze for NetworkU16
impl RefUnwindSafe for NetworkU16
impl Send for NetworkU16
impl Sync for NetworkU16
impl Unpin for NetworkU16
impl UnwindSafe for NetworkU16
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