Struct iced_graphics::mesh::Indexed
source · pub struct Indexed<T> {
pub vertices: Vec<T>,
pub indices: Vec<u32>,
}
Expand description
A set of vertices and indices representing a list of triangles.
Fields§
§vertices: Vec<T>
The vertices of the mesh
indices: Vec<u32>
The list of vertex indices that defines the triangles of the mesh.
Therefore, this list should always have a length that is a multiple of 3.
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Indexed<T>
impl<T: PartialEq> PartialEq for Indexed<T>
impl<T: Eq> Eq for Indexed<T>
impl<T> StructuralPartialEq for Indexed<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Indexed<T>where
T: RefUnwindSafe,
impl<T> Send for Indexed<T>where
T: Send,
impl<T> Sync for Indexed<T>where
T: Sync,
impl<T> Unpin for Indexed<T>where
T: Unpin,
impl<T> UnwindSafe for Indexed<T>where
T: UnwindSafe,
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