Struct cairo_lang_syntax::node::ast::ExprPtr
source · pub struct ExprPtr(pub SyntaxStablePtrId);
Tuple Fields§
§0: SyntaxStablePtrId
Implementations§
source§impl ExprPtr
impl ExprPtr
pub fn untyped(&self) -> SyntaxStablePtrId
pub fn lookup(&self, db: &dyn SyntaxGroup) -> Expr
Trait Implementations§
source§impl From<ExprBinaryPtr> for ExprPtr
impl From<ExprBinaryPtr> for ExprPtr
source§fn from(value: ExprBinaryPtr) -> Self
fn from(value: ExprBinaryPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprBlockPtr> for ExprPtr
impl From<ExprBlockPtr> for ExprPtr
source§fn from(value: ExprBlockPtr) -> Self
fn from(value: ExprBlockPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprErrorPropagatePtr> for ExprPtr
impl From<ExprErrorPropagatePtr> for ExprPtr
source§fn from(value: ExprErrorPropagatePtr) -> Self
fn from(value: ExprErrorPropagatePtr) -> Self
Converts to this type from the input type.
source§impl From<ExprFieldInitShorthandPtr> for ExprPtr
impl From<ExprFieldInitShorthandPtr> for ExprPtr
source§fn from(value: ExprFieldInitShorthandPtr) -> Self
fn from(value: ExprFieldInitShorthandPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprFixedSizeArrayPtr> for ExprPtr
impl From<ExprFixedSizeArrayPtr> for ExprPtr
source§fn from(value: ExprFixedSizeArrayPtr) -> Self
fn from(value: ExprFixedSizeArrayPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprFunctionCallPtr> for ExprPtr
impl From<ExprFunctionCallPtr> for ExprPtr
source§fn from(value: ExprFunctionCallPtr) -> Self
fn from(value: ExprFunctionCallPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprIndexedPtr> for ExprPtr
impl From<ExprIndexedPtr> for ExprPtr
source§fn from(value: ExprIndexedPtr) -> Self
fn from(value: ExprIndexedPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprInlineMacroPtr> for ExprPtr
impl From<ExprInlineMacroPtr> for ExprPtr
source§fn from(value: ExprInlineMacroPtr) -> Self
fn from(value: ExprInlineMacroPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprListParenthesizedPtr> for ExprPtr
impl From<ExprListParenthesizedPtr> for ExprPtr
source§fn from(value: ExprListParenthesizedPtr) -> Self
fn from(value: ExprListParenthesizedPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprLoopPtr> for ExprPtr
impl From<ExprLoopPtr> for ExprPtr
source§fn from(value: ExprLoopPtr) -> Self
fn from(value: ExprLoopPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprMatchPtr> for ExprPtr
impl From<ExprMatchPtr> for ExprPtr
source§fn from(value: ExprMatchPtr) -> Self
fn from(value: ExprMatchPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprMissingPtr> for ExprPtr
impl From<ExprMissingPtr> for ExprPtr
source§fn from(value: ExprMissingPtr) -> Self
fn from(value: ExprMissingPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprParenthesizedPtr> for ExprPtr
impl From<ExprParenthesizedPtr> for ExprPtr
source§fn from(value: ExprParenthesizedPtr) -> Self
fn from(value: ExprParenthesizedPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprPathPtr> for ExprPtr
impl From<ExprPathPtr> for ExprPtr
source§fn from(value: ExprPathPtr) -> Self
fn from(value: ExprPathPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprStructCtorCallPtr> for ExprPtr
impl From<ExprStructCtorCallPtr> for ExprPtr
source§fn from(value: ExprStructCtorCallPtr) -> Self
fn from(value: ExprStructCtorCallPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprUnaryPtr> for ExprPtr
impl From<ExprUnaryPtr> for ExprPtr
source§fn from(value: ExprUnaryPtr) -> Self
fn from(value: ExprUnaryPtr) -> Self
Converts to this type from the input type.
source§impl From<ExprWhilePtr> for ExprPtr
impl From<ExprWhilePtr> for ExprPtr
source§fn from(value: ExprWhilePtr) -> Self
fn from(value: ExprWhilePtr) -> Self
Converts to this type from the input type.
source§impl From<TerminalFalsePtr> for ExprPtr
impl From<TerminalFalsePtr> for ExprPtr
source§fn from(value: TerminalFalsePtr) -> Self
fn from(value: TerminalFalsePtr) -> Self
Converts to this type from the input type.
source§impl From<TerminalLiteralNumberPtr> for ExprPtr
impl From<TerminalLiteralNumberPtr> for ExprPtr
source§fn from(value: TerminalLiteralNumberPtr) -> Self
fn from(value: TerminalLiteralNumberPtr) -> Self
Converts to this type from the input type.
source§impl From<TerminalShortStringPtr> for ExprPtr
impl From<TerminalShortStringPtr> for ExprPtr
source§fn from(value: TerminalShortStringPtr) -> Self
fn from(value: TerminalShortStringPtr) -> Self
Converts to this type from the input type.
source§impl From<TerminalStringPtr> for ExprPtr
impl From<TerminalStringPtr> for ExprPtr
source§fn from(value: TerminalStringPtr) -> Self
fn from(value: TerminalStringPtr) -> Self
Converts to this type from the input type.
source§impl From<TerminalTruePtr> for ExprPtr
impl From<TerminalTruePtr> for ExprPtr
source§fn from(value: TerminalTruePtr) -> Self
fn from(value: TerminalTruePtr) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExprPtr
impl PartialEq for ExprPtr
impl Copy for ExprPtr
impl Eq for ExprPtr
impl StructuralPartialEq for ExprPtr
Auto Trait Implementations§
impl Freeze for ExprPtr
impl RefUnwindSafe for ExprPtr
impl Send for ExprPtr
impl Sync for ExprPtr
impl Unpin for ExprPtr
impl UnwindSafe for ExprPtr
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§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.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.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more