pub struct PBNode<'a> {
pub Links: Vec<PBLink<'a>>,
pub Data: Option<Cow<'a, [u8]>>,
}
Fields§
§Links: Vec<PBLink<'a>>
§Data: Option<Cow<'a, [u8]>>
Trait Implementations§
Source§impl<'a> MessageRead<'a> for PBNode<'a>
impl<'a> MessageRead<'a> for PBNode<'a>
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moreSource§impl<'a> MessageWrite for PBNode<'a>
impl<'a> MessageWrite for PBNode<'a>
impl<'a> StructuralPartialEq for PBNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for PBNode<'a>
impl<'a> RefUnwindSafe for PBNode<'a>
impl<'a> Send for PBNode<'a>
impl<'a> Sync for PBNode<'a>
impl<'a> Unpin for PBNode<'a>
impl<'a> UnwindSafe for PBNode<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more