conspire::math

Trait Convert

Source
pub trait Convert<T> {
    // Required method
    fn convert(&self) -> T;
}
Expand description

A value-to-value conversion that does not consume the input value.

This is as opposed to Into, which consumes the input value.

Required Methods§

Source

fn convert(&self) -> T

Converts this type into the (usually inferred) input type.

Implementors§

Source§

impl<const D: usize, const I: usize, const J: usize> Convert<TensorRank1<D, J>> for TensorRank1<D, I>

Source§

impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize> Convert<TensorRank2<D, K, L>> for TensorRank2<D, I, J>

Source§

impl<const D: usize, const I: usize, const J: usize, const W: usize> Convert<TensorRank1List<D, J, W>> for TensorRank1List<D, I, W>