Trait network_endian::NetworkEndian[][src]

pub trait NetworkEndian: Sized + Default + Debug + Copy + Clone + PartialOrd + Ord + PartialEq + Eq + Hash + Display + Serialize + DeserializeOwned {
    type Bytes;

    const Length: usize;

    fn to_bytes(self) -> Self::Bytes;
fn bytes(&self) -> &[u8];
fn write_to_hash<H: Hasher>(&self, hasher: &mut H); }

Abstract network endian data.

Associated Types

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

Associated Constants

Length in bytes.

Required Methods

Convert into bytes.

Underlying bytes.

Writes to a hasher creating a hash.

Implementors