[][src]Struct iced_wgpu::triangle::Mesh2D

pub struct Mesh2D {
    pub vertices: Vec<Vertex2D>,
    pub indices: Vec<u32>,
}

A set of Vertex2D and indices representing a list of triangles.

Fields

vertices: Vec<Vertex2D>

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

impl Clone for Mesh2D[src]

impl Debug for Mesh2D[src]

Auto Trait Implementations

impl RefUnwindSafe for Mesh2D

impl Send for Mesh2D

impl Sync for Mesh2D

impl Unpin for Mesh2D

impl UnwindSafe for Mesh2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,