#[non_exhaustive]pub enum ExtIterItem<'a> {
Descriptor(AnyDescriptor<'a>),
CustomExtension {
tag_extension: u8,
value: Box<dyn ExtensionObject>,
},
}Expand description
Item produced by DescriptorLoop::iter_with_extensions.
Extends AnyDescriptor with a third arm for custom-registered extension
bodies whose descriptor_tag_extension is recognised by an
ExtensionRegistry.
The value field can be downcast to the concrete type via
downcast_ref on the value (see ExtensionObject)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Descriptor(AnyDescriptor<'a>)
A regular descriptor (including built-in extension descriptors).
CustomExtension
A custom-registered extension body (tag 0x7F, known descriptor_tag_extension).
Fields
§
value: Box<dyn ExtensionObject>The parsed, type-erased extension body value. Call downcast_ref
on it (see ExtensionObject) to recover the concrete type.
Trait Implementations§
Source§impl<'a> Debug for ExtIterItem<'a>
impl<'a> Debug for ExtIterItem<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExtIterItem<'a>
impl<'a> !UnwindSafe for ExtIterItem<'a>
impl<'a> Freeze for ExtIterItem<'a>
impl<'a> Send for ExtIterItem<'a>
impl<'a> Sync for ExtIterItem<'a>
impl<'a> Unpin for ExtIterItem<'a>
impl<'a> UnsafeUnpin for ExtIterItem<'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