Struct mash::model::Model [−][src]
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]
F: BuildModel,
V: From<F::Vertex>,
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]
I: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, I> Send for Model<V, I> where
I: Send,
V: Send,
[src]
I: Send,
V: Send,
impl<V, I> Sync for Model<V, I> where
I: Sync,
V: Sync,
[src]
I: Sync,
V: Sync,
impl<V, I> Unpin for Model<V, I> where
I: Unpin,
V: Unpin,
[src]
I: Unpin,
V: Unpin,
impl<V, I> UnwindSafe for Model<V, I> where
I: UnwindSafe,
V: UnwindSafe,
[src]
I: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,