pub struct Container { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockContainer for Container
impl BlockContainer for Container
Source§impl CopyBytes for Container
impl CopyBytes for Container
fn copy_bytes_at(&self, offset: usize, dst: &mut [u8])
fn copy_bytes(&self, dst: &mut [u8])
Source§impl ReadBytes for Container
impl ReadBytes for Container
Source§fn get_slice_at(&self, offset: usize, size: usize) -> Option<&[u8]>
fn get_slice_at(&self, offset: usize, size: usize) -> Option<&[u8]>
Returns a slice of the given size at the given offset if one exists of the exact size. The offset is inclusive.
Source§impl WriteBytes for Container
impl WriteBytes for Container
Source§fn get_slice_mut_at(&mut self, offset: usize, size: usize) -> Option<&mut [u8]>
fn get_slice_mut_at(&mut self, offset: usize, size: usize) -> Option<&mut [u8]>
Returns a slice of the given size at the given offset if one exists of the exact size. The offset is inclusive.
Source§fn get_slice_mut(&mut self, size: usize) -> Option<&mut [u8]>
fn get_slice_mut(&mut self, size: usize) -> Option<&mut [u8]>
Returns an exclusive reference to a slice of the given size at the beginning of the
container if one exists of the exact size.
fn copy_from_slice_at(&mut self, offset: usize, bytes: &[u8])
fn copy_from_slice(&mut self, bytes: &[u8])
Source§fn get_value_mut<T: ContainerValue>(&mut self, offset: usize) -> Option<&mut T>
fn get_value_mut<T: ContainerValue>(&mut self, offset: usize) -> Option<&mut T>
Returns an exclusive reference to the value at the give offset, if one exists.
fn set_value<T: ContainerValue>(&mut self, offset: usize, value: T)
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
Blanket Implementations§
Source§impl<T> BlockAccessorExt for Twhere
T: ReadBytes,
impl<T> BlockAccessorExt for Twhere
T: ReadBytes,
fn maybe_block_at<K: BlockKind>( &self, index: BlockIndex, ) -> Option<Block<&Self, K>>
fn block_at_unchecked<K: BlockKind>(&self, index: BlockIndex) -> Block<&Self, K>
fn block_at(&self, index: BlockIndex) -> Block<&Self, Unknown>
Source§impl<T> BlockAccessorMutExt for Twhere
T: WriteBytes + ReadBytes,
impl<T> BlockAccessorMutExt for Twhere
T: WriteBytes + ReadBytes,
fn maybe_block_at_mut<K: BlockKind>( &mut self, index: BlockIndex, ) -> Option<Block<&mut Self, K>>
fn block_at_unchecked_mut<K: BlockKind>( &mut self, index: BlockIndex, ) -> Block<&mut Self, K>
fn block_at_mut(&mut self, index: BlockIndex) -> Block<&mut Self, Unknown>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more