pub struct VLBytes { /* private fields */ }
Expand description
Variable-length encoded byte vectors. Use this struct if bytes are encoded. This is faster than the generic version.
Implementations§
Trait Implementations§
source§impl<'a> Arbitrary<'a> for VLBytes
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for VLBytes
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'de> Deserialize<'de> for VLBytes
impl<'de> Deserialize<'de> for VLBytes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Deserialize for VLBytes
Available on crate feature std
only.
impl Deserialize for VLBytes
Available on crate feature
std
only.source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moresource§impl DeserializeBytes for VLBytes
impl DeserializeBytes for VLBytes
source§impl Ord for VLBytes
impl Ord for VLBytes
source§impl PartialEq<VLBytes> for VLBytes
impl PartialEq<VLBytes> for VLBytes
source§impl PartialOrd<VLBytes> for VLBytes
impl PartialOrd<VLBytes> for VLBytes
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for VLBytes
impl StructuralEq for VLBytes
impl StructuralPartialEq for VLBytes
Auto Trait Implementations§
impl RefUnwindSafe for VLBytes
impl Send for VLBytes
impl Sync for VLBytes
impl Unpin for VLBytes
impl UnwindSafe for VLBytes
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