Struct parser_database::ast::AttributeId
source · pub struct AttributeId(/* private fields */);
Expand description
An attribute (@ or @@) node in the AST.
Implementations§
source§impl AttributeId
impl AttributeId
pub fn new_in_container( container: AttributeContainer, idx: usize ) -> AttributeId
Trait Implementations§
source§impl Clone for AttributeId
impl Clone for AttributeId
source§fn clone(&self) -> AttributeId
fn clone(&self) -> AttributeId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttributeId
impl Debug for AttributeId
source§impl Hash for AttributeId
impl Hash for AttributeId
source§impl Index<AttributeId> for SchemaAst
impl Index<AttributeId> for SchemaAst
source§impl Ord for AttributeId
impl Ord for AttributeId
source§fn cmp(&self, other: &AttributeId) -> Ordering
fn cmp(&self, other: &AttributeId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AttributeId
impl PartialEq for AttributeId
source§fn eq(&self, other: &AttributeId) -> bool
fn eq(&self, other: &AttributeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AttributeId
impl PartialOrd for AttributeId
source§fn partial_cmp(&self, other: &AttributeId) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AttributeId
impl Eq for AttributeId
impl StructuralEq for AttributeId
impl StructuralPartialEq for AttributeId
Auto Trait Implementations§
impl RefUnwindSafe for AttributeId
impl Send for AttributeId
impl Sync for AttributeId
impl Unpin for AttributeId
impl UnwindSafe for AttributeId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.