Struct ps_datachunk::typed::TypedDataChunk
source · pub struct TypedDataChunk<'lt, T: Archive> { /* private fields */ }
Implementations§
source§impl<'lt, T: Archive> TypedDataChunk<'lt, T>
impl<'lt, T: Archive> TypedDataChunk<'lt, T>
pub unsafe fn from_chunk_unchecked(chunk: DataChunk<'lt>) -> Self
Trait Implementations§
source§impl<'lt, T: Archive> DataChunkTrait for TypedDataChunk<'lt, T>
impl<'lt, T: Archive> DataChunkTrait for TypedDataChunk<'lt, T>
fn data_ref(&self) -> &[u8] ⓘ
fn hash_ref(&self) -> &[u8] ⓘ
fn hash(&self) -> HashCow<'_>
fn encrypt(&self, compressor: &Compressor) -> Result<EncryptedDataChunk>
fn decrypt(&self, key: &[u8], compressor: &Compressor) -> Result<OwnedDataChunk>
fn to_datachunk(&self) -> DataChunk<'_>
fn align(&self) -> AlignedDataChunk
fn borrow(&self) -> BorrowedDataChunk<'_>
fn to_owned(&self) -> OwnedDataChunk
fn try_as<T: Archive>(&self) -> Result<TypedDataChunk<'_, T>>
source§impl<'lt, T: Archive> Deref for TypedDataChunk<'lt, T>
impl<'lt, T: Archive> Deref for TypedDataChunk<'lt, T>
source§impl<'lt, T> TryFrom<DataChunk<'lt>> for TypedDataChunk<'lt, T>
impl<'lt, T> TryFrom<DataChunk<'lt>> for TypedDataChunk<'lt, T>
§type Error = PsDataChunkError
type Error = PsDataChunkError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<'lt, T> Freeze for TypedDataChunk<'lt, T>
impl<'lt, T> RefUnwindSafe for TypedDataChunk<'lt, T>
impl<'lt, T> Send for TypedDataChunk<'lt, T>
impl<'lt, T> Sync for TypedDataChunk<'lt, T>
impl<'lt, T> Unpin for TypedDataChunk<'lt, T>
impl<'lt, T> UnwindSafe for TypedDataChunk<'lt, T>
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
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.