[−][src]Struct uf2_block::MagicEnd
Trait Implementations
impl Clone for MagicEnd
[src]
fn clone(&self) -> MagicEnd
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MagicEnd
[src]
impl Debug for MagicEnd
[src]
impl Default for MagicEnd
[src]
impl Eq for MagicEnd
[src]
impl Packed for MagicEnd
[src]
type Error = Error
fn pack(&self, bytes: &mut [u8]) -> Result<(), Self::Error>
[src]
Pack into the provided byte slice.
bytes.len()
must be at least 4
byte | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|
0 | magic MSB | - | - | - | - | - | - | - |
1 | - | - | - | - | - | - | - | - |
2 | - | - | - | - | - | - | - | - |
3 | - | - | - | - | - | - | - | magic LSB |
fn unpack(bytes: &[u8]) -> Result<Self, Self::Error>
[src]
impl PackedBytes<[u8; 4]> for MagicEnd
[src]
type Error = Error
fn to_bytes<En: Endian>(&self) -> Result<[u8; 4], Self::Error>
[src]
fn from_bytes<En: Endian>(bytes: [u8; 4]) -> Result<Self, Self::Error>
[src]
impl PackedSize for MagicEnd
[src]
impl PartialEq<MagicEnd> for MagicEnd
[src]
impl StructuralEq for MagicEnd
[src]
impl StructuralPartialEq for MagicEnd
[src]
Auto Trait Implementations
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,
fn borrow_mut(&mut self) -> &mut 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> Same<T> for T
type Output = T
Should always be Self
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.
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>,