[−][src]Enum fastobo::ast::HeaderClause
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(SubsetIdent, QuotedString)
SynonymTypedef(SynonymTypeIdent, QuotedString, Option<SynonymScope>)
DefaultNamespace(NamespaceIdent)
NamespaceIdRule(UnquotedString)
Idspace(IdentPrefix, Url, Option<QuotedString>)
TreatXrefsAsEquivalent(IdentPrefix)
TreatXrefsAsGenusDifferentia(IdentPrefix, RelationIdent, ClassIdent)
TreatXrefsAsReverseGenusDifferentia(IdentPrefix, RelationIdent, ClassIdent)
TreatXrefsAsRelationship(IdentPrefix, RelationIdent)
TreatXrefsAsIsA(IdentPrefix)
TreatXrefsAsHasSubclass(IdentPrefix)
PropertyValue(PropertyValue)
Remark(UnquotedString)
Ontology(UnquotedString)
OwlAxioms(UnquotedString)
Unreserved(UnquotedString, UnquotedString)
Trait Implementations
impl Clone for HeaderClause
[src]
fn clone(&self) -> HeaderClause
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderClause
[src]
impl Display for HeaderClause
[src]
impl Eq for HeaderClause
[src]
impl From<HeaderClause> for HeaderFrame
[src]
fn from(clause: HeaderClause) -> Self
[src]
impl FromIterator<HeaderClause> for HeaderFrame
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = HeaderClause>,
[src]
T: IntoIterator<Item = HeaderClause>,
impl<'i> FromPair<'i> for HeaderClause
[src]
const RULE: Rule
[src]
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
[src]
impl FromStr for HeaderClause
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for HeaderClause
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl OboClause for HeaderClause
[src]
fn tag(&self) -> &str
[src]
fn cardinality(&self) -> Cardinality
[src]
impl Ord for HeaderClause
[src]
fn cmp(&self, other: &HeaderClause) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<HeaderClause> for HeaderClause
[src]
fn eq(&self, other: &HeaderClause) -> bool
[src]
fn ne(&self, other: &HeaderClause) -> bool
[src]
impl PartialOrd<HeaderClause> for HeaderClause
[src]
fn partial_cmp(&self, other: &HeaderClause) -> Option<Ordering>
[src]
fn lt(&self, other: &HeaderClause) -> bool
[src]
fn le(&self, other: &HeaderClause) -> bool
[src]
fn gt(&self, other: &HeaderClause) -> bool
[src]
fn ge(&self, other: &HeaderClause) -> bool
[src]
impl StructuralEq for HeaderClause
[src]
impl StructuralPartialEq for HeaderClause
[src]
Auto Trait Implementations
impl RefUnwindSafe for HeaderClause
impl Send for HeaderClause
impl Sync for HeaderClause
impl Unpin for HeaderClause
impl UnwindSafe for HeaderClause
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,