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
sourceimpl Clone for ConstPropMode
impl Clone for ConstPropMode
sourcefn clone(&self) -> ConstPropMode
fn clone(&self) -> ConstPropMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConstPropMode
impl Debug for ConstPropMode
sourceimpl PartialEq<ConstPropMode> for ConstPropMode
impl PartialEq<ConstPropMode> for ConstPropMode
sourcefn 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
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:
FullConstProp
: 0 bytesOnlyInsideOwnBlock
: 0 bytesOnlyPropagateInto
: 0 bytesNoPropagation
: 0 bytes