pub enum SWFlags {
YIsPositive,
PointAtInfinity,
YIsNegative,
}
Expand description
Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.
Variants§
YIsPositive
Represents a point with positive y-coordinate by setting the MSB to 1.
PointAtInfinity
Represents the point at infinity by setting the setting the last-but-one bit to 1.
YIsNegative
Represents a point with negative y-coordinate by setting all bits to 0.
Implementations§
Trait Implementations§
source§impl PartialEq<SWFlags> for SWFlags
impl PartialEq<SWFlags> 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§
§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