Struct cairo_lang_syntax::node::ast::ExprUnary
source · pub struct ExprUnary { /* private fields */ }
Implementations§
source§impl ExprUnary
impl ExprUnary
pub const INDEX_OP: usize = 0usize
pub const INDEX_EXPR: usize = 1usize
pub fn new_green( db: &dyn SyntaxGroup, op: UnaryOperatorGreen, expr: ExprGreen ) -> ExprUnaryGreen
source§impl ExprUnary
impl ExprUnary
pub fn op(&self, db: &dyn SyntaxGroup) -> UnaryOperator
pub fn expr(&self, db: &dyn SyntaxGroup) -> Expr
Trait Implementations§
source§impl PartialEq for ExprUnary
impl PartialEq for ExprUnary
source§impl TypedSyntaxNode for ExprUnary
impl TypedSyntaxNode for ExprUnary
source§const OPTIONAL_KIND: Option<SyntaxKind> = _
const OPTIONAL_KIND: Option<SyntaxKind> = _
The relevant SyntaxKind. None for enums.
type StablePtr = ExprUnaryPtr
type Green = ExprUnaryGreen
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 ExprUnary
impl StructuralPartialEq for ExprUnary
Auto Trait Implementations§
impl RefUnwindSafe for ExprUnary
impl Send for ExprUnary
impl Sync for ExprUnary
impl Unpin for ExprUnary
impl UnwindSafe for ExprUnary
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.