ArrayStorageSlx

Struct ArrayStorageSlx 

Source
#[repr(transparent)]
pub struct ArrayStorageSlx<T, const R: usize, const C: usize>(pub [[T; R]; C]);
Expand description

Silx array storage

Tuple Fields§

§0: [[T; R]; C]

Trait Implementations§

Source§

impl<T, const R: usize, const C: usize> Archive for ArrayStorageSlx<T, R, C>
where T: Archive,

Source§

type Archived = ArrayStorageSlx<<T as Archive>::Archived, R, C>

The archived representation of this type. Read more
Source§

type Resolver = <[[T; R]; C] as Archive>::Resolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, pos: usize, resolver: Self::Resolver, out: *mut Self::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl<T: Clone, const R: usize, const C: usize> Clone for ArrayStorageSlx<T, R, C>

Source§

fn clone(&self) -> ArrayStorageSlx<T, R, C>

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<T: Debug, const R: usize, const C: usize> Debug for ArrayStorageSlx<T, R, C>

Source§

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

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

impl<'a, T, const R: usize, const C: usize> DerefArch<'a, ArrayStorageSlx<T, R, C>> for DerefMatrixSlx<T, ConstSlx<R>, ConstSlx<C>, ArchRefArrayStorageSlx<'a, T, R, C>>
where T: 'a + Archive<Archived = T> + HashedTypeDef,

Source§

fn deref_arch( arch: &'a ArchData<ArrayStorageSlx<T, R, C>>, ) -> Result<Self, String>

Convert slx archive to dereferencing Read more
Source§

impl<'a, T, const R: usize, const C: usize> DerefMutArch<'a, ArrayStorageSlx<T, R, C>> for DerefMatrixSlx<T, ConstSlx<R>, ConstSlx<C>, ArchMutArrayStorageSlx<'a, T, R, C>>
where T: 'a + Unpin + Archive<Archived = T> + HashedTypeDef,

Source§

fn deref_mut_arch( arch: Pin<&'a mut ArchData<ArrayStorageSlx<T, R, C>>>, ) -> Result<Pin<Self>, String>

Convert slx archive to pinned mutable dereferencing Read more
Source§

impl<D: Fallible + ?Sized, T, const R: usize, const C: usize> Deserialize<ArrayStorageSlx<T, R, C>, D> for Archived<ArrayStorageSlx<T, R, C>>
where T: Archive, [[Archived<T>; R]; C]: Deserialize<[[T; R]; C], D>,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<ArrayStorageSlx<T, R, C>, D::Error>

Deserializes using the given deserializer
Source§

impl<'a, T, const R: usize, const C: usize> From<&'a <ArrayStorageSlx<T, R, C> as Archive>::Archived> for ArchRefArrayStorageSlx<'a, T, R, C>
where T: Archive,

Source§

fn from(archived: &'a Archived<ArrayStorageSlx<T, R, C>>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T, const R: usize, const C: usize> From<&'a <ArrayStorageSlx<T, R, C> as Archive>::Archived> for DerefMatrixSlx<T, ConstSlx<R>, ConstSlx<C>, ArchRefArrayStorageSlx<'a, T, R, C>>
where T: Archive,

Source§

fn from(archived: &'a Archived<ArrayStorageSlx<T, R, C>>) -> Self

Converts to this type from the input type.
Source§

impl<T, const R: usize, const C: usize> From<&ArrayStorageSlx<<T as Archive>::Archived, R, C>> for &Matrix<T, Const<R>, Const<C>, ArrayStorageSlx<Archived<T>, R, C>>
where T: Archive,

Source§

fn from(data: &ArrayStorageSlx<Archived<T>, R, C>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T, const R: usize, const C: usize> From<&'a mut <ArrayStorageSlx<T, R, C> as Archive>::Archived> for ArchMutArrayStorageSlx<'a, T, R, C>
where T: Archive,

Source§

fn from(archived: &'a mut Archived<ArrayStorageSlx<T, R, C>>) -> Self

Converts to this type from the input type.
Source§

impl<'a, T, const R: usize, const C: usize> From<&'a mut <ArrayStorageSlx<T, R, C> as Archive>::Archived> for DerefMatrixSlx<T, ConstSlx<R>, ConstSlx<C>, ArchMutArrayStorageSlx<'a, T, R, C>>
where T: Archive,

Source§

fn from(archived: &'a mut Archived<ArrayStorageSlx<T, R, C>>) -> Self

Converts to this type from the input type.
Source§

impl<T, const R: usize, const C: usize> HashedTypeDef for ArrayStorageSlx<T, R, C>

Source§

const TYPE_HASH_NATIVE: u128

native hash computation
Source§

const TYPE_HASH_LE: u128 = _

hash encoded to little endianess
Source§

const TYPE_HASH_BE: u128 = _

hash encoded to big endianess
Source§

const UUID: Uuid = _

hash encoded to Uuid
Source§

impl<T: PartialEq, const R: usize, const C: usize> PartialEq for ArrayStorageSlx<T, R, C>

Source§

fn eq(&self, other: &ArrayStorageSlx<T, R, C>) -> 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<S: Fallible + ?Sized, T, const R: usize, const C: usize> Serialize<S> for ArrayStorageSlx<T, R, C>
where T: Archive, [[T; R]; C]: Serialize<S>,

Source§

fn serialize(&self, serializer: &mut S) -> Result<Self::Resolver, S::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
Source§

impl<T, const R: usize, const C: usize> SlxFrom<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>

Source§

fn slx_from(orig: ArrayStorage<T, R, C>) -> Self

Convert original data into slx data Read more
Source§

impl<T, const R: usize, const C: usize> SlxFrom<Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>> for ArrayStorageSlx<T, R, C>

Source§

fn slx_from(orig: SMatrix<T, R, C>) -> Self

Convert original data into slx data Read more
Source§

impl<T, const R: usize, const C: usize> SlxInto<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>

Source§

fn unslx(self) -> ArrayStorage<T, R, C>

Convert slx data into original data Read more
Source§

impl<T, const R: usize, const C: usize> SlxInto<Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>> for ArrayStorageSlx<T, R, C>

Source§

fn unslx(self) -> SMatrix<T, R, C>

Convert slx data into original data Read more
Source§

impl<T: Copy, const R: usize, const C: usize> Copy for ArrayStorageSlx<T, R, C>

Source§

impl<T: Clone, const R: usize, const C: usize> IsContiguous for ArrayStorageSlx<T, R, C>

Source§

impl<T: Clone, const R: usize, const C: usize> StorageSlx<Const<R>, Const<C>> for ArrayStorageSlx<T, R, C>

Source§

impl<T, const R: usize, const C: usize> StructuralPartialEq for ArrayStorageSlx<T, R, C>

Auto Trait Implementations§

§

impl<T, const R: usize, const C: usize> Freeze for ArrayStorageSlx<T, R, C>
where T: Freeze,

§

impl<T, const R: usize, const C: usize> RefUnwindSafe for ArrayStorageSlx<T, R, C>
where T: RefUnwindSafe,

§

impl<T, const R: usize, const C: usize> Send for ArrayStorageSlx<T, R, C>
where T: Send,

§

impl<T, const R: usize, const C: usize> Sync for ArrayStorageSlx<T, R, C>
where T: Sync,

§

impl<T, const R: usize, const C: usize> Unpin for ArrayStorageSlx<T, R, C>
where T: Unpin,

§

impl<T, const R: usize, const C: usize> UnwindSafe for ArrayStorageSlx<T, R, C>
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<U> ArchSized for U

Source§

type Archivable = U

Type of the slx data
Source§

fn arch_sized(&self) -> Result<ArchData<<U as ArchSized>::Archivable>, String>

Build the archive data from a slx data reference Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> ArchiveUnsized for T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

type MetadataResolver = ()

The resolver for the metadata of this type. Read more
Source§

unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
Source§

unsafe fn resolve_unsized( &self, from: usize, to: usize, resolver: Self::MetadataResolver, out: *mut RelPtr<Self::Archived, <isize as Archive>::Archived>, )

Resolves a relative pointer to this value with the given from and to and writes it to the given output. 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<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, O> FromSlx<T> for O
where T: SlxInto<O>,

Source§

fn from_slx(slx: T) -> O

Convert slx data into original data Read more
Source§

impl<T> HashedTypeMethods for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string from instance
Source§

impl<T> HashedTypeUuid for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string from instance
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, O> IntoSlx<T> for O
where T: SlxFrom<O>,

Source§

fn slx(self) -> T

Convert original data into slx data Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Serializer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

fn serialize_metadata(&self, _: &mut S) -> Result<(), <S as Fallible>::Error>

Serializes the metadata for the given type.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<T> SlxData for T