Namespace

Trait Namespace 

Source
pub trait Namespace:
    Clone
    + Send
    + Sync {
    // Required method
    fn derive(namespace: &[u8]) -> Self;
}
Expand description

Trait for namespace types that can derive themselves from a base namespace.

This trait is implemented by namespace types to define how they are computed from a base namespace string.

Required Methods§

Source

fn derive(namespace: &[u8]) -> Self

Derive a namespace from the given base.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Namespace for Vec<u8>

Source§

fn derive(namespace: &[u8]) -> Self

Implementors§