Enum rustc_mir_transform::generator::Operation
source · enum Operation {
Resume,
Drop,
}
Expand description
An operation that can be performed on a generator.
Variants§
Implementations§
source§impl 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§
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