Enum snarkvm_utilities::serialize::SWFlags
source · pub enum SWFlags {
Infinity,
PositiveY,
NegativeY,
}
Expand description
Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.
Variants§
Implementations§
source§impl SWFlags
impl SWFlags
pub fn infinity() -> Self
pub fn from_y_sign(is_positive: bool) -> Self
pub fn is_infinity(&self) -> bool
pub fn is_positive(&self) -> Option<bool>
Trait Implementations§
source§impl PartialEq for SWFlags
impl PartialEq for SWFlags
impl Copy for SWFlags
impl Eq for SWFlags
impl StructuralEq for SWFlags
impl StructuralPartialEq for SWFlags
Auto Trait Implementations§
impl RefUnwindSafe for SWFlags
impl Send for SWFlags
impl Sync for SWFlags
impl Unpin for SWFlags
impl UnwindSafe for SWFlags
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.