sophia_api::prefix

Trait AsPrefix

Source
pub trait AsPrefix {
    // Required method
    fn as_prefix(&self) -> Prefix<&str>;
}
Expand description

Automatic trait for IsPrefix, providing cheap conversion to Prefix.

Required Methods§

Source

fn as_prefix(&self) -> Prefix<&str>

Extract an Prefix wrapping the underlying str.

Implementors§

Source§

impl<T: IsPrefix> AsPrefix for T