Struct cairo_lang_syntax::node::ast::ModuleItemList   
source · pub struct ModuleItemList(/* private fields */);Implementations§
source§impl ModuleItemList
 
impl ModuleItemList
pub fn new_green( db: &dyn SyntaxGroup, children: Vec<ModuleItemGreen> ) -> ModuleItemListGreen
Methods from Deref<Target = ElementList<ModuleItem, 1>>§
pub fn elements(&self, db: &dyn SyntaxGroup) -> Vec<T>
pub fn has_tail(&self, db: &dyn SyntaxGroup) -> bool
Trait Implementations§
source§impl Clone for ModuleItemList
 
impl Clone for ModuleItemList
source§fn clone(&self) -> ModuleItemList
 
fn clone(&self) -> ModuleItemList
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 ModuleItemList
 
impl Debug for ModuleItemList
source§impl Deref for ModuleItemList
 
impl Deref for ModuleItemList
§type Target = ElementList<ModuleItem, 1>
 
type Target = ElementList<ModuleItem, 1>
The resulting type after dereferencing.
source§impl Hash for ModuleItemList
 
impl Hash for ModuleItemList
source§impl PartialEq for ModuleItemList
 
impl PartialEq for ModuleItemList
source§fn eq(&self, other: &ModuleItemList) -> bool
 
fn eq(&self, other: &ModuleItemList) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl TypedSyntaxNode for ModuleItemList
 
impl TypedSyntaxNode for ModuleItemList
source§const OPTIONAL_KIND: Option<SyntaxKind> = _
 
const OPTIONAL_KIND: Option<SyntaxKind> = _
The relevant SyntaxKind. None for enums.
type StablePtr = ModuleItemListPtr
type Green = ModuleItemListGreen
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
impl Eq for ModuleItemList
impl StructuralPartialEq for ModuleItemList
Auto Trait Implementations§
impl RefUnwindSafe for ModuleItemList
impl Send for ModuleItemList
impl Sync for ModuleItemList
impl Unpin for ModuleItemList
impl UnwindSafe for ModuleItemList
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.