Struct cairo_lang_syntax::node::ast::ItemExternType   
source · pub struct ItemExternType { /* private fields */ }Implementations§
source§impl ItemExternType
 
impl ItemExternType
pub const INDEX_ATTRIBUTES: usize = 0usize
pub const INDEX_EXTERN_KW: usize = 1usize
pub const INDEX_TYPE_KW: usize = 2usize
pub const INDEX_NAME: usize = 3usize
pub const INDEX_GENERIC_PARAMS: usize = 4usize
pub const INDEX_SEMICOLON: usize = 5usize
pub fn new_green( db: &dyn SyntaxGroup, attributes: AttributeListGreen, extern_kw: TerminalExternGreen, type_kw: TerminalTypeGreen, name: TerminalIdentifierGreen, generic_params: OptionWrappedGenericParamListGreen, semicolon: TerminalSemicolonGreen ) -> ItemExternTypeGreen
source§impl ItemExternType
 
impl ItemExternType
pub fn attributes(&self, db: &dyn SyntaxGroup) -> AttributeList
pub fn extern_kw(&self, db: &dyn SyntaxGroup) -> TerminalExtern
pub fn type_kw(&self, db: &dyn SyntaxGroup) -> TerminalType
pub fn name(&self, db: &dyn SyntaxGroup) -> TerminalIdentifier
pub fn generic_params( &self, db: &dyn SyntaxGroup ) -> OptionWrappedGenericParamList
pub fn semicolon(&self, db: &dyn SyntaxGroup) -> TerminalSemicolon
Trait Implementations§
source§impl Clone for ItemExternType
 
impl Clone for ItemExternType
source§fn clone(&self) -> ItemExternType
 
fn clone(&self) -> ItemExternType
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 ItemExternType
 
impl Debug for ItemExternType
source§impl Hash for ItemExternType
 
impl Hash for ItemExternType
source§impl PartialEq<ItemExternType> for ItemExternType
 
impl PartialEq<ItemExternType> for ItemExternType
source§fn eq(&self, other: &ItemExternType) -> bool
 
fn eq(&self, other: &ItemExternType) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl QueryAttrs for ItemExternType
 
impl QueryAttrs for ItemExternType
source§fn query_attr(&self, db: &dyn SyntaxGroup, attr: &str) -> Vec<Attribute>
 
fn query_attr(&self, db: &dyn SyntaxGroup, attr: &str) -> Vec<Attribute>
Collect all attributes named exactly 
attr attached to this node.source§impl TypedSyntaxNode for ItemExternType
 
impl TypedSyntaxNode for ItemExternType
source§const OPTIONAL_KIND: Option<SyntaxKind> = _
 
const OPTIONAL_KIND: Option<SyntaxKind> = _
The relevant SyntaxKind. None for enums.
type StablePtr = ItemExternTypePtr
type Green = ItemExternTypeGreen
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn from_ptr( db: &dyn SyntaxGroup, root: &SyntaxFile, ptr: Self::StablePtr ) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
impl Eq for ItemExternType
impl StructuralEq for ItemExternType
impl StructuralPartialEq for ItemExternType
Auto Trait Implementations§
impl RefUnwindSafe for ItemExternType
impl Send for ItemExternType
impl Sync for ItemExternType
impl Unpin for ItemExternType
impl UnwindSafe for ItemExternType
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.