Struct network_endian::NetworkEndianU128[][src]

#[repr(C, packed)]
pub struct NetworkEndianU128(_);

Modelled as a packed 16-byte array rather than u128 because (a) it is not native endian and (b) its alignment is not necessary 16 bytes (it's actually 1).

Methods

impl NetworkEndianU128
[src]

Zero: Self = NetworkEndianU128([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

Zero.

Maximum: Self = NetworkEndianU128([255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
                   255, 255, 255, 255])

Maximum.

From network endian.

To network endian.

To native endian.

From native endian.

Is not zero.

Trait Implementations

impl Default for NetworkEndianU128
[src]

Returns the "default value" for a type. Read more

impl Debug for NetworkEndianU128
[src]

Formats the value using the given formatter. Read more

impl Copy for NetworkEndianU128
[src]

impl Clone for NetworkEndianU128
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for NetworkEndianU128
[src]

impl PartialEq for NetworkEndianU128
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for NetworkEndianU128
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for NetworkEndianU128
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for NetworkEndianU128
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Into<[u8; 16]> for NetworkEndianU128
[src]

Performs the conversion.

impl From<[u8; 16]> for NetworkEndianU128
[src]

Performs the conversion.

impl NetworkEndian for NetworkEndianU128
[src]

Length: usize = 16

Length in bytes.

Implements [u8; Self::Length] but this can not yet be expressed in Rust.

Convert into bytes.

Underlying bytes.

Writes to a hasher creating a hash.

impl Display for NetworkEndianU128
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations