pub enum FpSliceMut<'a> {
_2(FqSliceMut<'a, Fp<P2>>),
_3(FqSliceMut<'a, Fp<P3>>),
_5(FqSliceMut<'a, Fp<P5>>),
_7(FqSliceMut<'a, Fp<P7>>),
Big(FqSliceMut<'a, Fp<ValidPrime>>),
}Variants§
_2(FqSliceMut<'a, Fp<P2>>)
_3(FqSliceMut<'a, Fp<P3>>)
_5(FqSliceMut<'a, Fp<P5>>)
_7(FqSliceMut<'a, Fp<P7>>)
Big(FqSliceMut<'a, Fp<ValidPrime>>)
Implementations§
Source§impl<'a> FpSliceMut<'a>
impl<'a> FpSliceMut<'a>
pub(crate) fn new<P: Prime>( p: P, limbs: &'a mut [u64], start: usize, end: usize, ) -> Self
pub fn prime(&self) -> ValidPrime
pub fn scale(&mut self, c: u32)
pub fn set_to_zero(&mut self)
pub fn add(&mut self, other: FpSlice<'_>, c: u32)
pub fn add_offset(&mut self, other: FpSlice<'_>, c: u32, offset: usize)
pub fn assign(&mut self, other: FpSlice<'_>)
pub fn shl_assign(&mut self, shift: usize)
pub fn set_entry(&mut self, index: usize, value: u32)
pub fn as_slice(&self) -> FpSlice<'_>
pub fn slice_mut(&mut self, start: usize, end: usize) -> FpSliceMut<'_>
pub fn add_basis_element(&mut self, index: usize, value: u32)
pub fn copy(&mut self) -> FpSliceMut<'_>
pub fn add_masked(&mut self, other: FpSlice<'_>, c: u32, mask: &[usize])
pub fn add_unmasked(&mut self, other: FpSlice<'_>, c: u32, mask: &[usize])
pub fn add_tensor( &mut self, offset: usize, coeff: u32, left: FpSlice<'_>, right: FpSlice<'_>, )
pub(crate) fn limbs(&self) -> &[u64]
pub(crate) fn limbs_mut(&mut self) -> &mut [u64]
Trait Implementations§
Source§impl<'a> Debug for FpSliceMut<'a>
impl<'a> Debug for FpSliceMut<'a>
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.
Source§impl<'a, 'b> From<&'a mut FpSliceMut<'b>> for FpSliceMut<'a>
impl<'a, 'b> From<&'a mut FpSliceMut<'b>> for FpSliceMut<'a>
Source§fn from(slice: &'a mut FpSliceMut<'b>) -> Self
fn from(slice: &'a mut FpSliceMut<'b>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for FpSliceMut<'a>
impl<'a> RefUnwindSafe for FpSliceMut<'a>
impl<'a> Send for FpSliceMut<'a>
impl<'a> Sync for FpSliceMut<'a>
impl<'a> Unpin for FpSliceMut<'a>
impl<'a> !UnwindSafe for FpSliceMut<'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> 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