Enum neli::attr::AttrHandle [−][src]
pub enum AttrHandle<'a, O, I> {
Owned(O),
Borrowed(&'a [I]),
}
Expand description
Handle returned for traversing nested attribute structures
Variants
Owned vector
Borrowed(&'a [I])
Vector reference
Tuple Fields of Borrowed
0: &'a [I]
Implementations
Create new AttrHandle
Create new borrowed AttrHandle
pub fn get_nested_attributes<S>(
&mut self,
subattr: T
) -> Result<AttrHandle<'_, GenlBuffer<S, Buffer>, Nlattr<S, Buffer>>, DeError> where
S: NlAttrType,
pub fn get_nested_attributes<S>(
&mut self,
subattr: T
) -> Result<AttrHandle<'_, GenlBuffer<S, Buffer>, Nlattr<S, Buffer>>, DeError> where
S: NlAttrType,
Get the payload of an attribute as a handle for parsing nested attributes
Get nested attributes from a parsed handle
pub fn get_attr_payload_as<'b, R>(&'b self, attr: T) -> Result<R, DeError> where
R: FromBytes<'b>,
pub fn get_attr_payload_as<'b, R>(&'b self, attr: T) -> Result<R, DeError> where
R: FromBytes<'b>,
Parse binary payload as a type that implements FromBytes
.
pub fn get_attr_payload_as_with_len<'b, R>(
&'b self,
attr: T
) -> Result<R, DeError> where
R: FromBytesWithInput<'b, Input = usize>,
pub fn get_attr_payload_as_with_len<'b, R>(
&'b self,
attr: T
) -> Result<R, DeError> where
R: FromBytesWithInput<'b, Input = usize>,
Parse binary payload as a type that implements
FromBytesWithInput
pub fn get_nested_attributes<S>(
&mut self,
subattr: T
) -> Result<AttrHandle<'_, RtBuffer<S, Buffer>, Rtattr<S, Buffer>>, DeError> where
S: RtaType,
pub fn get_nested_attributes<S>(
&mut self,
subattr: T
) -> Result<AttrHandle<'_, RtBuffer<S, Buffer>, Rtattr<S, Buffer>>, DeError> where
S: RtaType,
Get the payload of an attribute as a handle for parsing nested attributes.
Get nested attributes from a parsed handle.
pub fn get_attr_payload_as<'b, R>(&'b self, attr: T) -> Result<R, DeError> where
R: FromBytes<'b>,
pub fn get_attr_payload_as<'b, R>(&'b self, attr: T) -> Result<R, DeError> where
R: FromBytes<'b>,
Parse binary payload as a type that implements FromBytes
.
pub fn get_attr_payload_as_with_len<'b, R>(
&'b self,
attr: T
) -> Result<R, DeError> where
R: FromBytesWithInput<'b, Input = usize>,
pub fn get_attr_payload_as_with_len<'b, R>(
&'b self,
attr: T
) -> Result<R, DeError> where
R: FromBytesWithInput<'b, Input = usize>,
Parse binary payload as a type that implements FromBytesWithInput
.