struct ElseBlock<'db> {
exist_else_branch: Option<ElseBranch>,
is_never_block: bool,
kind: EarlyKind<'db>,
}Fields§
§exist_else_branch: Option<ElseBranch>§is_never_block: bool§kind: EarlyKind<'db>Implementations§
Source§impl<'db> ElseBlock<'db>
impl<'db> ElseBlock<'db>
fn new( sema: &Semantics<'db, RootDatabase>, exist_else_branch: Option<ElseBranch>, parent_container: &SyntaxNode, ) -> Option<Self>
fn make_else_block_from_exist_branch( &self, make: &SyntaxFactory, ) -> Option<BlockExpr>
fn make_early_block( self, sema: &Semantics<'_, RootDatabase>, make: &SyntaxFactory, ) -> BlockExpr
Auto Trait Implementations§
impl<'db> Freeze for ElseBlock<'db>
impl<'db> !RefUnwindSafe for ElseBlock<'db>
impl<'db> !Send for ElseBlock<'db>
impl<'db> !Sync for ElseBlock<'db>
impl<'db> Unpin for ElseBlock<'db>
impl<'db> UnsafeUnpin for ElseBlock<'db>
impl<'db> !UnwindSafe for ElseBlock<'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