[][src]Trait lincoln_common::traits::StringLike

pub trait StringLike: Into<String> + AsRef<str> {
    fn clone_string(&self) -> String { ... }
}

A trait that makes use of string like types (String and &str) easier.

Provided methods

fn clone_string(&self) -> String

Calling into will consume the object, calling as_ref only gives borrowed string. This combines them together to give a owned string without consuming the value.

Loading content...

Implementors

impl<T> StringLike for T where
    T: Into<String> + AsRef<str>, 
[src]

Loading content...