[][src]Enum folia::types::ElementType

#[repr(u8)]
pub enum ElementType {
    ActorFeature,
    Alternative,
    AlternativeLayers,
    BegindatetimeFeature,
    Caption,
    Cell,
    Chunk,
    ChunkingLayer,
    Comment,
    Content,
    CoreferenceChain,
    CoreferenceLayer,
    CoreferenceLink,
    Correction,
    Current,
    Definition,
    DependenciesLayer,
    Dependency,
    DependencyDependent,
    Description,
    Division,
    DomainAnnotation,
    EnddatetimeFeature,
    EntitiesLayer,
    Entity,
    Entry,
    ErrorDetection,
    Event,
    Example,
    External,
    Feature,
    Figure,
    ForeignData,
    FunctionFeature,
    Gap,
    Head,
    HeadFeature,
    Headspan,
    Hiddenword,
    Hyphbreak,
    Label,
    LangAnnotation,
    LemmaAnnotation,
    LevelFeature,
    Linebreak,
    LinkReference,
    List,
    ListItem,
    Metric,
    ModalityFeature,
    Morpheme,
    MorphologyLayer,
    New,
    Note,
    Observation,
    ObservationLayer,
    Original,
    Paragraph,
    Part,
    PhonContent,
    Phoneme,
    PhonologyLayer,
    PolarityFeature,
    PosAnnotation,
    Predicate,
    Quote,
    Reference,
    Relation,
    Row,
    SemanticRole,
    SemanticRolesLayer,
    SenseAnnotation,
    Sentence,
    Sentiment,
    SentimentLayer,
    Source,
    SpanRelation,
    SpanRelationLayer,
    Speech,
    Statement,
    StatementLayer,
    StatementRelation,
    StrengthFeature,
    String,
    StyleFeature,
    SubjectivityAnnotation,
    Suggestion,
    SynsetFeature,
    SyntacticUnit,
    SyntaxLayer,
    Table,
    TableHead,
    Target,
    Term,
    Text,
    TextContent,
    TextMarkupCorrection,
    TextMarkupError,
    TextMarkupGap,
    TextMarkupReference,
    TextMarkupString,
    TextMarkupStyle,
    TimeFeature,
    TimeSegment,
    TimingLayer,
    Utterance,
    ValueFeature,
    Whitespace,
    Word,
    WordReference,
}

This represents the type of a FoLiA element.

Variants

ActorFeature
Alternative
AlternativeLayers
BegindatetimeFeature
Caption
Cell
Chunk
ChunkingLayer
Comment
Content
CoreferenceChain
CoreferenceLayer
Correction
Current
Definition
DependenciesLayer
Dependency
DependencyDependent
Description
Division
DomainAnnotation
EnddatetimeFeature
EntitiesLayer
Entity
Entry
ErrorDetection
Event
Example
External
Feature
Figure
ForeignData
FunctionFeature
Gap
Head
HeadFeature
Headspan
Hiddenword
Hyphbreak
Label
LangAnnotation
LemmaAnnotation
LevelFeature
Linebreak
LinkReference
List
ListItem
Metric
ModalityFeature
Morpheme
MorphologyLayer
New
Note
Observation
ObservationLayer
Original
Paragraph
Part
PhonContent
Phoneme
PhonologyLayer
PolarityFeature
PosAnnotation
Predicate
Quote
Reference
Relation
Row
SemanticRole
SemanticRolesLayer
SenseAnnotation
Sentence
Sentiment
SentimentLayer
Source
SpanRelation
SpanRelationLayer
Speech
Statement
StatementLayer
StatementRelation
StrengthFeature
String
StyleFeature
SubjectivityAnnotation
Suggestion
SynsetFeature
SyntacticUnit
SyntaxLayer
Table
TableHead
Target
Term
Text
TextContent
TextMarkupCorrection
TextMarkupError
TextMarkupGap
TextMarkupReference
TextMarkupString
TextMarkupStyle
TimeFeature
TimeSegment
TimingLayer
Utterance
ValueFeature
Whitespace
Word
WordReference

Methods

impl ElementType[src]

impl ElementType[src]

pub fn is_in_group(&self, group: ElementGroup) -> bool[src]

pub fn as_str(&self) -> &'static str[src]

Trait Implementations

impl Eq for ElementType[src]

impl<'_> Into<&'_ str> for ElementType[src]

impl Into<ElementType> for AnnotationType[src]

impl Clone for ElementType[src]

impl PartialOrd<ElementType> for ElementType[src]

impl PartialEq<ElementType> for ElementType[src]

impl Copy for ElementType[src]

impl Hash for ElementType[src]

impl Display for ElementType[src]

impl Debug for ElementType[src]

impl FromStr for ElementType[src]

type Err = FoliaError

The associated error which can be returned from parsing.

impl IntoEnumIterator for ElementType[src]

type Iterator = ElementTypeIter

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[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> 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]