Skip to main content

Text

Trait Text 

Source
pub trait Text: Sized {
    // Provided methods
    fn like<S: AsRef<str>>(self, pattern: S) -> bool { ... }
    fn not_like<S: AsRef<str>>(self, pattern: S) -> bool { ... }
    fn glob<S: AsRef<str>>(self, pattern: S) -> bool { ... }
    fn concat<S: AsRef<str>>(self, other: S) -> String { ... }
}

Provided Methods§

Source

fn like<S: AsRef<str>>(self, pattern: S) -> bool

Source

fn not_like<S: AsRef<str>>(self, pattern: S) -> bool

Source

fn glob<S: AsRef<str>>(self, pattern: S) -> bool

Source

fn concat<S: AsRef<str>>(self, other: S) -> String

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Text for &str

Source§

impl Text for Option<String>

Source§

impl Text for String

Implementors§