Enum neli::attr::AttrHandle

source ·
pub enum AttrHandle<'a, O, I> {
    Owned(O),
    Borrowed(&'a [I]),
}
Expand description

Handle returned for traversing nested attribute structures

Variants§

§

Owned(O)

Owned vector

§

Borrowed(&'a [I])

Vector reference

Implementations§

Create new AttrHandle

Create new borrowed AttrHandle

Pass back iterator over attributes

Get the underlying owned value as a reference

Get the payload of an attribute as a handle for parsing nested attributes

Get nested attributes from a parsed handle

Parse binary payload as a type that implements FromBytes.

Parse binary payload as a type that implements FromBytesWithInput

Get the payload of an attribute as a handle for parsing nested attributes.

Get nested attributes from a parsed handle.

Parse binary payload as a type that implements FromBytes.

Parse binary payload as a type that implements FromBytesWithInput.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.