[][src]Enum fastobo::ast::Frame

pub enum Frame {
    Header(HeaderFrame),
    Term(TermFrame),
    Typedef(TypedefFrame),
    Instance(InstanceFrame),
}

Any kind of OBO frame.

This is used by the crate::parser::FrameReader, since they iterate on all the frames of the OBO document. This type does however not appear in the OboDoc syntax tree since the HeaderFrame and EntityFrame are properly separated there.

Variants

Header(HeaderFrame)
Term(TermFrame)
Typedef(TypedefFrame)
Instance(InstanceFrame)

Implementations

impl Frame[src]

pub fn into_header_frame(self) -> Option<HeaderFrame>[src]

Attempt to convert the frame into a HeaderFrame.

pub fn into_entity_frame(self) -> Option<EntityFrame>[src]

Attempt to convert the frame into an EntityFrame.

Trait Implementations

impl Clone for Frame[src]

impl Debug for Frame[src]

impl From<EntityFrame> for Frame[src]

impl From<HeaderFrame> for Frame[src]

impl From<InstanceFrame> for Frame[src]

impl From<TermFrame> for Frame[src]

impl From<TypedefFrame> for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnwindSafe for Frame

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.