Enum yarner_lib::Line[][src]

pub enum Line {
    Macro {
        indent: String,
        name: String,
    },
    Source {
        indent: String,
        source: String,
    },
}

A Source represents the source code on a line.

Variants

Macro

A macro invocation

Fields of Macro

indent: String

Indentation of the line, without block indent

name: String

Name of the macro

Source

A line of source code

Fields of Source

indent: String

Indentation of the line, without block indent

source: String

Source code in the line

Trait Implementations

impl Debug for Line[src]

impl<'de> Deserialize<'de> for Line[src]

impl Serialize for Line[src]

Auto Trait Implementations

impl RefUnwindSafe for Line

impl Send for Line

impl Sync for Line

impl Unpin for Line

impl UnwindSafe for Line

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.