pub struct Buffer {
    context: Rc<Context>,
    id: c_uint,
}
Expand description

Wrapper type representing a buffer created with vaCreateBuffer.

Fields

context: Rc<Context>id: c_uint

Implementations

Creates a new buffer by wrapping a vaCreateBuffer call. This is just a helper for Context::create_buffer.

Convenience function to return a VABufferID vector from a slice of Buffers in order to easily interface with the C API where a buffer array might be needed.

Trait Implementations

Executes the destructor for this type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.