Enum iced_graphics::mesh::Mesh
source · pub enum Mesh {
Solid {
buffers: Indexed<SolidVertex2D>,
size: Size,
},
Gradient {
buffers: Indexed<GradientVertex2D>,
size: Size,
},
}
Expand description
A low-level primitive to render a mesh of triangles.
Variants§
Solid
Fields
§
buffers: Indexed<SolidVertex2D>
The vertices and indices of the mesh.
A mesh with a solid color.
Gradient
Fields
§
buffers: Indexed<GradientVertex2D>
The vertices and indices of the mesh.
A mesh with a gradient.
Trait Implementations§
source§impl PartialEq for Mesh
impl PartialEq for Mesh
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
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