pub(crate) struct PathExprCtx<'db> {Show 16 fields
pub(crate) in_block_expr: bool,
pub(crate) in_breakable: Option<BreakableKind>,
pub(crate) after_if_expr: bool,
pub(crate) before_else_kw: bool,
pub(crate) in_condition: bool,
pub(crate) incomplete_let: bool,
pub(crate) after_incomplete_let: bool,
pub(crate) in_value: bool,
pub(crate) ref_expr_parent: Option<RefExpr>,
pub(crate) after_amp: bool,
pub(crate) is_func_update: Option<RecordExpr>,
pub(crate) self_param: Option<Either<SelfParam, Param<'db>>>,
pub(crate) innermost_ret_ty: Option<Type<'db>>,
pub(crate) innermost_breakable_ty: Option<Type<'db>>,
pub(crate) impl_: Option<Impl>,
pub(crate) in_match_guard: bool,
}Fields§
§in_block_expr: bool§in_breakable: Option<BreakableKind>§after_if_expr: bool§before_else_kw: bool§in_condition: boolWhether this expression is the direct condition of an if or while expression
incomplete_let: bool§after_incomplete_let: bool§in_value: bool§ref_expr_parent: Option<RefExpr>§after_amp: bool§is_func_update: Option<RecordExpr>The surrounding RecordExpression we are completing a functional update
self_param: Option<Either<SelfParam, Param<'db>>>§innermost_ret_ty: Option<Type<'db>>§innermost_breakable_ty: Option<Type<'db>>§impl_: Option<Impl>§in_match_guard: boolWhether this expression occurs in match arm guard position: before the fat arrow token
Trait Implementations§
Source§impl<'db> Debug for PathExprCtx<'db>
impl<'db> Debug for PathExprCtx<'db>
Source§impl<'db> PartialEq for PathExprCtx<'db>
impl<'db> PartialEq for PathExprCtx<'db>
impl<'db> Eq for PathExprCtx<'db>
impl<'db> StructuralPartialEq for PathExprCtx<'db>
Auto Trait Implementations§
impl<'db> Freeze for PathExprCtx<'db>
impl<'db> !RefUnwindSafe for PathExprCtx<'db>
impl<'db> !Send for PathExprCtx<'db>
impl<'db> !Sync for PathExprCtx<'db>
impl<'db> Unpin for PathExprCtx<'db>
impl<'db> !UnwindSafe for PathExprCtx<'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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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.§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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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