pub struct VecSdHeader {
pub flags: Flags,
pub entries: Vec<Entry>,
pub options: Vec<Options>,
}Expand description
Owned SD header backed by heap-allocated vectors.
Fields§
§flags: FlagsSD flags byte.
entries: Vec<Entry>SD entries.
options: Vec<Options>SD options.
Trait Implementations§
Source§impl Clone for VecSdHeader
impl Clone for VecSdHeader
Source§fn clone(&self) -> VecSdHeader
fn clone(&self) -> VecSdHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VecSdHeader
impl Debug for VecSdHeader
Source§impl Encode for VecSdHeader
impl Encode for VecSdHeader
Source§type Error = Error
type Error = Error
Per-implementation error; constructible from an I/O
embedded_io::ErrorKind
so the fixed-width write_* leaf helpers lift through ?. Read moreSource§fn encode(&self, writer: &mut impl Write) -> Result<usize, Error>
fn encode(&self, writer: &mut impl Write) -> Result<usize, Error>
Serialize into
writer; return the number of bytes written. Read moreSource§fn encode_to_slice(
&self,
buf: &mut [u8],
) -> Result<usize, EncodeToSliceError<Self::Error>>
fn encode_to_slice( &self, buf: &mut [u8], ) -> Result<usize, EncodeToSliceError<Self::Error>>
Encode into a fixed slice, reporting
needed/available
(InsufficientBuffer) instead of a bare
embedded_io::ErrorKind::WriteZero when the slice is too small, and
hiding the &mut &mut [u8] cursor re-borrow every fixed-buffer call
site otherwise writes by hand. Read moreimpl Eq for VecSdHeader
Source§impl PartialEq for VecSdHeader
impl PartialEq for VecSdHeader
impl StructuralPartialEq for VecSdHeader
Auto Trait Implementations§
impl Freeze for VecSdHeader
impl RefUnwindSafe for VecSdHeader
impl Send for VecSdHeader
impl Sync for VecSdHeader
impl Unpin for VecSdHeader
impl UnsafeUnpin for VecSdHeader
impl UnwindSafe for VecSdHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more