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]);
fn write_slice(&mut self, offset: usize, val: &[u8]);
// 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])
fn write_slice(&mut self, offset: usize, val: &[u8])
Provided Methods§
fn try_enlarge(&mut self, wanted: usize) -> Result<(), EnlargeError>
Object Safety§
This trait is not object safe.