[−][src]Enum yamf_hash::YamfHash
Variants of YamfHash
Variants
Implementations
impl<T: Borrow<[u8]>> YamfHash<T>
[src]
pub fn encode(&self, out: &mut [u8]) -> Result<usize, Error>
[src]
Encode a YamfHash into the out buffer.
pub fn encoding_length(&self) -> usize
[src]
pub fn decode<'a>(
bytes: &'a [u8]
) -> Result<(YamfHash<&'a [u8]>, &'a [u8]), Error>
[src]
bytes: &'a [u8]
) -> Result<(YamfHash<&'a [u8]>, &'a [u8]), Error>
Decode the bytes
as a YamfHash
pub fn decode_owned<'a>(
bytes: &'a [u8]
) -> Result<(YamfHash<ArrayVec<[u8; 64]>>, &'a [u8]), Error>
[src]
bytes: &'a [u8]
) -> Result<(YamfHash<ArrayVec<[u8; 64]>>, &'a [u8]), Error>
Decode the bytes
as a YamfHash
pub fn encode_write<W: Write>(&self, w: W) -> Result<(), Error>
[src]
Encode a YamfHash into the writer.
Trait Implementations
impl<T: Debug + Borrow<[u8]>> Debug for YamfHash<T>
[src]
impl<'de, T: Borrow<[u8]>> Deserialize<'de> for YamfHash<T> where
T: From<Vec<u8>>,
[src]
T: From<Vec<u8>>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Eq + Borrow<[u8]>> Eq for YamfHash<T>
[src]
impl<'a> From<&'a YamfHash<ArrayVec<[u8; 64]>>> for YamfHash<&'a [u8]>
[src]
impl<'a> From<Hash> for YamfHash<ArrayVec<[u8; 64]>>
[src]
impl<B1: Borrow<[u8]>, B2: Borrow<[u8]>> PartialEq<YamfHash<B1>> for YamfHash<B2>
[src]
pub fn eq(&self, other: &YamfHash<B1>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: Borrow<[u8]>> Serialize for YamfHash<T>
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T: Borrow<[u8]>> StructuralEq for YamfHash<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for YamfHash<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for YamfHash<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for YamfHash<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for YamfHash<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for YamfHash<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,