Enum semdoc::Block[][src]

pub enum Block<S: Source> {
    Error(Error<S>),
    Empty,
    Text(String),
    Section {
        title: Box<Block<S>>,
        body: Box<Block<S>>,
    },
    DenseSequence(Vec<Block<S>>),
    SplitSequence(Vec<Block<S>>),
}

Variants

Error(Error<S>)
Empty
Text(String)
Section

Fields of Section

title: Box<Block<S>>body: Box<Block<S>>
DenseSequence(Vec<Block<S>>)
SplitSequence(Vec<Block<S>>)

Implementations

impl<S: Source> Block<S>[src]

pub fn to_molecule(&self) -> Molecule<S>[src]

pub fn try_from(
    kind: u64,
    children: Vec<Molecule<S>>
) -> Result<Block<S>, BlockError>
[src]

pub fn from(molecule: &Molecule<S>) -> Block<S>[src]

pub fn into_pure(self) -> Result<Block<Pure>, S::Error>[src]

Trait Implementations

impl<S: Clone + Source> Clone for Block<S>[src]

impl<S: Debug + Source> Debug for Block<S>[src]

impl<S: Eq + Source> Eq for Block<S>[src]

impl<S: PartialEq + Source> PartialEq<Block<S>> for Block<S>[src]

impl<S: Source> StructuralEq for Block<S>[src]

impl<S: Source> StructuralPartialEq for Block<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Block<S> where
    <S as Source>::Error: RefUnwindSafe

impl<S> Send for Block<S> where
    <S as Source>::Error: Send

impl<S> Sync for Block<S> where
    <S as Source>::Error: Sync

impl<S> Unpin for Block<S> where
    <S as Source>::Error: Unpin

impl<S> UnwindSafe for Block<S> where
    <S as Source>::Error: UnwindSafe

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.