pub struct Modulus(/* private fields */);
Implementations§
Source§impl Modulus
impl Modulus
pub fn from_le_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, ParseBigIntError>
pub fn from_be_bytes(bytes: impl AsRef<[u8]>) -> Result<Self, ParseBigIntError>
pub fn bit_len(&self) -> usize
pub fn to_le_bytes(&self) -> Vec<u8> ⓘ
pub fn to_be_bytes(&self) -> Vec<u8> ⓘ
pub fn as_biguint(&self) -> &BigUint
Trait Implementations§
Source§impl ParseInt for Modulus
impl ParseInt for Modulus
type FromStrRadixErr = ParseBigIntError
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str(src: &str) -> Result<Self, ParseIntError>
impl Eq for Modulus
impl StructuralPartialEq for Modulus
Auto Trait Implementations§
impl Freeze for Modulus
impl RefUnwindSafe for Modulus
impl Send for Modulus
impl Sync for Modulus
impl Unpin for Modulus
impl UnwindSafe for Modulus
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConsoleSend<T> for U
impl<T, U> ConsoleSend<T> for U
§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type