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
impl 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
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