pub struct AitDescriptorLoop<'a>(/* private fields */);Expand description
A raw AIT descriptor loop, borrowed from the section. Zero-copy: walk it
typed via AitDescriptorLoop::iter; serde serializes the typed walk.
This mirrors crate::descriptors::DescriptorLoop for the AIT namespace.
Implementations§
Source§impl<'a> AitDescriptorLoop<'a>
impl<'a> AitDescriptorLoop<'a>
Sourcepub const fn new(raw: &'a [u8]) -> Self
pub const fn new(raw: &'a [u8]) -> Self
Wrap a raw AIT descriptor-loop slice (the descriptor() bytes only —
no enclosing length field).
Sourcepub fn iter(&self) -> AitDescriptorIter<'a> ⓘ
pub fn iter(&self) -> AitDescriptorIter<'a> ⓘ
Lazily walk the loop, yielding one typed AnyAitDescriptor per entry
(or AnyAitDescriptor::Unknown for tags with no implementation).
Delegates to parse_ait_loop; never panics.
Trait Implementations§
Source§impl<'a> Clone for AitDescriptorLoop<'a>
impl<'a> Clone for AitDescriptorLoop<'a>
Source§fn clone(&self) -> AitDescriptorLoop<'a>
fn clone(&self) -> AitDescriptorLoop<'a>
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 moreimpl<'a> Copy for AitDescriptorLoop<'a>
Source§impl<'a> Default for AitDescriptorLoop<'a>
impl<'a> Default for AitDescriptorLoop<'a>
Source§fn default() -> AitDescriptorLoop<'a>
fn default() -> AitDescriptorLoop<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for AitDescriptorLoop<'a>
Source§impl<'a> Hash for AitDescriptorLoop<'a>
impl<'a> Hash for AitDescriptorLoop<'a>
Source§impl<'a> PartialEq for AitDescriptorLoop<'a>
impl<'a> PartialEq for AitDescriptorLoop<'a>
Source§fn eq(&self, other: &AitDescriptorLoop<'a>) -> bool
fn eq(&self, other: &AitDescriptorLoop<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AitDescriptorLoop<'_>
Available on crate feature serde only.
impl Serialize for AitDescriptorLoop<'_>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for AitDescriptorLoop<'a>
Source§impl<'a> Yokeable<'a> for AitDescriptorLoop<'static>
impl<'a> Yokeable<'a> for AitDescriptorLoop<'static>
Source§type Output = AitDescriptorLoop<'a>
type Output = AitDescriptorLoop<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for AitDescriptorLoop<'a>
impl<'a> RefUnwindSafe for AitDescriptorLoop<'a>
impl<'a> Send for AitDescriptorLoop<'a>
impl<'a> Sync for AitDescriptorLoop<'a>
impl<'a> Unpin for AitDescriptorLoop<'a>
impl<'a> UnsafeUnpin for AitDescriptorLoop<'a>
impl<'a> UnwindSafe for AitDescriptorLoop<'a>
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