Struct apollo_compiler::schema::ExtensionId
source · pub struct ExtensionId { /* private fields */ }
Expand description
Represents the identity of a schema extension or type extension.
Compares equal to its clones but not to other ExtensionId
s created separately,
even if they contain the same source location.
Implementations§
source§impl ExtensionId
impl ExtensionId
pub fn new<T>(extension: &Node<T>) -> Self
pub fn location(&self) -> Option<NodeLocation>
pub fn same_location<T>(&self, node: T) -> Node<T>
Trait Implementations§
source§impl Clone for ExtensionId
impl Clone for ExtensionId
source§fn clone(&self) -> ExtensionId
fn clone(&self) -> ExtensionId
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 ExtensionId
impl Debug for ExtensionId
source§impl Hash for ExtensionId
impl Hash for ExtensionId
source§impl PartialEq for ExtensionId
impl PartialEq for ExtensionId
impl Eq for ExtensionId
impl StructuralEq for ExtensionId
Auto Trait Implementations§
impl RefUnwindSafe for ExtensionId
impl Send for ExtensionId
impl Sync for ExtensionId
impl Unpin for ExtensionId
impl UnwindSafe for ExtensionId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.