pub struct EpeeEntry<'encoding, 'parent, B: BytesLike<'encoding>> {
pub(crate) root: Option<&'parent mut Epee<'encoding, B>>,
pub(crate) kind: Type,
pub(crate) len: usize,
}Expand description
An item with an EPEE-encoded object.
Fields§
§root: Option<&'parent mut Epee<'encoding, B>>§kind: Type§len: usizeImplementations§
Source§impl<'encoding, 'parent, B: BytesLike<'encoding>> EpeeEntry<'encoding, 'parent, B>
impl<'encoding, 'parent, B: BytesLike<'encoding>> EpeeEntry<'encoding, 'parent, B>
Sourcepub fn fields(self) -> Result<FieldIterator<'encoding, 'parent, B>, EpeeError>
pub fn fields(self) -> Result<FieldIterator<'encoding, 'parent, B>, EpeeError>
Iterate over the fields within this object.
Sourcepub fn iterate(self) -> Result<ArrayIterator<'encoding, 'parent, B>, EpeeError>
pub fn iterate(self) -> Result<ArrayIterator<'encoding, 'parent, B>, EpeeError>
Get an iterator of all items within this container.
If you want to index a specific item, you may use .iterate()?.nth(i)?. An index method
isn’t provided as each index operation is of O(n) complexity and single indexes SHOULD NOT be
used. Only exposing iterate attempts to make this clear to the user.
pub(crate) fn to_primitive( self, kind: Type, slice: &mut [u8], ) -> Result<&mut [u8], EpeeError>
Sourcepub fn to_str(self) -> Result<String<'encoding, B>, EpeeError>
pub fn to_str(self) -> Result<String<'encoding, B>, EpeeError>
Get the current item as a ‘string’ (represented as a B).
Trait Implementations§
Auto Trait Implementations§
impl<'encoding, 'parent, B> Freeze for EpeeEntry<'encoding, 'parent, B>
impl<'encoding, 'parent, B> RefUnwindSafe for EpeeEntry<'encoding, 'parent, B>where
B: RefUnwindSafe,
impl<'encoding, 'parent, B> Send for EpeeEntry<'encoding, 'parent, B>where
B: Send,
impl<'encoding, 'parent, B> Sync for EpeeEntry<'encoding, 'parent, B>where
B: Sync,
impl<'encoding, 'parent, B> Unpin for EpeeEntry<'encoding, 'parent, B>
impl<'encoding, 'parent, B> UnsafeUnpin for EpeeEntry<'encoding, 'parent, B>
impl<'encoding, 'parent, B> !UnwindSafe for EpeeEntry<'encoding, 'parent, B>
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more