Trait uncased::AsUncased[][src]

pub trait AsUncased {
    fn as_uncased(&self) -> &UncasedStr;
}

Helper trait to convert string-like references to &UncasedStr.

Example

use uncased::AsUncased;

let string = "Hello, world!".as_uncased();
assert_eq!(string, "hello, world!");
assert_eq!(string, "HELLO, world!");
assert_eq!(string, "HELLO, WORLD!");

Required methods

fn as_uncased(&self) -> &UncasedStr[src]

Convert self to an UncasedStr.

Loading content...

Implementors

impl<T: AsRef<str> + ?Sized> AsUncased for T[src]

Loading content...