Struct MapField

Source
pub struct MapField<I, F> { /* private fields */ }

Trait Implementations§

Source§

impl<Rhs, I, S, F> Add<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Add<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = AddField<MapField<I, F>, Rhs>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Rhs) -> Self::Output

Performs the + operation. Read more
Source§

impl<Rhs, I, S, F> BitAnd<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: BitAnd<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = BitAndField<MapField<I, F>, Rhs>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rhs) -> Self::Output

Performs the & operation. Read more
Source§

impl<Rhs, I, S, F> BitOr<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: BitOr<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = BitOrField<MapField<I, F>, Rhs>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rhs) -> Self::Output

Performs the | operation. Read more
Source§

impl<Rhs, I, S, F> BitXor<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: BitXor<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = BitXorField<MapField<I, F>, Rhs>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rhs) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<I: Clone, F: Clone> Clone for MapField<I, F>

Source§

fn clone(&self) -> MapField<I, F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I: Debug, F: Debug> Debug for MapField<I, F>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Rhs, I, S, F> Div<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Div<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = DivField<MapField<I, F>, Rhs>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Rhs) -> Self::Output

Performs the / operation. Read more
Source§

impl<Rhs, I, S, F> Mul<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Mul<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = MulField<MapField<I, F>, Rhs>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Rhs) -> Self::Output

Performs the * operation. Read more
Source§

impl<I, S, F> Neg for MapField<I, F>
where <MapField<I, F> as ScalarField>::Scalar: Neg, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = NegField<MapField<I, F>>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, S, F> Not for MapField<I, F>
where <MapField<I, F> as ScalarField>::Scalar: Not, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = NotField<MapField<I, F>>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<Rhs, I, S, F> Rem<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Rem<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = RemField<MapField<I, F>, Rhs>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Rhs) -> Self::Output

Performs the % operation. Read more
Source§

impl<I, S, F> ScalarField for MapField<I, F>
where I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Point = <I as ScalarField>::Point

Source§

type Scalar = S

Source§

fn value(&self, point: Self::Point) -> Self::Scalar

Source§

fn map<S, F>(self, func: F) -> MapField<Self, F>
where Self: Sized, F: Fn(Self::Scalar) -> S,

Source§

fn transform<P, F>(self, func: F) -> TransformField<Self, P, F>
where Self: Sized, F: Fn(P) -> Self::Point,

Source§

impl<Rhs, I, S, F> Shl<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Shl<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = ShlField<MapField<I, F>, Rhs>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: Rhs) -> Self::Output

Performs the << operation. Read more
Source§

impl<Rhs, I, S, F> Shr<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Shr<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = ShrField<MapField<I, F>, Rhs>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: Rhs) -> Self::Output

Performs the >> operation. Read more
Source§

impl<Rhs, I, S, F> Sub<Rhs> for MapField<I, F>
where Rhs: ScalarField<Point = <MapField<I, F> as ScalarField>::Point>, <MapField<I, F> as ScalarField>::Scalar: Sub<Rhs::Scalar>, I: ScalarField, F: Fn(I::Scalar) -> S,

Source§

type Output = SubField<MapField<I, F>, Rhs>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Rhs) -> Self::Output

Performs the - operation. Read more
Source§

impl<I: Copy, F: Copy> Copy for MapField<I, F>

Auto Trait Implementations§

§

impl<I, F> Freeze for MapField<I, F>
where I: Freeze, F: Freeze,

§

impl<I, F> RefUnwindSafe for MapField<I, F>

§

impl<I, F> Send for MapField<I, F>
where I: Send, F: Send,

§

impl<I, F> Sync for MapField<I, F>
where I: Sync, F: Sync,

§

impl<I, F> Unpin for MapField<I, F>
where I: Unpin, F: Unpin,

§

impl<I, F> UnwindSafe for MapField<I, F>
where I: UnwindSafe, F: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.