Skip to main content

SchemeExt

Trait SchemeExt 

Source
pub trait SchemeExt: Scheme {
    // Provided method
    fn id(&self) -> SchemeId { ... }
}
Expand description

Extension trait providing id for all Scheme implementors.

This trait is automatically implemented for every type that implements Scheme. Because the blanket implementation covers all types, external crates cannot override id().

Provided Methods§

Source

fn id(&self) -> SchemeId

Unique identifier derived from scheme_name.

Implementors§

Source§

impl<T> SchemeExt for T
where T: Scheme + ?Sized,