DirectProduct

Struct DirectProduct 

Source
pub struct DirectProduct<const M: usize, const N: usize, F> { /* private fields */ }

Trait Implementations§

Source§

impl<const M: usize, const N: usize, F> Add for DirectProduct<M, N, F>
where F: Add<Output = F> + Default + Copy,

Source§

type Output = DirectProduct<M, N, F>

The resulting type after applying the + operator.
Source§

fn add(self, other: DirectProduct<M, N, F>) -> Self::Output

Performs the + operation. Read more
Source§

impl<const M: usize, const N: usize, F: Clone> Clone for DirectProduct<M, N, F>

Source§

fn clone(&self) -> DirectProduct<M, N, 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<const M: usize, const N: usize, F> From<DirectProduct<M, N, F>> for DirectSum<M, N, F>
where F: Add<Output = F> + Default + Copy,

Source§

fn from(prod: DirectProduct<M, N, F>) -> DirectSum<M, N, F>

Converts to this type from the input type.
Source§

impl<const M: usize, const N: usize, F> From<DirectSum<M, N, F>> for DirectProduct<M, N, F>
where F: Add<Output = F> + Default + Copy,

Source§

fn from(sum: DirectSum<M, N, F>) -> DirectProduct<M, N, F>

Converts to this type from the input type.
Source§

impl<const M: usize, const N: usize, F> Mul<F> for DirectProduct<M, N, F>
where F: Mul<Output = F> + Default + Copy,

Source§

type Output = DirectProduct<M, N, F>

The resulting type after applying the * operator.
Source§

fn mul(self, scalar: F) -> Self::Output

Performs the * operation. Read more
Source§

impl<const M: usize, const N: usize, F> ProductType for DirectProduct<M, N, F>
where F: Copy,

Source§

type X = V<M, F>

Source§

type Y = V<N, F>

Source§

fn construct(v: Self::X, w: Self::Y) -> Self

Source§

fn pi_X(&self) -> Self::X

Source§

fn pi_Y(&self) -> Self::Y

Source§

fn f<Z>(z: &Z, f_X: impl Fn(&Z) -> Self::X, f_Y: impl Fn(&Z) -> Self::Y) -> Self

Source§

impl<const M: usize, const N: usize, F: Copy> Copy for DirectProduct<M, N, F>

Auto Trait Implementations§

§

impl<const M: usize, const N: usize, F> Freeze for DirectProduct<M, N, F>
where F: Freeze,

§

impl<const M: usize, const N: usize, F> RefUnwindSafe for DirectProduct<M, N, F>
where F: RefUnwindSafe,

§

impl<const M: usize, const N: usize, F> Send for DirectProduct<M, N, F>
where F: Send,

§

impl<const M: usize, const N: usize, F> Sync for DirectProduct<M, N, F>
where F: Sync,

§

impl<const M: usize, const N: usize, F> Unpin for DirectProduct<M, N, F>
where F: Unpin,

§

impl<const M: usize, const N: usize, F> UnwindSafe for DirectProduct<M, N, F>
where 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, 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.