Struct mash::model::Model[][src]

pub struct Model<V: Vertex, I: Index> {
    pub mesh: TriangularMesh<V, I>,
}

A 3D model.

Fields

mesh: TriangularMesh<V, I>

The mesh that makes up the model.

Implementations

impl<V: Vertex, I: Index> Model<V, I>[src]

pub fn empty() -> Self[src]

Creates an empty mesh.

pub fn new<F>(builder: F) -> Result<Self, Error> where
    F: BuildModel,
    V: From<F::Vertex>, 
[src]

Creates a new model.

Trait Implementations

impl<V: Clone + Vertex, I: Clone + Index> Clone for Model<V, I>[src]

impl<V: Debug + Vertex, I: Debug + Index> Debug for Model<V, I>[src]

impl<V: Eq + Vertex, I: Eq + Index> Eq for Model<V, I>[src]

impl<V: PartialEq + Vertex, I: PartialEq + Index> PartialEq<Model<V, I>> for Model<V, I>[src]

impl<V: Vertex, I: Index> StructuralEq for Model<V, I>[src]

impl<V: Vertex, I: Index> StructuralPartialEq for Model<V, I>[src]

Auto Trait Implementations

impl<V, I> RefUnwindSafe for Model<V, I> where
    I: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<V, I> Send for Model<V, I> where
    I: Send,
    V: Send
[src]

impl<V, I> Sync for Model<V, I> where
    I: Sync,
    V: Sync
[src]

impl<V, I> Unpin for Model<V, I> where
    I: Unpin,
    V: Unpin
[src]

impl<V, I> UnwindSafe for Model<V, I> where
    I: UnwindSafe,
    V: UnwindSafe
[src]

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> 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.