Skip to main content

Prefix

Trait Prefix 

Source
pub trait Prefix {
    // Required method
    fn prefix(&self, len: usize) -> String;
}

Required Methods§

Source

fn prefix(&self, len: usize) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> Prefix for T
where T: AsRef<str>,