pub struct EncodedEntry(/* private fields */);Expand description
Wrapper type for Bamboo entry bytes.
This struct can be used to deserialize an hex-encoded string into bytes when using a human-readable encoding format. No validation is applied whatsoever, except of checking if it is a valid hex-string (#E1).
To validate these bytes use the decode_entry method to apply all checks and to get an Entry
instance. Read the module-level documentation for more information.
Implementations§
Source§impl EncodedEntry
impl EncodedEntry
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
Returns new EncodedEntry instance from given bytes.
This does not apply any validation and should only be used in methods where all checks have taken place before.
Trait Implementations§
Source§impl AsEncodedEntry for EncodedEntry
impl AsEncodedEntry for EncodedEntry
Source§impl Clone for EncodedEntry
impl Clone for EncodedEntry
Source§fn clone(&self) -> EncodedEntry
fn clone(&self) -> EncodedEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedEntry
impl Debug for EncodedEntry
Source§impl<'de> Deserialize<'de> for EncodedEntry
impl<'de> Deserialize<'de> for EncodedEntry
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 Display for EncodedEntry
impl Display for EncodedEntry
Source§impl Hash for EncodedEntry
impl Hash for EncodedEntry
Source§impl PartialEq for EncodedEntry
impl PartialEq for EncodedEntry
Source§impl Serialize for EncodedEntry
impl Serialize for EncodedEntry
impl Eq for EncodedEntry
impl StructuralPartialEq for EncodedEntry
Auto Trait Implementations§
impl Freeze for EncodedEntry
impl RefUnwindSafe for EncodedEntry
impl Send for EncodedEntry
impl Sync for EncodedEntry
impl Unpin for EncodedEntry
impl UnwindSafe for EncodedEntry
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