#[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,
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>
type Archived = ArrayStorageSlx<<T as Archive>::Archived, R, C>
The archived representation of this type. Read more
Source§impl<T: Clone, const R: usize, const C: usize> Clone for ArrayStorageSlx<T, R, C>
impl<T: Clone, const R: usize, const C: usize> Clone for ArrayStorageSlx<T, R, C>
Source§fn clone(&self) -> ArrayStorageSlx<T, R, C>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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,
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>
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>>
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>>
Source§fn deref_mut_arch(
arch: Pin<&'a mut ArchData<ArrayStorageSlx<T, R, C>>>,
) -> Result<Pin<Self>, String>
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>>
impl<D: Fallible + ?Sized, T, const R: usize, const C: usize> Deserialize<ArrayStorageSlx<T, R, C>, D> for Archived<ArrayStorageSlx<T, R, C>>
Source§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<ArrayStorageSlx<T, R, C>, D::Error>
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,
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
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,
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
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,
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
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,
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
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,
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
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>
impl<T, const R: usize, const C: usize> HashedTypeDef for ArrayStorageSlx<T, R, C>
Source§impl<S: Fallible + ?Sized, T, const R: usize, const C: usize> Serialize<S> for ArrayStorageSlx<T, R, C>
impl<S: Fallible + ?Sized, T, const R: usize, const C: usize> Serialize<S> for ArrayStorageSlx<T, R, C>
Source§impl<T, const R: usize, const C: usize> SlxFrom<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
impl<T, const R: usize, const C: usize> SlxFrom<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
Source§fn slx_from(orig: ArrayStorage<T, R, C>) -> Self
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>where
T: Archive + HashedTypeDef,
impl<T, const R: usize, const C: usize> SlxFrom<Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
Source§impl<T, const R: usize, const C: usize> SlxInto<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
impl<T, const R: usize, const C: usize> SlxInto<ArrayStorage<T, R, C>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
Source§fn unslx(self) -> ArrayStorage<T, R, C>
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>where
T: Archive + HashedTypeDef,
impl<T, const R: usize, const C: usize> SlxInto<Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>> for ArrayStorageSlx<T, R, C>where
T: Archive + HashedTypeDef,
impl<T: Copy, const R: usize, const C: usize> Copy for ArrayStorageSlx<T, R, C>
impl<T: Clone, const R: usize, const C: usize> IsContiguous for ArrayStorageSlx<T, R, C>
impl<T: Clone, const R: usize, const C: usize> StorageSlx<Const<R>, Const<C>> for ArrayStorageSlx<T, R, C>
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<U> ArchSized for Uwhere
U: SlxData + Serialize<CompositeSerializer<AlignedSerializer<AlignedVec>, FallbackScratch<HeapScratch<silx_core::::traits::arch::{impl#0}::{constant#0}>, AllocScratch>, SharedSerializeMap>>,
impl<U> ArchSized for Uwhere
U: SlxData + Serialize<CompositeSerializer<AlignedSerializer<AlignedVec>, FallbackScratch<HeapScratch<silx_core::::traits::arch::{impl#0}::{constant#0}>, AllocScratch>, SharedSerializeMap>>,
Source§type Archivable = U
type Archivable = U
Type of the slx data
Source§fn arch_sized(&self) -> Result<ArchData<<U as ArchSized>::Archivable>, String>
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
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
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 Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
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,
)
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§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> HashedTypeMethods for T
impl<T> HashedTypeMethods for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
return uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
Source§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return native type hash from instance
Source§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash from instance
Source§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash from instance
Source§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
return type hash-derived uuid from instance
Source§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string from instance
Source§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid hyphenated string
Source§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn native type hash from instance
Source§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn little endianess type hash from instance
Source§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn big endianess type hash from instance
Source§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn type hash-derived uuid from instance
Source§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid hyphenated string from instance
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.