pub(crate) struct Temporary<'db> {
pub lv: SymVariable<'db>,
pub ty: SymTy<'db>,
pub initializer: Option<SymExpr<'db>>,
}Expand description
Translating an expression can result in the creation of
anonymous local temporaries that are injected into the
surrounding scope. These are returned alongside the result
and will eventually be translated into let-in expressions
when we reach the surrounding statement, block, or other
terminating context.
Fields§
§lv: SymVariable<'db>§ty: SymTy<'db>§initializer: Option<SymExpr<'db>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'db> Freeze for Temporary<'db>
impl<'db> !RefUnwindSafe for Temporary<'db>
impl<'db> Send for Temporary<'db>
impl<'db> Sync for Temporary<'db>
impl<'db> Unpin for Temporary<'db>
impl<'db> UnsafeUnpin for Temporary<'db>
impl<'db> !UnwindSafe for Temporary<'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,
§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