Trait lair_keystore::dependencies::sodoken::buffer::AsExtendMut
[−]pub trait AsExtendMut<'a>: 'a {
unsafe fn unsafe_extend_mut(
&mut self,
len: usize
) -> Result<&mut [u8], OneErr>;
fn extend_mut(&mut self, len: usize) -> Result<&mut [u8], OneErr> { ... }
fn extend_mut_from_slice(&mut self, oth: &[u8]) -> Result<(), OneErr> { ... }
}
Expand description
Indicates we can append bytes without pre-initializing them.
Required Methods
Provided Methods
fn extend_mut(&mut self, len: usize) -> Result<&mut [u8], OneErr>
fn extend_mut(&mut self, len: usize) -> Result<&mut [u8], OneErr>
You probably don’t want this function… it leads to
an extra slow initialization step.
See unsafe_extend_mut
or extend_mut_from_slice
.
fn extend_mut_from_slice(&mut self, oth: &[u8]) -> Result<(), OneErr>
fn extend_mut_from_slice(&mut self, oth: &[u8]) -> Result<(), OneErr>
Extend this extendable buffer with given slice