[−][src]Enum forest_cid::Code
Multihash generation codes for the Filecoin protocol. This is not an exhausting list of codes used, just the ones used to generate multihashes.
Variants
BLAKE2b-256 (32-byte hash size)
Identity multihash (max 32 bytes)
Trait Implementations
impl Clone for Code
[src]
impl Copy for Code
[src]
impl Debug for Code
[src]
impl Eq for Code
[src]
impl<'_> From<&'_ Blake2bDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
pub fn from(digest: &Blake2bDigest<U32>) -> Self
[src]
impl<'_> From<&'_ IdentityDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Code
[src]
pub fn from(digest: &IdentityDigest<U32>) -> Self
[src]
impl From<Code> for u64
[src]
impl MultihashDigest for Code
[src]
type AllocSize = U32
The maximum size a hash will allocate.
pub fn digest(&self, input: &[u8]) -> Multihash
[src]
pub fn multihash_from_digest<'a, S, D>(digest: &'a D) -> Multihash where
S: Size,
D: Digest<S>,
Self: From<&'a D>,
[src]
S: Size,
D: Digest<S>,
Self: From<&'a D>,
impl PartialEq<Code> for Code
[src]
pub fn eq(&self, other: &Code) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Code
[src]
impl StructuralPartialEq for Code
[src]
impl TryFrom<u64> for Code
[src]
Auto Trait Implementations
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,