pub enum ValueClass {
Input(u16),
InputDeriv(u16),
Zero,
SmallConst(i64),
BigConst,
Unknown,
}Expand description
What a value looks like, again without keeping the raw bits when they’d just be an address. Small constants carry real signal so we keep those.
Variants§
Input(u16)
straight copy of the value we seeded into input k
InputDeriv(u16)
derived from input k (add/sub/mask etc, we saw it drift)
Zero
SmallConst(i64)
a small literal, kept exactly because e.g. 1 vs -1 matters
BigConst
big literal, almost always an address, so we drop the bits
Unknown
Trait Implementations§
Source§impl Clone for ValueClass
impl Clone for ValueClass
Source§fn clone(&self) -> ValueClass
fn clone(&self) -> ValueClass
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 ValueClass
Source§impl Debug for ValueClass
impl Debug for ValueClass
Source§impl<'de> Deserialize<'de> for ValueClass
impl<'de> Deserialize<'de> for ValueClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValueClass
Source§impl PartialEq for ValueClass
impl PartialEq for ValueClass
Source§impl Serialize for ValueClass
impl Serialize for ValueClass
impl StructuralPartialEq for ValueClass
Auto Trait Implementations§
impl Freeze for ValueClass
impl RefUnwindSafe for ValueClass
impl Send for ValueClass
impl Sync for ValueClass
impl Unpin for ValueClass
impl UnsafeUnpin for ValueClass
impl UnwindSafe for ValueClass
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