array_object

Struct ArrayObject

source
pub struct ArrayObject { /* private fields */ }
Expand description

The main array storage with type abstraction.

Implementations§

source§

impl ArrayObject

source

pub fn bits(&self) -> Option<usize>

Returens the minimal size, in bits, required to restore the array.

source

pub fn len(&self) -> usize

Returns the total number of elements in the array.

source

pub fn shape(&self) -> Vec<usize>

Returns the shape of the array.

source

pub fn datasize(&self) -> usize

Returns the uncompressed datasize.

source

pub fn datatype(&self) -> DataType

Returns the data type.

source

pub fn dimension(&self) -> usize

Returns the dimension of the array.

Trait Implementations§

source§

impl Clone for ArrayObject

source§

fn clone(&self) -> ArrayObject

Returns a copy 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 Debug for ArrayObject

source§

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

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

impl From<&str> for ArrayObject

source§

fn from(val: &str) -> Self

Converts to this type from the input type.
source§

impl From<Complex<f32>> for ArrayObject

source§

fn from(val: Complex<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Complex<f64>> for ArrayObject

source§

fn from(val: Complex<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Pair<f32>> for ArrayObject

source§

fn from(Pair: Pair<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Pair<f64>> for ArrayObject

source§

fn from(Pair: Pair<f64>) -> Self

Converts to this type from the input type.
source§

impl From<String> for ArrayObject

source§

fn from(val: String) -> Self

Converts to this type from the input type.
source§

impl From<Vec<&str>> for ArrayObject

source§

fn from(val: Vec<&str>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Complex<f32>>> for ArrayObject

source§

fn from(val: Vec<Complex<f32>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Complex<f64>>> for ArrayObject

source§

fn from(val: Vec<Complex<f64>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Pair<f32>>> for ArrayObject

source§

fn from(val: Vec<Pair<f32>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Pair<f64>>> for ArrayObject

source§

fn from(val: Vec<Pair<f64>>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<String>> for ArrayObject

source§

fn from(val: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f32>> for ArrayObject

source§

fn from(val: Vec<f32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<f64>> for ArrayObject

source§

fn from(val: Vec<f64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i128>> for ArrayObject

source§

fn from(val: Vec<i128>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i16>> for ArrayObject

source§

fn from(val: Vec<i16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i32>> for ArrayObject

source§

fn from(val: Vec<i32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i64>> for ArrayObject

source§

fn from(val: Vec<i64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<i8>> for ArrayObject

source§

fn from(val: Vec<i8>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u128>> for ArrayObject

source§

fn from(val: Vec<u128>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u16>> for ArrayObject

source§

fn from(val: Vec<u16>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u32>> for ArrayObject

source§

fn from(val: Vec<u32>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u64>> for ArrayObject

source§

fn from(val: Vec<u64>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<u8>> for ArrayObject

source§

fn from(val: Vec<u8>) -> Self

Converts to this type from the input type.
source§

impl From<f32> for ArrayObject

source§

fn from(val: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for ArrayObject

source§

fn from(val: f64) -> Self

Converts to this type from the input type.
source§

impl From<i128> for ArrayObject

source§

fn from(val: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for ArrayObject

source§

fn from(val: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for ArrayObject

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for ArrayObject

source§

fn from(val: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for ArrayObject

source§

fn from(val: i8) -> Self

Converts to this type from the input type.
source§

impl From<u128> for ArrayObject

source§

fn from(val: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for ArrayObject

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for ArrayObject

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for ArrayObject

source§

fn from(val: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for ArrayObject

source§

fn from(val: u8) -> Self

Converts to this type from the input type.
source§

impl Pack for ArrayObject

source§

fn pack(self) -> Vec<u8>

Compress the data and create a binary object.
source§

fn pack_as_it_is(self) -> Vec<u8>

Create a binary object without compression.
source§

impl PartialEq for ArrayObject

source§

fn eq(&self, other: &ArrayObject) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<ArrayObject> for 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 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 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 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 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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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 Vec<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<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<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 VecVecShape<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 VecVecShape<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 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 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 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 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 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 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 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 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 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 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 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 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<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<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<VecVec<f32>> for ArrayObject

source§

type Error = ArrayObjectError

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

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

Performs the conversion.
source§

impl TryFrom<VecVec<f64>> for ArrayObject

source§

type Error = ArrayObjectError

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

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

Performs the conversion.
source§

impl TryFrom<VecVecShape<f32>> for ArrayObject

source§

type Error = ArrayObjectError

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

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

Performs the conversion.
source§

impl TryFrom<VecVecShape<f64>> for ArrayObject

source§

type Error = ArrayObjectError

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

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

Performs the conversion.
source§

impl Unpack for ArrayObject

source§

fn unpack(data: Vec<u8>) -> Result<Self, ArrayObjectError>

Restore ArrayObject from a binary data.
source§

impl StructuralPartialEq for ArrayObject

Auto Trait Implementations§

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.