Struct ftml::tree::SyntaxTree[][src]

pub struct SyntaxTree<'t> {
    pub elements: Vec<Element<'t>>,
    pub styles: Vec<Cow<'t, str>>,
}

Fields

elements: Vec<Element<'t>>

The list of elements that compose this tree.

Note that each Element<'t> can contain other elements within it, and these as well, etc. This structure composes the depth of the syntax tree.

styles: Vec<Cow<'t, str>>

The list of CSS styles added in this page, in order.

How the renderer decides to consume these is up to the implementation, however the recommendation is to combine them all into one large style rule list.

Trait Implementations

impl<'t> Clone for SyntaxTree<'t>[src]

impl<'t> Debug for SyntaxTree<'t>[src]

impl<'t> Default for SyntaxTree<'t>[src]

impl<'de, 't> Deserialize<'de> for SyntaxTree<'t>[src]

impl<'t> Eq for SyntaxTree<'t>[src]

impl<'t> PartialEq<SyntaxTree<'t>> for SyntaxTree<'t>[src]

impl<'t> Serialize for SyntaxTree<'t>[src]

impl<'t> StructuralEq for SyntaxTree<'t>[src]

impl<'t> StructuralPartialEq for SyntaxTree<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for SyntaxTree<'t>[src]

impl<'t> Send for SyntaxTree<'t>[src]

impl<'t> Sync for SyntaxTree<'t>[src]

impl<'t> Unpin for SyntaxTree<'t>[src]

impl<'t> UnwindSafe for SyntaxTree<'t>[src]

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.