[][src]Trait binjs::meta::util::ToStr

pub trait ToStr {
    fn to_str(&self) -> &str;

    fn newline(&self) -> String { ... }
fn newline_if_not_empty(&self) -> String { ... } }

Required methods

fn to_str(&self) -> &str[]

Return the value as a str.

Provided methods

fn newline(&self) -> String

fn newline_if_not_empty(&self) -> String[]

Append newline if the string is not empty.

Implementations on Foreign Types

impl ToStr for str[src][]

impl ToStr for String[src][]

impl<'a> ToStr for &'a str[src][]

Implementors

impl ToStr for FieldName[src][]

impl ToStr for NodeName[src][]