Struct rin::gl::vao::simple_vao::Data [−][src]
pub struct Data<'a, T> where
T: 'a, { pub vertices: &'a (dyn AsRef<[T]> + 'a), pub indices: &'a [u32], pub mode: u32, }
Specifies the data for a SimpleVao
Allows to create a SimpleVao from data that implements VertexFormat, a draw mode and a slice of indices which can be empty
Fields
vertices: &'a (dyn AsRef<[T]> + 'a)
indices: &'a [u32]
mode: u32
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Data<'a, T>
impl<'a, T> !Send for Data<'a, T>
impl<'a, T> !Sync for Data<'a, T>
impl<'a, T> Unpin for Data<'a, T>
impl<'a, T> !UnwindSafe for Data<'a, T>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]