pub struct Nodes<'a> { /* private fields */ }Expand description
A list of Nodes, still in its encoded form.
Implementations§
Source§impl<'a> Nodes<'a>
impl<'a> Nodes<'a>
Sourcepub fn from_bytes(raw: &'a [u8]) -> Result<Self>
pub fn from_bytes(raw: &'a [u8]) -> Result<Self>
Wraps the encoded form.
§Errors
Returns Error::Malformed if the length is not a whole number of nodes.
Trait Implementations§
impl<'a> Copy for Nodes<'a>
impl<'a> Eq for Nodes<'a>
impl<'a> StructuralPartialEq for Nodes<'a>
Auto Trait Implementations§
impl<'a> Freeze for Nodes<'a>
impl<'a> RefUnwindSafe for Nodes<'a>
impl<'a> Send for Nodes<'a>
impl<'a> Sync for Nodes<'a>
impl<'a> Unpin for Nodes<'a>
impl<'a> UnsafeUnpin for Nodes<'a>
impl<'a> UnwindSafe for Nodes<'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