[−][src]Struct fastobo::ast::Synonym
A synonym, denoting an alternative name for the embedding entity.
Methods
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<'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]
Create a new instance from a Pair
.
impl Ord for Synonym
[src]
fn cmp(&self, other: &Synonym) -> 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 Clone for Synonym
[src]
fn clone(&self) -> Synonym
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Synonym> for Synonym
[src]
impl Eq 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 Debug for Synonym
[src]
impl Display for Synonym
[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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for Synonym
[src]
Auto Trait Implementations
impl Sync for Synonym
impl Unpin for Synonym
impl Send for Synonym
impl UnwindSafe for Synonym
impl RefUnwindSafe for Synonym
Blanket Implementations
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> From<T> for 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>,
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,