Struct sodoken::buffer::ExtendGuard [−][src]
pub struct ExtendGuard<'a>(pub Box<dyn AsExtendMut<'a> + 'a>);
Expand description
An extend guard, indicating we have gained access to extend the buffer.
Tuple Fields
0: Box<dyn AsExtendMut<'a> + 'a>
Implementations
Safety
this is unsafe because the process could potentially
- read uninitialized data from the returned slice
- or fail to initialize the data in the returned slice
You probably don’t want this function… it leads to
an extra slow initialization step.
See unsafe_extend_mut
or extend_mut_from_slice
.
Extend this extendable buffer with given slice