Struct VecShape

Source
pub struct VecShape<T>(pub Vec<T>, pub Vec<u64>);
Expand description

VecShape(elements in row major order, shape of array) for any type T.

Tuple Fields§

§0: Vec<T>§1: Vec<u64>

Trait Implementations§

Source§

impl TryFrom<ArrayObject> for VecShape<Complex<f32>>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<Complex<f64>>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<Pair<f32>>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<Pair<f64>>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<String>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<f32>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<f64>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<i128>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<i16>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<i32>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<i64>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<i8>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<isize>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<u128>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<u16>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<u32>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<u64>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<u8>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ArrayObject> for VecShape<usize>

Source§

type Error = ArrayObjectError

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

fn try_from(val: ArrayObject) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<&str>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<&str>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<Complex<f32>>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<Complex<f32>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<Complex<f64>>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<Complex<f64>>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<String>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<String>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<f32>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<f32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<f64>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<f64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<i128>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<i128>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<i16>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<i16>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<i32>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<i32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<i64>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<i64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<i8>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<i8>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<isize>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<isize>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<u128>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<u128>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<u16>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<u16>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<u32>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<u32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<u64>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<u64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<u8>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<u8>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<VecShape<usize>> for ArrayObject

Source§

type Error = ArrayObjectError

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

fn try_from(VecShape: VecShape<usize>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<T> Freeze for VecShape<T>

§

impl<T> RefUnwindSafe for VecShape<T>
where T: RefUnwindSafe,

§

impl<T> Send for VecShape<T>
where T: Send,

§

impl<T> Sync for VecShape<T>
where T: Sync,

§

impl<T> Unpin for VecShape<T>
where T: Unpin,

§

impl<T> UnwindSafe for VecShape<T>
where T: 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> 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.