pub enum FpSlice<'a> {
_2(FqSlice<'a, Fp<P2>>),
_3(FqSlice<'a, Fp<P3>>),
_5(FqSlice<'a, Fp<P5>>),
_7(FqSlice<'a, Fp<P7>>),
Big(FqSlice<'a, Fp<ValidPrime>>),
}Variants§
_2(FqSlice<'a, Fp<P2>>)
_3(FqSlice<'a, Fp<P3>>)
_5(FqSlice<'a, Fp<P5>>)
_7(FqSlice<'a, Fp<P7>>)
Big(FqSlice<'a, Fp<ValidPrime>>)
Implementations§
Source§impl<'a> FpSlice<'a>
impl<'a> FpSlice<'a>
pub(crate) fn new<P: Prime>( p: P, limbs: &'a [u64], start: usize, end: usize, ) -> Self
pub fn prime(&self) -> ValidPrime
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn entry(&self, index: usize) -> u32
pub fn iter(self) -> FpVectorIterator<'a> ⓘ
pub fn iter_nonzero(self) -> FpVectorNonZeroIterator<'a> ⓘ
pub fn first_nonzero(&self) -> Option<(usize, u32)>
pub fn is_zero(&self) -> bool
pub fn restrict(self, start: usize, end: usize) -> FpSlice<'a>
pub fn to_owned(self) -> FpVector
pub(crate) fn limbs(&self) -> &[u64]
Trait Implementations§
Source§impl<'a, 'b> From<&'a FpSliceMut<'b>> for FpSlice<'a>
impl<'a, 'b> From<&'a FpSliceMut<'b>> for FpSlice<'a>
Source§fn from(slice: &'a FpSliceMut<'b>) -> Self
fn from(slice: &'a FpSliceMut<'b>) -> Self
Converts to this type from the input type.
impl<'a> Copy for FpSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for FpSlice<'a>
impl<'a> RefUnwindSafe for FpSlice<'a>
impl<'a> Send for FpSlice<'a>
impl<'a> Sync for FpSlice<'a>
impl<'a> Unpin for FpSlice<'a>
impl<'a> UnwindSafe for FpSlice<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more