Enum genco::Cons [] [src]

pub enum Cons<'el> {
    Borrowed(&'el str),
    Owned(String),
    Rc(Rc<String>),
}

A managed string that permits immutable borrowing.

Variants

A borrowed string.

An owned string (deprecate?)

A refcounted string.

Trait Implementations

impl<'el> Quoted<'el> for Cons<'el>
[src]

[src]

Convert type to quoted element.

impl<'el> Debug for Cons<'el>
[src]

[src]

Formats the value using the given formatter.

impl<'el> Clone for Cons<'el>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'el> PartialEq for Cons<'el>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'el> Eq for Cons<'el>
[src]

impl<'a> AsRef<str> for Cons<'a>
[src]

[src]

Performs the conversion.

impl<'el> From<String> for Cons<'el>
[src]

[src]

Performs the conversion.

impl<'el> From<&'el str> for Cons<'el>
[src]

[src]

Performs the conversion.

impl<'el> From<Rc<String>> for Cons<'el>
[src]

[src]

Performs the conversion.