pub enum GeometryRef {
Mesh(usize),
Lines(usize),
Points(usize),
}Expand description
What an instance draws: an index into one of the scene’s buffer lists.
Variants§
Mesh(usize)
Index into RenderScene::meshes.
Lines(usize)
Index into RenderScene::lines.
Points(usize)
Index into RenderScene::points.
Implementations§
Source§impl GeometryRef
impl GeometryRef
Sourcepub fn kind(&self) -> GeometryKind
pub fn kind(&self) -> GeometryKind
The kind of buffer referenced.
Trait Implementations§
Source§impl Clone for GeometryRef
impl Clone for GeometryRef
Source§fn clone(&self) -> GeometryRef
fn clone(&self) -> GeometryRef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeometryRef
impl Debug for GeometryRef
Source§impl Hash for GeometryRef
impl Hash for GeometryRef
Source§impl PartialEq for GeometryRef
impl PartialEq for GeometryRef
impl Copy for GeometryRef
impl Eq for GeometryRef
impl StructuralPartialEq for GeometryRef
Auto Trait Implementations§
impl Freeze for GeometryRef
impl RefUnwindSafe for GeometryRef
impl Send for GeometryRef
impl Sync for GeometryRef
impl Unpin for GeometryRef
impl UnwindSafe for GeometryRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.