Enum rustc_mir_build::build::NeedsTemporary
source · enum NeedsTemporary {
No,
Maybe,
}
Variants
No
Use this variant when whatever you are converting with as_operand
is the last thing you are converting. This means that if we introduced
an intermediate temporary, we’d only read it immediately after, so we can
also avoid it.
Maybe
For all cases where you aren’t sure or that are too expensive to compute for now. It is always safe to fall back to this.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NeedsTemporary
impl Send for NeedsTemporary
impl Sync for NeedsTemporary
impl Unpin for NeedsTemporary
impl UnwindSafe for NeedsTemporary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
No
: 0 bytesMaybe
: 0 bytes