Struct rsa_cortex_m4::numbers::Array [−][src]
Array of Unsigned
.
Implementations
impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>
[src]
pub fn wrapping_sub_assign<T: Number>(&mut self, subtrahend: &T)
[src]
impl<const D: usize> Array<D, E, 2_usize>
[src]
impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>
[src]
pub fn from_slice(slice: &[Digit]) -> Self
[src]
pub fn try_from_slice(slice: &[Digit]) -> Result<Self>
[src]
pub fn leading_digit(&self) -> Option<Digit>
[src]
pub fn significant_digits(&self) -> &[Digit]
[src]
pub fn to_unsigned<const M: usize, const N: usize>(
&self
) -> Result<Unsigned<M, N>>
[src]
&self
) -> Result<Unsigned<M, N>>
impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>
[src]
pub fn to_bytes(&self) -> BigEndian<D, E, L>
[src]
Return buffer that dereferences as big-endian bytes.
Trait Implementations
impl<const D: usize, const E: usize, const L: usize> Clone for Array<D, E, L>
[src]
fn clone(&self) -> Array<D, E, L>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<const D: usize, const E: usize, const L: usize> Debug for Array<D, E, L>
[src]
fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]
TODO: Do we want debug output to be big-endian bytes (as currently implemented)? Or stick with internal representation?
impl<const D: usize, const E: usize, const L: usize> Default for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> Deref for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> DerefMut for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> Eq for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> Number for Array<D, E, L>
[src]
const BITS: usize
[src]
const DIGITS: usize
[src]
fn significant_digits(&self) -> &[Digit]
[src]
fn leading_digit(&self) -> Option<Digit>
[src]
fn to_unsigned<const D: usize, const E: usize>(&self) -> Result<Unsigned<D, E>>
[src]
fn zero() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn is_one(&self) -> bool
[src]
fn is_digit(&self) -> bool
[src]
fn is_odd(&self) -> bool
[src]
fn cmp(&self, other: &impl Number) -> Ordering
[src]
fn eq(&self, other: &impl Number) -> bool
[src]
fn deref(&self) -> &[Digit]
[src]
fn deref_mut(&mut self) -> &mut Self::Target
[src]
impl<const D: usize, const E: usize, const L: usize> NumberMut for Array<D, E, L>
[src]
fn from_slice(slice: &[Digit]) -> Self
[src]
fn try_from_slice(slice: &[Digit]) -> Result<Self>
[src]
fn from_bytes(bytes: &[u8]) -> Self
[src]
fn set_zero(&mut self)
[src]
fn one() -> Self
[src]
fn swap_order(self) -> Self
[src]
fn random(rng: impl CryptoRng + RngCore) -> Self
[src]
impl<T, const D: usize, const E: usize, const L: usize> PartialEq<T> for Array<D, E, L> where
T: Number,
[src]
T: Number,
impl<T, const D: usize, const E: usize, const L: usize> PartialOrd<T> for Array<D, E, L> where
T: Number,
[src]
T: Number,
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, const D: usize, const E: usize, const F: usize, const G: usize, const L: usize> Rem<&'a Unsigned<F, G>> for &'a Array<D, E, L>
[src]
type Output = Unsigned<F, G>
The resulting type after applying the %
operator.
fn rem(self, modulus: &'a Unsigned<F, G>) -> Self::Output
[src]
impl<const D: usize, const E: usize, const L: usize> Shl<usize> for &Array<D, E, L>
[src]
type Output = Array<D, E, L>
The resulting type after applying the <<
operator.
fn shl(self, bits: usize) -> Self::Output
[src]
impl<const D: usize, const E: usize, const L: usize> ShlAssign<usize> for Array<D, E, L>
[src]
fn shl_assign(&mut self, bits: usize)
[src]
impl<const D: usize, const E: usize, const L: usize> Shr<usize> for &Array<D, E, L>
[src]
type Output = Array<D, E, L>
The resulting type after applying the >>
operator.
fn shr(self, bits: usize) -> Self::Output
[src]
impl<const D: usize, const E: usize, const L: usize> ShrAssign<usize> for Array<D, E, L>
[src]
fn shr_assign(&mut self, bits: usize)
[src]
impl<const D: usize, const E: usize, const L: usize> StructuralEq for Array<D, E, L>
[src]
Auto Trait Implementations
impl<const D: usize, const E: usize, const L: usize> Send for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> Sync for Array<D, E, L>
[src]
impl<const D: usize, const E: usize, const L: usize> Unpin for Array<D, E, L>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Bits for T where
T: Number,
[src]
T: Number,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,