Struct query_structure::ast::CompositeTypeId
source · pub struct CompositeTypeId(/* private fields */);
Expand description
An opaque identifier for a type definition in a schema AST. Use the
schema[type_id]
syntax to resolve the id to an ast::CompositeType
.
Trait Implementations§
source§impl Clone for CompositeTypeId
impl Clone for CompositeTypeId
source§fn clone(&self) -> CompositeTypeId
fn clone(&self) -> CompositeTypeId
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 CompositeTypeId
impl Debug for CompositeTypeId
source§impl Hash for CompositeTypeId
impl Hash for CompositeTypeId
source§impl Index<CompositeTypeId> for SchemaAst
impl Index<CompositeTypeId> for SchemaAst
§type Output = CompositeType
type Output = CompositeType
The returned type after indexing.
source§fn index(
&self,
index: CompositeTypeId
) -> &<SchemaAst as Index<CompositeTypeId>>::Output
fn index( &self, index: CompositeTypeId ) -> &<SchemaAst as Index<CompositeTypeId>>::Output
Performs the indexing (
container[index]
) operation. Read moresource§impl Ord for CompositeTypeId
impl Ord for CompositeTypeId
source§fn cmp(&self, other: &CompositeTypeId) -> Ordering
fn cmp(&self, other: &CompositeTypeId) -> 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 CompositeTypeId
impl PartialEq for CompositeTypeId
source§fn eq(&self, other: &CompositeTypeId) -> bool
fn eq(&self, other: &CompositeTypeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompositeTypeId
impl PartialOrd for CompositeTypeId
source§fn partial_cmp(&self, other: &CompositeTypeId) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeTypeId) -> 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 CompositeTypeId
impl Eq for CompositeTypeId
impl StructuralEq for CompositeTypeId
impl StructuralPartialEq for CompositeTypeId
Auto Trait Implementations§
impl RefUnwindSafe for CompositeTypeId
impl Send for CompositeTypeId
impl Sync for CompositeTypeId
impl Unpin for CompositeTypeId
impl UnwindSafe for CompositeTypeId
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.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.