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
Infinity
PositiveY
NegativeY
Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more