struct AssignmentsCollector<'a, 'db> {
sema: &'a Semantics<'db, RootDatabase>,
common_lhs: Expr,
assignments: Vec<(BinExpr, Expr)>,
}Fields§
§sema: &'a Semantics<'db, RootDatabase>§common_lhs: Expr§assignments: Vec<(BinExpr, Expr)>Implementations§
Source§impl AssignmentsCollector<'_, '_>
impl AssignmentsCollector<'_, '_>
fn collect_match(&mut self, match_expr: &MatchExpr) -> Option<()>
fn collect_if(&mut self, if_expr: &IfExpr) -> Option<()>
fn collect_block(&mut self, block: &BlockExpr) -> Option<()>
fn collect_expr(&mut self, expr: &BinExpr) -> Option<()>
Auto Trait Implementations§
impl<'a, 'db> Freeze for AssignmentsCollector<'a, 'db>
impl<'a, 'db> !RefUnwindSafe for AssignmentsCollector<'a, 'db>
impl<'a, 'db> !Send for AssignmentsCollector<'a, 'db>
impl<'a, 'db> !Sync for AssignmentsCollector<'a, 'db>
impl<'a, 'db> Unpin for AssignmentsCollector<'a, 'db>
impl<'a, 'db> UnsafeUnpin for AssignmentsCollector<'a, 'db>
impl<'a, 'db> !UnwindSafe for AssignmentsCollector<'a, '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<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