Struct TransformField

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

Trait Implementations§

Source§

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

Source§

type Output = AddField<TransformField<I, P, 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, P, F> BitAnd<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: BitAnd<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = BitAndField<TransformField<I, P, 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, P, F> BitOr<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: BitOr<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = BitOrField<TransformField<I, P, 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, P, F> BitXor<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: BitXor<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = BitXorField<TransformField<I, P, 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, P: Clone, F: Clone> Clone for TransformField<I, P, F>

Source§

fn clone(&self) -> TransformField<I, P, 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, P: Debug, F: Debug> Debug for TransformField<I, P, F>

Source§

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

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

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

Source§

type Output = DivField<TransformField<I, P, 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, P, F> Mul<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: Mul<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = MulField<TransformField<I, P, 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, P, F> Neg for TransformField<I, P, F>
where <TransformField<I, P, F> as ScalarField>::Scalar: Neg, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = NegField<TransformField<I, P, F>>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<I, P, F> Not for TransformField<I, P, F>
where <TransformField<I, P, F> as ScalarField>::Scalar: Not, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = NotField<TransformField<I, P, F>>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

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

Source§

type Output = RemField<TransformField<I, P, 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, P, F> ScalarField for TransformField<I, P, F>
where I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Point = P

Source§

type Scalar = <I as ScalarField>::Scalar

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, P, F> Shl<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: Shl<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = ShlField<TransformField<I, P, 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, P, F> Shr<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: Shr<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = ShrField<TransformField<I, P, 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, P, F> Sub<Rhs> for TransformField<I, P, F>
where Rhs: ScalarField<Point = <TransformField<I, P, F> as ScalarField>::Point>, <TransformField<I, P, F> as ScalarField>::Scalar: Sub<Rhs::Scalar>, I: ScalarField, F: Fn(P) -> I::Point,

Source§

type Output = SubField<TransformField<I, P, 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, P: Copy, F: Copy> Copy for TransformField<I, P, F>

Auto Trait Implementations§

§

impl<I, P, F> Freeze for TransformField<I, P, F>
where I: Freeze, F: Freeze,

§

impl<I, P, F> RefUnwindSafe for TransformField<I, P, F>

§

impl<I, P, F> Send for TransformField<I, P, F>
where I: Send, F: Send, P: Send,

§

impl<I, P, F> Sync for TransformField<I, P, F>
where I: Sync, F: Sync, P: Sync,

§

impl<I, P, F> Unpin for TransformField<I, P, F>
where I: Unpin, F: Unpin, P: Unpin,

§

impl<I, P, F> UnwindSafe for TransformField<I, P, F>
where I: UnwindSafe, F: UnwindSafe, P: 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.