[][src]Enum libanu::pristine::Hash

pub enum Hash {
    None,
    Blake3([u8; 32]),
}

The external hash of changes.

Variants

None

None is the hash of the "null change", which introduced a single root vertex at the beginning of the repository.

Blake3([u8; 32])

Implementations

impl Hash[src]

pub fn to_bytes(&self) -> [u8; 33][src]

pub fn from_bytes(s: &[u8]) -> Option<Self>[src]

pub fn from_prefix(s: &str) -> Option<Self>[src]

Trait Implementations

impl Base32 for Hash[src]

fn to_base32(&self) -> String[src]

Returns the base-32 representation of a hash.

fn from_base32(s: &[u8]) -> Option<Self>[src]

Parses a base-32 string into a hash.

impl Clone for Hash[src]

impl Copy for Hash[src]

impl Debug for Hash[src]

impl<'de> Deserialize<'de> for Hash[src]

impl Eq for Hash[src]

impl FromStr for Hash[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Hash[src]

impl Ord for Hash[src]

impl PartialEq<Hash> for Hash[src]

impl PartialOrd<Hash> for Hash[src]

impl Representable for Hash[src]

type PageOffsets = Empty<u64>

An iterator over the offsets to pages contained in this value. Only values from this crate can generate non-empty iterators, but combined values (like tuples) must chain the iterators returned by method page_offsets. Read more

impl Serialize for Hash[src]

impl StructuralEq for Hash[src]

impl StructuralPartialEq 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,