[−][src]Struct fastobo::ast::Synonym
A synonym, denoting an alternative name for the embedding entity.
Implementations
impl Synonym
[src]
pub fn new<D>(desc: D, scope: SynonymScope) -> Self where
D: Into<QuotedString>,
[src]
D: Into<QuotedString>,
Create a Synonym
with the given description and scope.
pub fn with_type<D, T>(desc: D, scope: SynonymScope, ty: T) -> Self where
D: Into<QuotedString>,
T: Into<Option<SynonymTypeIdent>>,
[src]
D: Into<QuotedString>,
T: Into<Option<SynonymTypeIdent>>,
Create a Synonym
with the given description, scope, and type.
pub fn with_xrefs<D, L>(desc: D, scope: SynonymScope, xrefs: L) -> Self where
D: Into<QuotedString>,
L: Into<XrefList>,
[src]
D: Into<QuotedString>,
L: Into<XrefList>,
Create a Synonym
with the given description, scope, and xrefs.
pub fn with_type_and_xrefs<D, T, L>(
desc: D,
scope: SynonymScope,
ty: T,
xrefs: L
) -> Self where
D: Into<QuotedString>,
T: Into<Option<SynonymTypeIdent>>,
L: Into<XrefList>,
[src]
desc: D,
scope: SynonymScope,
ty: T,
xrefs: L
) -> Self where
D: Into<QuotedString>,
T: Into<Option<SynonymTypeIdent>>,
L: Into<XrefList>,
Create a Synonym
with the given description, scope, type, and xrefs.
impl Synonym
[src]
pub fn description(&self) -> &QuotedString
[src]
Get a reference to the description of the Synonym
.
pub fn description_mut(&mut self) -> &mut QuotedString
[src]
Get a mutable reference to the description of the Synonym
.
pub fn scope(&self) -> &SynonymScope
[src]
Get a reference to the scope of the Synonym
.
pub fn scope_mut(&mut self) -> &mut SynonymScope
[src]
Get a mutable reference to the scope of the Synonym
.
pub fn ty(&self) -> Option<&SynonymTypeIdent>
[src]
Get a reference to the type of the Synonym
, if any.
pub fn ty_mut(&mut self) -> Option<&mut SynonymTypeIdent>
[src]
Get a mutable reference to the type of the Synonym
, if any.
pub fn xrefs(&self) -> &XrefList
[src]
Get a reference to the xrefs of the Synonym
.
pub fn xrefs_mut(&mut self) -> &mut XrefList
[src]
Get a mutable reference to the xrefs of the Synonym
.
Trait Implementations
impl Clone for Synonym
[src]
impl Debug for Synonym
[src]
impl Display for Synonym
[src]
impl Eq for Synonym
[src]
impl<'i> FromPair<'i> for Synonym
[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 Synonym
[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 Synonym
[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 Synonym
[src]
fn cmp(&self, other: &Synonym) -> 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<Synonym> for Synonym
[src]
impl PartialOrd<Synonym> for Synonym
[src]
fn partial_cmp(&self, other: &Synonym) -> Option<Ordering>
[src]
fn lt(&self, other: &Synonym) -> bool
[src]
fn le(&self, other: &Synonym) -> bool
[src]
fn gt(&self, other: &Synonym) -> bool
[src]
fn ge(&self, other: &Synonym) -> bool
[src]
impl StructuralEq for Synonym
[src]
impl StructuralPartialEq for Synonym
[src]
Auto Trait Implementations
impl RefUnwindSafe for Synonym
impl Send for Synonym
impl Sync for Synonym
impl Unpin for Synonym
impl UnwindSafe for Synonym
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>,