Enum rustc_mir_build::build::ForGuard [−][src]
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
impl Copy for ForGuard[src]
impl Eq for ForGuard[src]
impl StructuralEq for ForGuard[src]
impl StructuralPartialEq for ForGuard[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,