Enum ftml::tree::Elements[][src]

pub enum Elements<'t> {
    Multiple(Vec<Element<'t>>),
    Single(Element<'t>),
    None,
}

Variants

Multiple(Vec<Element<'t>>)
Single(Element<'t>)
None

Implementations

impl Elements<'_>[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

Trait Implementations

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

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

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

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

impl<'t> From<Element<'t>> for Elements<'t>[src]

impl<'t> From<Option<Element<'t>>> for Elements<'t>[src]

impl<'t> From<Vec<Element<'t>, Global>> for Elements<'t>[src]

impl<'t> IntoIterator for Elements<'t>[src]

type Item = Element<'t>

The type of the elements being iterated over.

type IntoIter = ElementsIterator<'t>

Which kind of iterator are we turning this into?

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<'t> UnwindSafe for Elements<'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.