[−][src]Struct byteordered::StaticEndianness
A data type representing a byte order known in compile time.
Unlike the types provided in byteorder
, this type can be constructed.
The parameter type E
can be one of either byteorder::BigEndian
or byteorder::LittleEndian
.
Methods
impl<E> StaticEndianness<E>
[src]
impl StaticEndianness<NativeEndian>
[src]
Trait Implementations
impl<E> Endian for StaticEndianness<E> where
E: HasOpposite,
E: StaticNative,
E: ByteOrder,
[src]
E: HasOpposite,
E: StaticNative,
E: ByteOrder,
type Opposite = StaticEndianness<E::Opposite>
A type which can represent a byte order that is opposite to this one.
fn into_opposite(self) -> Self::Opposite
[src]
fn is_native(&self) -> bool
[src]
fn read_i16<S>(&self, src: S) -> IoResult<i16> where
S: Read,
[src]
S: Read,
fn read_u16<S>(&self, src: S) -> IoResult<u16> where
S: Read,
[src]
S: Read,
fn read_i32<S>(&self, src: S) -> IoResult<i32> where
S: Read,
[src]
S: Read,
fn read_u32<S>(&self, src: S) -> IoResult<u32> where
S: Read,
[src]
S: Read,
fn read_i64<S>(&self, src: S) -> IoResult<i64> where
S: Read,
[src]
S: Read,
fn read_u64<S>(&self, src: S) -> IoResult<u64> where
S: Read,
[src]
S: Read,
fn read_i128<S>(&self, src: S) -> IoResult<i128> where
S: Read,
[src]
S: Read,
fn read_u128<S>(&self, src: S) -> IoResult<u128> where
S: Read,
[src]
S: Read,
fn read_f32<S>(&self, src: S) -> IoResult<f32> where
S: Read,
[src]
S: Read,
fn read_f64<S>(&self, src: S) -> IoResult<f64> where
S: Read,
[src]
S: Read,
fn write_i16<W>(&self, src: W, x: i16) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_u16<W>(&self, src: W, x: u16) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_i32<W>(&self, src: W, x: i32) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_u32<W>(&self, src: W, x: u32) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_i64<W>(&self, src: W, x: i64) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_u64<W>(&self, src: W, x: u64) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_i128<W>(&self, src: W, x: i128) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_u128<W>(&self, src: W, x: u128) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_f32<W>(&self, src: W, x: f32) -> IoResult<()> where
W: Write,
[src]
W: Write,
fn write_f64<W>(&self, src: W, x: f64) -> IoResult<()> where
W: Write,
[src]
W: Write,
impl From<StaticEndianness<LittleEndian>> for Endianness
[src]
fn from(_: StaticEndianness<LittleEndian>) -> Self
[src]
impl From<StaticEndianness<BigEndian>> for Endianness
[src]
fn from(_: StaticEndianness<BigEndian>) -> Self
[src]
impl<E: Clone> Clone for StaticEndianness<E>
[src]
fn clone(&self) -> StaticEndianness<E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Copy> Copy for StaticEndianness<E>
[src]
impl<E> Default for StaticEndianness<E>
[src]
impl<E: Eq> Eq for StaticEndianness<E>
[src]
impl<E: Ord> Ord for StaticEndianness<E>
[src]
fn cmp(&self, other: &StaticEndianness<E>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<E: PartialEq> PartialEq<StaticEndianness<E>> for StaticEndianness<E>
[src]
fn eq(&self, other: &StaticEndianness<E>) -> bool
[src]
fn ne(&self, other: &StaticEndianness<E>) -> bool
[src]
impl PartialEq<StaticEndianness<LittleEndian>> for StaticEndianness<BigEndian>
[src]
fn eq(&self, _: &StaticEndianness<LittleEndian>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<StaticEndianness<BigEndian>> for StaticEndianness<LittleEndian>
[src]
fn eq(&self, _: &StaticEndianness<BigEndian>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Endianness> for StaticEndianness<BigEndian>
[src]
impl PartialEq<Endianness> for StaticEndianness<LittleEndian>
[src]
impl PartialEq<StaticEndianness<BigEndian>> for Endianness
[src]
fn eq(&self, _: &StaticEndianness<BigEndian>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<StaticEndianness<LittleEndian>> for Endianness
[src]
fn eq(&self, _: &StaticEndianness<LittleEndian>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<E: PartialOrd> PartialOrd<StaticEndianness<E>> for StaticEndianness<E>
[src]
fn partial_cmp(&self, other: &StaticEndianness<E>) -> Option<Ordering>
[src]
fn lt(&self, other: &StaticEndianness<E>) -> bool
[src]
fn le(&self, other: &StaticEndianness<E>) -> bool
[src]
fn gt(&self, other: &StaticEndianness<E>) -> bool
[src]
fn ge(&self, other: &StaticEndianness<E>) -> bool
[src]
impl<E: Debug> Debug for StaticEndianness<E>
[src]
impl<E: Hash> Hash for StaticEndianness<E>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<E> StructuralPartialEq for StaticEndianness<E>
[src]
impl<E> StructuralEq for StaticEndianness<E>
[src]
Auto Trait Implementations
impl<E> Send for StaticEndianness<E> where
E: Send,
E: Send,
impl<E> Sync for StaticEndianness<E> where
E: Sync,
E: Sync,
impl<E> Unpin for StaticEndianness<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for StaticEndianness<E> where
E: UnwindSafe,
E: UnwindSafe,
impl<E> RefUnwindSafe for StaticEndianness<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,