[−][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<'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]
Create a new instance from a Pair
.
impl OboClause for HeaderClause
[src]
fn tag(&self) -> &str
[src]
fn cardinality(&self) -> Cardinality
[src]
impl Eq for HeaderClause
[src]
impl Ord for HeaderClause
[src]
fn cmp(&self, other: &HeaderClause) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialEq<HeaderClause> for HeaderClause
[src]
fn eq(&self, other: &HeaderClause) -> bool
[src]
fn ne(&self, other: &HeaderClause) -> bool
[src]
impl Clone for HeaderClause
[src]
fn clone(&self) -> 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]
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 From<HeaderClause> for HeaderFrame
[src]
fn from(clause: HeaderClause) -> Self
[src]
impl Debug for HeaderClause
[src]
impl Display for HeaderClause
[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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromIterator<HeaderClause> for HeaderFrame
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = HeaderClause>,
[src]
T: IntoIterator<Item = HeaderClause>,
impl FromStr for HeaderClause
[src]
Auto Trait Implementations
impl Send for HeaderClause
impl Sync for HeaderClause
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,