pub struct Buffer<'b, 'l, L: Layout> { /* private fields */ }
Expand description
A short-lived description of the buffer being rendered into for the current frame.
§Examples
let width = 100;
let height = 100;
let mut buffer = vec![0; 100 * 4 * 100];
let _buffer = BufferBuilder::new(
&mut buffer,
&mut LinearLayout::new(width, width * 4, height),
).build();
Trait Implementations§
Auto Trait Implementations§
impl<'b, 'l, L> Freeze for Buffer<'b, 'l, L>
impl<'b, 'l, L> !RefUnwindSafe for Buffer<'b, 'l, L>
impl<'b, 'l, L> !Send for Buffer<'b, 'l, L>
impl<'b, 'l, L> !Sync for Buffer<'b, 'l, L>
impl<'b, 'l, L> Unpin for Buffer<'b, 'l, L>
impl<'b, 'l, L> !UnwindSafe for Buffer<'b, 'l, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more