[−][src]Struct packed_struct::types::LsbInteger
A wrapper that packages the integer as a LSB packaged byte array. Usually invoked using code generation.
Trait Implementations
impl<T, B, I> Debug for LsbInteger<T, B, I> where
I: Debug,
[src]
I: Debug,
impl<T, B, I> Deref for LsbInteger<T, B, I> where
B: BitsFullBytes,
[src]
B: BitsFullBytes,
impl<T, B, I> Display for LsbInteger<T, B, I> where
I: Display,
[src]
I: Display,
impl<T, B, I> From<I> for LsbInteger<T, B, I> where
B: BitsFullBytes,
[src]
B: BitsFullBytes,
impl<T, B, I> PackedStruct<<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes> for LsbInteger<T, B, I> where
B: NumberOfBits,
I: SizedInteger<T, B>,
B: BitsFullBytes,
[src]
B: NumberOfBits,
I: SizedInteger<T, B>,
B: BitsFullBytes,
fn pack(&self) -> <<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
[src]
fn unpack(
src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
[src]
src: &<<B as NumberOfBits>::Bytes as NumberOfBytes>::AsBytes
) -> Result<Self, PackingError>
impl<T, B, I> PackedStructInfo for LsbInteger<T, B, I> where
B: NumberOfBits,
[src]
B: NumberOfBits,
fn packed_bits() -> usize
[src]
impl<T, B, I> PackedStructSlice for LsbInteger<T, B, I> where
B: NumberOfBits + BitsFullBytes,
I: SizedInteger<T, B>,
[src]
B: NumberOfBits + BitsFullBytes,
I: SizedInteger<T, B>,
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
[src]
fn packed_bytes() -> usize
[src]
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
Auto Trait Implementations
impl<T, B, I> RefUnwindSafe for LsbInteger<T, B, I> where
B: RefUnwindSafe,
I: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, I> Send for LsbInteger<T, B, I> where
B: Send,
I: Send,
T: Send,
B: Send,
I: Send,
T: Send,
impl<T, B, I> Sync for LsbInteger<T, B, I> where
B: Sync,
I: Sync,
T: Sync,
B: Sync,
I: Sync,
T: Sync,
impl<T, B, I> Unpin for LsbInteger<T, B, I> where
B: Unpin,
I: Unpin,
T: Unpin,
B: Unpin,
I: Unpin,
T: Unpin,
impl<T, B, I> UnwindSafe for LsbInteger<T, B, I> where
B: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,