[][src]Struct bdf::chunks::DataEntry

pub struct DataEntry {
    pub plain: String,
    // some fields omitted
}

Fields

plain: String

Methods

impl DataEntry[src]

pub fn new(plain: String) -> Self[src]

pub fn add_hash_value(&mut self, name: String, value: Vec<u8>)[src]

Adds a hash to the hash values

pub fn get_hash_value(&self, name: String) -> Option<&Vec<u8>>[src]

Returns the hash value for a given name of a hash function

pub fn serialize(&self, lookup_table: &HashLookupTable) -> Vec<u8>[src]

Serializes the entry to a vector of bytes

Trait Implementations

impl Clone for DataEntry[src]

impl Debug for DataEntry[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.