[−][src]Struct fastobo::ast::UnprefixedIdent
An identifier without a prefix.
Implementations
impl UnprefixedIdent
[src]
pub fn new<S>(id: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
Create a new unprefixed identifier.
pub fn as_str(&self) -> &str
[src]
Return a reference to the underlying str
.
Methods from Deref<Target = UnprefixedId>
Trait Implementations
impl AsRef<UnprefixedId> for UnprefixedIdent
[src]
fn as_ref(&self) -> &UnprefixedId
[src]
impl AsRef<str> for UnprefixedIdent
[src]
impl Borrow<UnprefixedId> for UnprefixedIdent
[src]
fn borrow(&self) -> &UnprefixedId
[src]
impl Clone for UnprefixedIdent
[src]
fn clone(&self) -> UnprefixedIdent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnprefixedIdent
[src]
impl Deref for UnprefixedIdent
[src]
type Target = UnprefixedId
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Display for UnprefixedIdent
[src]
impl Eq for UnprefixedIdent
[src]
impl<'_> From<&'_ str> for UnprefixedIdent
[src]
impl From<String> for UnprefixedIdent
[src]
impl From<UnprefixedIdent> for Ident
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for ClassIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for InstanceIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for NamespaceIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for RelationIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for SubsetIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for SynonymTypeIdent
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl From<UnprefixedIdent> for String
[src]
fn from(id: UnprefixedIdent) -> Self
[src]
impl<'i> FromPair<'i> for UnprefixedIdent
[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 UnprefixedIdent
[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 UnprefixedIdent
[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 Ord for UnprefixedIdent
[src]
fn cmp(&self, other: &UnprefixedIdent) -> 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<UnprefixedIdent> for UnprefixedIdent
[src]
fn eq(&self, other: &UnprefixedIdent) -> bool
[src]
fn ne(&self, other: &UnprefixedIdent) -> bool
[src]
impl PartialOrd<UnprefixedIdent> for UnprefixedIdent
[src]
fn partial_cmp(&self, other: &UnprefixedIdent) -> Option<Ordering>
[src]
fn lt(&self, other: &UnprefixedIdent) -> bool
[src]
fn le(&self, other: &UnprefixedIdent) -> bool
[src]
fn gt(&self, other: &UnprefixedIdent) -> bool
[src]
fn ge(&self, other: &UnprefixedIdent) -> bool
[src]
impl<'a> Share<'a, &'a UnprefixedId> for UnprefixedIdent
[src]
fn share(&'a self) -> &'a UnprefixedId
[src]
impl StructuralEq for UnprefixedIdent
[src]
impl StructuralPartialEq for UnprefixedIdent
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnprefixedIdent
impl Send for UnprefixedIdent
impl Sync for UnprefixedIdent
impl Unpin for UnprefixedIdent
impl UnwindSafe for UnprefixedIdent
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>,