pub struct Model {
pub mesh: Mesh,
pub name: String,
}
Expand description
A named model within the file.
Associates some mesh with a name that was specified with an o
or g
keyword in the OBJ
file.
Fields§
§mesh: Mesh
Mesh
used by the model containing its geometry.
name: String
Name assigned to this Mesh
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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