[][src]Enum fastobo::ast::HeaderClause

pub enum HeaderClause {
    FormatVersion(UnquotedString),
    DataVersion(UnquotedString),
    Date(NaiveDateTime),
    SavedBy(UnquotedString),
    AutoGeneratedBy(UnquotedString),
    Import(Import),
    Subsetdef(SubsetIdentQuotedString),
    SynonymTypedef(SynonymTypeIdentQuotedStringOption<SynonymScope>),
    DefaultNamespace(NamespaceIdent),
    NamespaceIdRule(UnquotedString),
    Idspace(IdentPrefixUrlOption<QuotedString>),
    TreatXrefsAsEquivalent(IdentPrefix),
    TreatXrefsAsGenusDifferentia(IdentPrefixRelationIdentClassIdent),
    TreatXrefsAsReverseGenusDifferentia(IdentPrefixRelationIdentClassIdent),
    TreatXrefsAsRelationship(IdentPrefixRelationIdent),
    TreatXrefsAsIsA(IdentPrefix),
    TreatXrefsAsHasSubclass(IdentPrefix),
    PropertyValue(PropertyValue),
    Remark(UnquotedString),
    Ontology(UnquotedString),
    OwlAxioms(UnquotedString),
    Unreserved(UnquotedStringUnquotedString),
}

A clause appearing in a header frame.

Header clauses are used to add metadata to OBO documents. They are all optional, but every document should at least contain a FormatVersion clause, to help with interoperability and to make sure the semantics of the right OBO specification are in use.

Comparison

HeaderClause implements PartialOrd following the semantics of the OBO specification: clauses will compare based on their serialization order rather than on their alphabetic order; clauses of the same kind will be ranked in the alphabetic order.

Variants

FormatVersion(UnquotedString)DataVersion(UnquotedString)Date(NaiveDateTime)SavedBy(UnquotedString)AutoGeneratedBy(UnquotedString)Import(Import)Subsetdef(SubsetIdentQuotedString)SynonymTypedef(SynonymTypeIdentQuotedStringOption<SynonymScope>)DefaultNamespace(NamespaceIdent)NamespaceIdRule(UnquotedString)Idspace(IdentPrefixUrlOption<QuotedString>)TreatXrefsAsEquivalent(IdentPrefix)TreatXrefsAsGenusDifferentia(IdentPrefixRelationIdentClassIdent)TreatXrefsAsReverseGenusDifferentia(IdentPrefixRelationIdentClassIdent)TreatXrefsAsRelationship(IdentPrefixRelationIdent)TreatXrefsAsIsA(IdentPrefix)TreatXrefsAsHasSubclass(IdentPrefix)PropertyValue(PropertyValue)Remark(UnquotedString)Ontology(UnquotedString)OwlAxioms(UnquotedString)Unreserved(UnquotedStringUnquotedString)

Trait Implementations

impl<'i> FromPair<'i> for HeaderClause[src]

fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>[src]

Create a new instance from a Pair.

impl OboClause for HeaderClause[src]

impl Eq for HeaderClause[src]

impl Ord for HeaderClause[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialEq<HeaderClause> for HeaderClause[src]

impl Clone for HeaderClause[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<HeaderClause> for HeaderClause[src]

impl From<HeaderClause> for HeaderFrame[src]

impl Debug for HeaderClause[src]

impl Display for HeaderClause[src]

impl Hash for HeaderClause[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromIterator<HeaderClause> for HeaderFrame[src]

impl FromStr for HeaderClause[src]

type Err = SyntaxError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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]