Enum rustc_mir_transform::generator::Operation
source · enum Operation {
Resume,
Drop,
}
Expand description
An operation that can be performed on a generator.
Variants
Resume
Drop
Implementations
sourceimpl Operation
impl Operation
fn target_block(self, point: &SuspensionPoint<'_>) -> Option<BasicBlock>
Trait Implementations
impl Copy for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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
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:
Resume
: 0 bytesDrop
: 0 bytes