Enum rustc_mir_transform::const_prop::ConstPropMode [−][src]
enum ConstPropMode {
FullConstProp,
OnlyInsideOwnBlock,
OnlyPropagateInto,
NoPropagation,
}
Expand description
The mode that ConstProp
is allowed to run in for a given Local
.
Variants
The Local
can be propagated into and reads of this Local
can also be propagated.
The Local
can only be propagated into and from its own block.
The Local
can be propagated into but reads cannot be propagated.
The Local
cannot be part of propagation at all. Any statement
referencing it either for reading or writing will not get propagated.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConstPropMode
impl Send for ConstPropMode
impl Sync for ConstPropMode
impl Unpin for ConstPropMode
impl UnwindSafe for ConstPropMode
Blanket Implementations
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:
FullConstProp
: 0 bytesOnlyInsideOwnBlock
: 0 bytesOnlyPropagateInto
: 0 bytesNoPropagation
: 0 bytes