pub struct ExprPtr(pub SyntaxStablePtrId);
Tuple Fields§
§0: SyntaxStablePtrId
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<ExprClosurePtr> for ExprPtr
impl From<ExprClosurePtr> for ExprPtr
source§fn from(value: ExprClosurePtr) -> Self
fn from(value: ExprClosurePtr) -> 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<ExprForPtr> for ExprPtr
impl From<ExprForPtr> for ExprPtr
source§fn from(value: ExprForPtr) -> Self
fn from(value: ExprForPtr) -> 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<ExprPtr> for SyntaxStablePtrId
impl From<ExprPtr> for SyntaxStablePtrId
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 TypedStablePtr for ExprPtr
impl TypedStablePtr for ExprPtr
type SyntaxNode = Expr
source§fn untyped(&self) -> SyntaxStablePtrId
fn untyped(&self) -> SyntaxStablePtrId
Returns the untyped stable pointer.
source§fn lookup(&self, db: &dyn SyntaxGroup) -> Expr
fn lookup(&self, db: &dyn SyntaxGroup) -> Expr
Returns the syntax node pointed to by this stable pointer.
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<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