pub struct ExprPtr<'db>(pub SyntaxStablePtrId<'db>);Tuple Fields§
§0: SyntaxStablePtrId<'db>Trait Implementations§
Source§impl<'db> From<ExprBinaryPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprBinaryPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprBinaryPtr<'db>) -> Self
fn from(value: ExprBinaryPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprBlockPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprBlockPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprBlockPtr<'db>) -> Self
fn from(value: ExprBlockPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprClosurePtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprClosurePtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprClosurePtr<'db>) -> Self
fn from(value: ExprClosurePtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprErrorPropagatePtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprErrorPropagatePtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprErrorPropagatePtr<'db>) -> Self
fn from(value: ExprErrorPropagatePtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprFieldInitShorthandPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprFieldInitShorthandPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprFieldInitShorthandPtr<'db>) -> Self
fn from(value: ExprFieldInitShorthandPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprFixedSizeArrayPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprFixedSizeArrayPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprFixedSizeArrayPtr<'db>) -> Self
fn from(value: ExprFixedSizeArrayPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprForPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprForPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprForPtr<'db>) -> Self
fn from(value: ExprForPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprFunctionCallPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprFunctionCallPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprFunctionCallPtr<'db>) -> Self
fn from(value: ExprFunctionCallPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprIndexedPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprIndexedPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprIndexedPtr<'db>) -> Self
fn from(value: ExprIndexedPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprInlineMacroPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprInlineMacroPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprInlineMacroPtr<'db>) -> Self
fn from(value: ExprInlineMacroPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprListParenthesizedPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprListParenthesizedPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprListParenthesizedPtr<'db>) -> Self
fn from(value: ExprListParenthesizedPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprLoopPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprLoopPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprLoopPtr<'db>) -> Self
fn from(value: ExprLoopPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprMatchPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprMatchPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprMatchPtr<'db>) -> Self
fn from(value: ExprMatchPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprMissingPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprMissingPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprMissingPtr<'db>) -> Self
fn from(value: ExprMissingPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprParenthesizedPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprParenthesizedPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprParenthesizedPtr<'db>) -> Self
fn from(value: ExprParenthesizedPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprPathPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprPathPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprPathPtr<'db>) -> Self
fn from(value: ExprPathPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprPtr<'db>> for SyntaxStablePtrId<'db>
impl<'db> From<ExprPtr<'db>> for SyntaxStablePtrId<'db>
Source§impl<'db> From<ExprStructCtorCallPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprStructCtorCallPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprStructCtorCallPtr<'db>) -> Self
fn from(value: ExprStructCtorCallPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprUnaryPtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprUnaryPtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprUnaryPtr<'db>) -> Self
fn from(value: ExprUnaryPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<ExprWhilePtr<'db>> for ExprPtr<'db>
impl<'db> From<ExprWhilePtr<'db>> for ExprPtr<'db>
Source§fn from(value: ExprWhilePtr<'db>) -> Self
fn from(value: ExprWhilePtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<TerminalFalsePtr<'db>> for ExprPtr<'db>
impl<'db> From<TerminalFalsePtr<'db>> for ExprPtr<'db>
Source§fn from(value: TerminalFalsePtr<'db>) -> Self
fn from(value: TerminalFalsePtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<TerminalLiteralNumberPtr<'db>> for ExprPtr<'db>
impl<'db> From<TerminalLiteralNumberPtr<'db>> for ExprPtr<'db>
Source§fn from(value: TerminalLiteralNumberPtr<'db>) -> Self
fn from(value: TerminalLiteralNumberPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<TerminalShortStringPtr<'db>> for ExprPtr<'db>
impl<'db> From<TerminalShortStringPtr<'db>> for ExprPtr<'db>
Source§fn from(value: TerminalShortStringPtr<'db>) -> Self
fn from(value: TerminalShortStringPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<TerminalStringPtr<'db>> for ExprPtr<'db>
impl<'db> From<TerminalStringPtr<'db>> for ExprPtr<'db>
Source§fn from(value: TerminalStringPtr<'db>) -> Self
fn from(value: TerminalStringPtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<TerminalTruePtr<'db>> for ExprPtr<'db>
impl<'db> From<TerminalTruePtr<'db>> for ExprPtr<'db>
Source§fn from(value: TerminalTruePtr<'db>) -> Self
fn from(value: TerminalTruePtr<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> TypedStablePtr<'db> for ExprPtr<'db>
impl<'db> TypedStablePtr<'db> for ExprPtr<'db>
type SyntaxNode = Expr<'db>
Source§fn untyped(self) -> SyntaxStablePtrId<'db>
fn untyped(self) -> SyntaxStablePtrId<'db>
Returns the untyped stable pointer.
Source§fn lookup(&self, db: &'db dyn Database) -> Self::SyntaxNode
fn lookup(&self, db: &'db dyn Database) -> Self::SyntaxNode
Returns the syntax node pointed to by this stable pointer.
impl<'db> Copy for ExprPtr<'db>
impl<'db> Eq for ExprPtr<'db>
impl<'db> StructuralPartialEq for ExprPtr<'db>
Auto Trait Implementations§
impl<'db> Freeze for ExprPtr<'db>
impl<'db> RefUnwindSafe for ExprPtr<'db>
impl<'db> Send for ExprPtr<'db>
impl<'db> Sync for ExprPtr<'db>
impl<'db> Unpin for ExprPtr<'db>
impl<'db> UnwindSafe for ExprPtr<'db>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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