Trait HasBufferObj

Source
pub trait HasBufferObj: HasData + Bindable {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn info(&self) -> &BufferInfo;
    fn update(&self);
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Source

fn info(&self) -> &BufferInfo

Source

fn update(&self)

Trait Implementations§

Source§

impl<T> From<OglBuf<Vec<T>>> for Box<dyn HasBufferObj>
where T: 'static, Vec<T>: HasData,

Source§

fn from(bo: OglBuf<Vec<T>>) -> Self

Converts to this type from the input type.

Implementors§

Source§

impl<T> HasBufferObj for OglBuf<Vec<T>>
where Vec<T>: HasData, T: 'static,