[−][src]Struct bee_crypto::ternary::Hash
Ternary cryptographic hash.
Implementations
impl Hash
[src]
pub fn zeros() -> Self
[src]
Creates a hash filled with zeros.
pub fn as_trits(&self) -> &Trits<T1B1>
[src]
Interpret the Hash
as a trit slice.
pub fn as_trits_mut(&mut self) -> &mut Trits<T1B1>
[src]
Interpret the Hash
as a mutable trit slice.
pub fn weight(&self) -> u8
[src]
Returns the weight - number of ending 0s - of the Hash
.
Trait Implementations
impl Clone for Hash
[src]
impl Copy for Hash
[src]
impl Debug for Hash
[src]
impl Deref for Hash
[src]
type Target = Trits<T1B1>
The resulting type after dereferencing.
fn deref(&self) -> &Trits<T1B1>
[src]
impl DerefMut for Hash
[src]
impl Display for Hash
[src]
impl Eq for Hash
[src]
impl Hash for Hash
[src]
fn hash<H: Hasher>(&self, hasher: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Hash> for Hash
[src]
impl<'a, T: RawEncoding<Trit = Btrit>> TryFrom<&'a Trits<T>> for Hash
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,