pub enum ConstantState {
NonConstant,
Serialized,
Foldable,
}Expand description
How an analyzed value becomes constant for lowering.
Variants§
NonConstant
Serialized
Bytes are already serialized in the artifact by CONST or CONST_SHAPE.
Foldable
A pure, bounded constant subgraph can be evaluated once by the provider.
Trait Implementations§
Source§impl Clone for ConstantState
impl Clone for ConstantState
Source§fn clone(&self) -> ConstantState
fn clone(&self) -> ConstantState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstantState
Source§impl Debug for ConstantState
impl Debug for ConstantState
impl Eq for ConstantState
Source§impl PartialEq for ConstantState
impl PartialEq for ConstantState
Source§fn eq(&self, other: &ConstantState) -> bool
fn eq(&self, other: &ConstantState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstantState
Auto Trait Implementations§
impl Freeze for ConstantState
impl RefUnwindSafe for ConstantState
impl Send for ConstantState
impl Sync for ConstantState
impl Unpin for ConstantState
impl UnsafeUnpin for ConstantState
impl UnwindSafe for ConstantState
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