[][src]Enum fastobo::ast::Ident

pub enum Ident {
    Prefixed(PrefixedIdent),
    Unprefixed(UnprefixedIdent),
    Url(Url),
}

An identifier, either prefixed, unprefixed, or a valid URL.

Variants

Prefixed(PrefixedIdent)Unprefixed(UnprefixedIdent)Url(Url)

Trait Implementations

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

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

Create a new instance from a Pair.

impl<'a> Share<'a, Id<'a>> for Ident[src]

impl Clone for Ident[src]

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

Performs copy-assignment from source. Read more

impl Ord for Ident[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 AsRef<Ident> for Ident[src]

impl AsRef<Ident> for ClassIdent[src]

impl AsRef<Ident> for InstanceIdent[src]

impl AsRef<Ident> for NamespaceIdent[src]

impl AsRef<Ident> for RelationIdent[src]

impl AsRef<Ident> for SubsetIdent[src]

impl AsRef<Ident> for SynonymTypeIdent[src]

impl From<Ident> for Import[src]

impl From<PrefixedIdent> for Ident[src]

impl From<UnprefixedIdent> for Ident[src]

impl From<Url> for Ident[src]

impl From<Ident> for ClassIdent[src]

impl From<ClassIdent> for Ident[src]

impl From<Ident> for InstanceIdent[src]

impl From<InstanceIdent> for Ident[src]

impl From<Ident> for NamespaceIdent[src]

impl From<NamespaceIdent> for Ident[src]

impl From<Ident> for RelationIdent[src]

impl From<RelationIdent> for Ident[src]

impl From<Ident> for SubsetIdent[src]

impl From<SubsetIdent> for Ident[src]

impl From<Ident> for SynonymTypeIdent[src]

impl From<SynonymTypeIdent> for Ident[src]

impl PartialOrd<Ident> for Ident[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq<Ident> for Ident[src]

impl AsMut<Ident> for ClassIdent[src]

impl AsMut<Ident> for InstanceIdent[src]

impl AsMut<Ident> for NamespaceIdent[src]

impl AsMut<Ident> for RelationIdent[src]

impl AsMut<Ident> for SubsetIdent[src]

impl AsMut<Ident> for SynonymTypeIdent[src]

impl Eq for Ident[src]

impl Display for Ident[src]

impl Debug for Ident[src]

impl Hash for Ident[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 FromStr for Ident[src]

type Err = SyntaxError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Sync for Ident

impl Send for Ident

impl Unpin for Ident

impl RefUnwindSafe for Ident

impl UnwindSafe for Ident

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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]