Enum rustc_mir_build::build::ForGuard
source · enum ForGuard {
RefWithinGuard,
OutsideGuard,
}
Expand description
ForGuard
indicates whether we are talking about:
- The variable for use outside of guard expressions, or
- The temp that holds reference to (1.), which is actually what the guard expressions see.
Variants§
Trait Implementations§
source§impl PartialEq<ForGuard> for ForGuard
impl PartialEq<ForGuard> for ForGuard
impl Copy for ForGuard
impl Eq for ForGuard
impl StructuralEq for ForGuard
impl StructuralPartialEq for ForGuard
Auto Trait Implementations§
impl RefUnwindSafe for ForGuard
impl Send for ForGuard
impl Sync for ForGuard
impl Unpin for ForGuard
impl UnwindSafe for ForGuard
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
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:
RefWithinGuard
: 0 bytesOutsideGuard
: 0 bytes