pub enum Point<'a> {
Uncompressed {
x: &'a [u8],
y: &'a [u8],
},
Compressed {
x: &'a [u8],
odd: bool,
},
}Expand description
A SEC1 point as written (SEC1 v2 §2.3.3).
Variants§
Uncompressed
0x04 || X || Y, with both coordinates of one width.
Compressed
0x02 || X or 0x03 || X, naming the parity of y.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Point<'a>
impl<'a> RefUnwindSafe for Point<'a>
impl<'a> Send for Point<'a>
impl<'a> Sync for Point<'a>
impl<'a> Unpin for Point<'a>
impl<'a> UnsafeUnpin for Point<'a>
impl<'a> UnwindSafe for Point<'a>
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