Skip to main content

KeyFactory

Trait KeyFactory 

Source
pub trait KeyFactory<K> {
    // Required methods
    fn id(&self) -> K;
    fn child_of(&self, parent: &Self) -> bool;
    fn new_parent(&self) -> Self;
}

Required Methods§

Source

fn id(&self) -> K

Source

fn child_of(&self, parent: &Self) -> bool

Source

fn new_parent(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§