pub enum ConstPropMode {
FullConstProp,
OnlyInsideOwnBlock,
OnlyPropagateInto,
NoPropagation,
}
Expand description
The mode that ConstProp
is allowed to run in for a given Local
.
Variants§
FullConstProp
The Local
can be propagated into and reads of this Local
can also be propagated.
OnlyInsideOwnBlock
The Local
can only be propagated into and from its own block.
OnlyPropagateInto
The Local
can be propagated into but reads cannot be propagated.
NoPropagation
The Local
cannot be part of propagation at all. Any statement
referencing it either for reading or writing will not get propagated.
Trait Implementations§
source§impl Clone for ConstPropMode
impl Clone for ConstPropMode
source§fn clone(&self) -> ConstPropMode
fn clone(&self) -> ConstPropMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstPropMode
impl Debug for ConstPropMode
source§impl PartialEq<ConstPropMode> for ConstPropMode
impl PartialEq<ConstPropMode> for ConstPropMode
source§fn eq(&self, other: &ConstPropMode) -> bool
fn eq(&self, other: &ConstPropMode) -> bool
impl Copy for ConstPropMode
impl StructuralPartialEq for ConstPropMode
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§
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