pub struct CloneRingEl<R: RingStore>(pub R);Expand description
A wrapper around a RingStore that is callable with signature (&El<R>) -> El<R>,
and will clone the given ring element when called.
In order to be compatible with crate::iters::multi_cartesian_product(), it
additionally is also callable with signature (usize, &El<R>) -> El<R>. In this
case, the first parameter is ignored.
Tuple Fields§
§0: RTrait Implementations§
Source§impl<R: Clone + RingStore> Clone for CloneRingEl<R>
impl<R: Clone + RingStore> Clone for CloneRingEl<R>
Source§fn clone(&self) -> CloneRingEl<R>
fn clone(&self) -> CloneRingEl<R>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, R: RingStore> Fn(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> Fn(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
Source§impl<'a, R: RingStore> Fn(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> Fn(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
Source§impl<'a, R: RingStore> FnMut(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> FnMut(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
Source§impl<'a, R: RingStore> FnMut(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> FnMut(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
Source§impl<'a, R: RingStore> FnOnce(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> FnOnce(&'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
Source§impl<'a, R: RingStore> FnOnce(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<'a, R: RingStore> FnOnce(usize, &'a <<R as RingStore>::Type as RingBase>::Element) for CloneRingEl<R>
impl<R: Copy + RingStore> Copy for CloneRingEl<R>
Auto Trait Implementations§
impl<R> Freeze for CloneRingEl<R>where
R: Freeze,
impl<R> RefUnwindSafe for CloneRingEl<R>where
R: RefUnwindSafe,
impl<R> Send for CloneRingEl<R>where
R: Send,
impl<R> Sync for CloneRingEl<R>where
R: Sync,
impl<R> Unpin for CloneRingEl<R>where
R: Unpin,
impl<R> UnwindSafe for CloneRingEl<R>where
R: UnwindSafe,
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