[−][src]Enum fastobo::ast::Frame
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]
fn from(frame: EntityFrame) -> Self
[src]
impl From<HeaderFrame> for Frame
[src]
fn from(frame: HeaderFrame) -> Self
[src]
impl From<InstanceFrame> for Frame
[src]
fn from(frame: InstanceFrame) -> Self
[src]
impl From<TermFrame> for Frame
[src]
impl From<TypedefFrame> for Frame
[src]
fn from(frame: TypedefFrame) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,