pub enum ConstPropMode {
FullConstProp,
OnlyInsideOwnBlock,
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.
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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 bytesNoPropagation
: 0 bytes