Struct cairo_lang_syntax::node::ast::Param
source · pub struct Param { /* private fields */ }
Implementations§
source§impl Param
impl Param
pub const INDEX_MODIFIERS: usize = 0usize
pub const INDEX_NAME: usize = 1usize
pub const INDEX_TYPE_CLAUSE: usize = 2usize
pub fn new_green( db: &dyn SyntaxGroup, modifiers: ModifierListGreen, name: TerminalIdentifierGreen, type_clause: TypeClauseGreen ) -> ParamGreen
source§impl Param
impl Param
pub fn modifiers(&self, db: &dyn SyntaxGroup) -> ModifierList
pub fn name(&self, db: &dyn SyntaxGroup) -> TerminalIdentifier
pub fn type_clause(&self, db: &dyn SyntaxGroup) -> TypeClause
Trait Implementations§
source§impl PartialEq for Param
impl PartialEq for Param
source§impl TypedSyntaxNode for Param
impl TypedSyntaxNode for Param
source§const OPTIONAL_KIND: Option<SyntaxKind> = _
const OPTIONAL_KIND: Option<SyntaxKind> = _
The relevant SyntaxKind. None for enums.
type StablePtr = ParamPtr
type Green = ParamGreen
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 Param
impl StructuralEq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
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.