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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.