[][src]Trait binjs::meta::spec::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.

Loading content...

Provided methods

fn newline(&self) -> String

fn newline_if_not_empty(&self) -> String

Append newline if the string is not empty.

Loading content...

Implementations on Foreign Types

impl ToStr for str[src]

impl ToStr for String[src]

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

Loading content...

Implementors

impl ToStr for FieldName[src]

impl ToStr for NodeName[src]

Loading content...