Trait dynhash::Hash

source ·
pub trait Hash: Any + Debug + LowerHex + UpperHex {
    fn hash_type(&self) -> &'static dyn HashType
    where
        Self: Sized
; fn as_slice(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]; }

Required Methods

Implementations

Returns true if the boxed type is the same as T

Returns some reference to the boxed value if it is of type T, or None if it isn’t.

Returns a reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Returns some mutable reference to the boxed value if it is of type T, or None if it isn’t.

Returns a mutable reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Returns the boxed value if it is of type T, or Err(Self) if it isn’t.

Returns the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Implementors