[][src]Enum folia::types::ElementGroup

pub enum ElementGroup {
    Layer,
    Content,
    CorrectionChild,
    HigherOrder,
    Inline,
    Span,
    SpanRole,
    Structure,
    Subtoken,
    TextMarkup,
    Feature,
}

This represents groups of element types that share similar characteristics.

Variants

Layer
Content
CorrectionChild
HigherOrder
Inline
Span
SpanRole
Structure
Subtoken
TextMarkup
Feature

Methods

impl ElementGroup[src]

pub fn elementtypes(&self) -> &'static [ElementType][src]

Returns an array of all element types includes in this group

pub fn contains(&self, elementtype: ElementType) -> bool[src]

Checks whether the specified element type is a member of this group

Trait Implementations

impl Clone for ElementGroup[src]

impl PartialEq<ElementGroup> for ElementGroup[src]

impl Copy for ElementGroup[src]

impl Hash for ElementGroup[src]

impl Debug for ElementGroup[src]

impl IntoEnumIterator for ElementGroup[src]

type Iterator = ElementGroupIter

Auto Trait Implementations

Blanket Implementations

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> 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]