#[repr(transparent)]pub struct Scalar([u8; 32]);
Tuple Fields§
§0: [u8; 32]
Implementations§
source§impl Scalar
impl Scalar
pub fn from_bytes_checked(bytes: [u8; 32]) -> Result<Self, Unspecified>
pub fn from_sha512_digest_reduced(digest: Digest) -> Self
Trait Implementations§
source§impl From<MaskedScalar> for Scalar
impl From<MaskedScalar> for Scalar
source§fn from(MaskedScalar: MaskedScalar) -> Self
fn from(MaskedScalar: MaskedScalar) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
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