Trait bevy_render::render_resource::encase::internal::BufferMut
source · pub trait BufferMut {
// Required methods
fn capacity(&self) -> usize;
fn write<const N: usize>(&mut self, offset: usize, val: &[u8; N]);
// Provided method
fn try_enlarge(&mut self, wanted: usize) -> Result<(), EnlargeError> { ... }
}
Required Methods§
fn capacity(&self) -> usize
fn write<const N: usize>(&mut self, offset: usize, val: &[u8; N])
Provided Methods§
fn try_enlarge(&mut self, wanted: usize) -> Result<(), EnlargeError>
Object Safety§
This trait is not object safe.