Expand description
Wrapper type representing a buffer created with vaCreateBuffer
.
Fields
context: Rc<Context>
id: c_uint
Implementations
sourceimpl Buffer
impl Buffer
sourcepub(crate) fn new(context: Rc<Context>, type_: BufferType) -> Result<Self>
pub(crate) fn new(context: Rc<Context>, type_: BufferType) -> Result<Self>
Creates a new buffer by wrapping a vaCreateBuffer
call. This is just a helper for
Context::create_buffer
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more