Enum rustc_hir_typeck::pat::AdjustMode
source · enum AdjustMode {
Peel,
Reset,
Pass,
}
Expand description
Mode for adjusting the expected type and binding mode.
Variants§
Peel
Peel off all immediate reference types.
Reset
Reset binding mode to the initial mode.
Pass
Pass on the input binding mode and expected type.
Auto Trait Implementations§
impl RefUnwindSafe for AdjustMode
impl Send for AdjustMode
impl Sync for AdjustMode
impl Unpin for AdjustMode
impl UnwindSafe for AdjustMode
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:
Peel
: 0 bytesReset
: 0 bytesPass
: 0 bytes