[][src]Enum outline::document::code::Segment

pub enum Segment<'a> {
    Source(&'a str),
    MetaVar(&'a str),
}

A Segment is some of the raw source text.

Variants

Source(&'a str)

Raw source text

MetaVar(&'a str)

A meta variable, to be interpolated by the literate compiler

Trait Implementations

impl<'a> Clone for Segment<'a>[src]

impl<'a> Debug for Segment<'a>[src]

Auto Trait Implementations

impl<'a> Send for Segment<'a>

impl<'a> Unpin for Segment<'a>

impl<'a> Sync for Segment<'a>

impl<'a> UnwindSafe for Segment<'a>

impl<'a> RefUnwindSafe for Segment<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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