Struct cairo_lang_defs::ids::GenericParamLongId
source · pub struct GenericParamLongId(pub ModuleFileId, pub <GenericParam as TypedSyntaxNode>::StablePtr);
Tuple Fields§
§0: ModuleFileId
§1: <GenericParam as TypedSyntaxNode>::StablePtr
Implementations§
source§impl GenericParamLongId
impl GenericParamLongId
pub fn name(&self, db: &dyn SyntaxGroup) -> SmolStr
pub fn kind(&self, db: &dyn SyntaxGroup) -> GenericKind
sourcepub fn generic_item(&self, db: &dyn DefsGroup) -> GenericItemId
pub fn generic_item(&self, db: &dyn DefsGroup) -> GenericItemId
Retrieves the ID of the generic item holding this generic parameter.
Trait Implementations§
source§impl Clone for GenericParamLongId
impl Clone for GenericParamLongId
source§fn clone(&self) -> GenericParamLongId
fn clone(&self) -> GenericParamLongId
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 GenericParamLongId
impl Debug for GenericParamLongId
source§impl DebugWithDb<dyn DefsGroup> for GenericParamLongId
impl DebugWithDb<dyn DefsGroup> for GenericParamLongId
source§impl Hash for GenericParamLongId
impl Hash for GenericParamLongId
source§impl PartialEq for GenericParamLongId
impl PartialEq for GenericParamLongId
source§fn eq(&self, other: &GenericParamLongId) -> bool
fn eq(&self, other: &GenericParamLongId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GenericParamLongId
impl StructuralEq for GenericParamLongId
impl StructuralPartialEq for GenericParamLongId
Auto Trait Implementations§
impl RefUnwindSafe for GenericParamLongId
impl Send for GenericParamLongId
impl Sync for GenericParamLongId
impl Unpin for GenericParamLongId
impl UnwindSafe for GenericParamLongId
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<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.§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,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.