pub struct LineDomain { /* private fields */ }Expand description
Domain comprising of the x-coordinates of points in a Coset.
For use with univariate polynomials.
Implementations§
Source§impl LineDomain
impl LineDomain
Sourcepub fn new(coset: Coset) -> Self
pub fn new(coset: Coset) -> Self
Returns a domain comprising of the x-coordinates of points in a coset.
§Panics
Panics if the coset items don’t have unique x-coordinates.
Sourcepub fn iter(
&self,
) -> Map<CosetIterator<CirclePoint<BaseField>>, fn(CirclePoint<BaseField>) -> BaseField> ⓘ
pub fn iter( &self, ) -> Map<CosetIterator<CirclePoint<BaseField>>, fn(CirclePoint<BaseField>) -> BaseField> ⓘ
Returns an iterator over elements in the domain.
Trait Implementations§
Source§impl Clone for LineDomain
impl Clone for LineDomain
Source§fn clone(&self) -> LineDomain
fn clone(&self) -> LineDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineDomain
Source§impl Debug for LineDomain
impl Debug for LineDomain
Source§impl From<CircleDomain> for LineDomain
impl From<CircleDomain> for LineDomain
Source§fn from(domain: CircleDomain) -> Self
fn from(domain: CircleDomain) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for LineDomain
impl IntoIterator for LineDomain
Source§fn into_iter(
self,
) -> Map<CosetIterator<CirclePoint<BaseField>>, fn(CirclePoint<BaseField>) -> BaseField> ⓘ
fn into_iter( self, ) -> Map<CosetIterator<CirclePoint<BaseField>>, fn(CirclePoint<BaseField>) -> BaseField> ⓘ
Returns an iterator over elements in the domain.
Source§type IntoIter = Map<CosetIterator<CirclePoint<M31>>, fn(CirclePoint<M31>) -> M31>
type IntoIter = Map<CosetIterator<CirclePoint<M31>>, fn(CirclePoint<M31>) -> M31>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for LineDomain
impl RefUnwindSafe for LineDomain
impl Send for LineDomain
impl Sync for LineDomain
impl Unpin for LineDomain
impl UnsafeUnpin for LineDomain
impl UnwindSafe for LineDomain
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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