Trait narwhal_dag::node_dag::Affiliated
source · [−]pub trait Affiliated: Hash {
fn parents(&self) -> Vec<<Self as Hash>::TypedDigest>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
fn compressible(&self) -> bool { ... }
}
Expand description
A trait marking the minimum information we need to sort out the value for a node:
parents
: hash pointers to its parents, andcompressible
: a value-derived boolean indicating if that value is, initially, compressible
The crypto:Hash
trait bound offers the digest-ibility.
Required Methods
Provided Methods
sourcefn compressible(&self) -> bool
fn compressible(&self) -> bool
Whether the current value should be marked as compressible when first inserted in a Node. Defaults to a blanket false for all values.