Skip to main content

ContentAddressable

Trait ContentAddressable 

Source
pub trait ContentAddressable {
    // Required method
    fn content_id(&self) -> ContentId;
}
Expand description

Trait for types that can produce a stable content identifier.

Required Methods§

Source

fn content_id(&self) -> ContentId

Returns the content identifier for this value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§