[][src]Trait concatsql::SafeStr

pub trait SafeStr {
    fn as_str(&self) -> &str;
}

Hard-coded string or escaped string.

Required methods

fn as_str(&self) -> &str

Extracts a string slice containing the entire WrapString.

Examples

let s = prep!("foo");

assert_eq!("foo", s.as_str());
Loading content...

Implementations on Foreign Types

impl SafeStr for &'static str[src]

Loading content...

Implementors

impl SafeStr for WrapString[src]

impl<'_> SafeStr for &'_ WrapString[src]

Loading content...