Struct cairo_lang_syntax::node::ast::ItemPtr
source · pub struct ItemPtr(pub SyntaxStablePtrId);
Tuple Fields§
§0: SyntaxStablePtrId
Implementations§
source§impl ItemPtr
impl ItemPtr
pub fn untyped(&self) -> SyntaxStablePtrId
pub fn lookup(&self, db: &dyn SyntaxGroup) -> Item
Trait Implementations§
source§impl From<FunctionWithBodyPtr> for ItemPtr
impl From<FunctionWithBodyPtr> for ItemPtr
source§fn from(value: FunctionWithBodyPtr) -> Self
fn from(value: FunctionWithBodyPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemConstantPtr> for ItemPtr
impl From<ItemConstantPtr> for ItemPtr
source§fn from(value: ItemConstantPtr) -> Self
fn from(value: ItemConstantPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemEnumPtr> for ItemPtr
impl From<ItemEnumPtr> for ItemPtr
source§fn from(value: ItemEnumPtr) -> Self
fn from(value: ItemEnumPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemExternFunctionPtr> for ItemPtr
impl From<ItemExternFunctionPtr> for ItemPtr
source§fn from(value: ItemExternFunctionPtr) -> Self
fn from(value: ItemExternFunctionPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemExternTypePtr> for ItemPtr
impl From<ItemExternTypePtr> for ItemPtr
source§fn from(value: ItemExternTypePtr) -> Self
fn from(value: ItemExternTypePtr) -> Self
Converts to this type from the input type.
source§impl From<ItemImplAliasPtr> for ItemPtr
impl From<ItemImplAliasPtr> for ItemPtr
source§fn from(value: ItemImplAliasPtr) -> Self
fn from(value: ItemImplAliasPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemImplPtr> for ItemPtr
impl From<ItemImplPtr> for ItemPtr
source§fn from(value: ItemImplPtr) -> Self
fn from(value: ItemImplPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemInlineMacroPtr> for ItemPtr
impl From<ItemInlineMacroPtr> for ItemPtr
source§fn from(value: ItemInlineMacroPtr) -> Self
fn from(value: ItemInlineMacroPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemMissingPtr> for ItemPtr
impl From<ItemMissingPtr> for ItemPtr
source§fn from(value: ItemMissingPtr) -> Self
fn from(value: ItemMissingPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemModulePtr> for ItemPtr
impl From<ItemModulePtr> for ItemPtr
source§fn from(value: ItemModulePtr) -> Self
fn from(value: ItemModulePtr) -> Self
Converts to this type from the input type.
source§impl From<ItemStructPtr> for ItemPtr
impl From<ItemStructPtr> for ItemPtr
source§fn from(value: ItemStructPtr) -> Self
fn from(value: ItemStructPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemTraitPtr> for ItemPtr
impl From<ItemTraitPtr> for ItemPtr
source§fn from(value: ItemTraitPtr) -> Self
fn from(value: ItemTraitPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemTypeAliasPtr> for ItemPtr
impl From<ItemTypeAliasPtr> for ItemPtr
source§fn from(value: ItemTypeAliasPtr) -> Self
fn from(value: ItemTypeAliasPtr) -> Self
Converts to this type from the input type.
source§impl From<ItemUsePtr> for ItemPtr
impl From<ItemUsePtr> for ItemPtr
source§fn from(value: ItemUsePtr) -> Self
fn from(value: ItemUsePtr) -> Self
Converts to this type from the input type.
source§impl PartialEq for ItemPtr
impl PartialEq for ItemPtr
impl Copy for ItemPtr
impl Eq for ItemPtr
impl StructuralEq for ItemPtr
impl StructuralPartialEq for ItemPtr
Auto Trait Implementations§
impl RefUnwindSafe for ItemPtr
impl Send for ItemPtr
impl Sync for ItemPtr
impl Unpin for ItemPtr
impl UnwindSafe for ItemPtr
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 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.§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.