pub struct ArchData<U>{ /* private fields */ }Expand description
Silx archive data
U: the type of the data; needs to implementSlxData
Implementations§
source§impl<U> ArchData<U>where
U: SlxData,
impl<U> ArchData<U>where
U: SlxData,
pub fn new_sized(data: &U) -> Result<Self, String>
sourcepub fn pinned(&mut self) -> PinArchData<'_, U>where
U: Unpin,
pub fn pinned(&mut self) -> PinArchData<'_, U>where
U: Unpin,
Get a pinned mutable reference to the archive
- Output: the pinned mutable reference to the archive
sourcepub fn archive_ref(&self) -> Result<&<U as Archive>::Archived, String>where
U: Archive,
pub fn archive_ref(&self) -> Result<&<U as Archive>::Archived, String>where
U: Archive,
Get reference to the archived data within archive data (zero-copy)
- Output: the reference or an error
sourcepub fn archive_mut(
self: Pin<&mut Self>
) -> Result<Pin<&mut <U as Archive>::Archived>, String>where
U: Archive,
pub fn archive_mut(
self: Pin<&mut Self>
) -> Result<Pin<&mut <U as Archive>::Archived>, String>where
U: Archive,
Get pinned mutable reference to the archived data within archive data (zero-copy)
- Output: the pinned mutable reference or an error
Trait Implementations§
source§impl<'a, T, D> ArchToDeref<D> for &'a ArchData<T>
impl<'a, T, D> ArchToDeref<D> for &'a ArchData<T>
source§impl<'a, D, T> ArchToDerefMut<D> for Pin<&'a mut ArchData<T>>where
T: SlxData,
D: DerefMutArch<'a, T>,
impl<'a, D, T> ArchToDerefMut<D> for Pin<&'a mut ArchData<T>>where
T: SlxData,
D: DerefMutArch<'a, T>,
Auto Trait Implementations§
impl<U: ?Sized> RefUnwindSafe for ArchData<U>where
U: RefUnwindSafe,
impl<U: ?Sized> Send for ArchData<U>where
U: Send,
impl<U: ?Sized> Sync for ArchData<U>where
U: Sync,
impl<U: ?Sized> Unpin for ArchData<U>where
U: Unpin,
impl<U: ?Sized> UnwindSafe for ArchData<U>where
U: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§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> 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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
§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
§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
§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
§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
§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