pub enum ObjMaterial {
Ref(String),
Mtl(Arc<Material>),
}
Expand description
The data represented by the usemtl
command.
The material name is replaced by the actual material data when the material libraries are laoded if a match is found.
Variants§
Ref(String)
A reference to a material as a material name.
Mtl(Arc<Material>)
A complete Material
object loaded from a .mtl file in place of the material reference.
Trait Implementations§
Source§impl Clone for ObjMaterial
impl Clone for ObjMaterial
Source§fn clone(&self) -> ObjMaterial
fn clone(&self) -> ObjMaterial
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjMaterial
impl Debug for ObjMaterial
Source§impl PartialEq for ObjMaterial
impl PartialEq for ObjMaterial
impl StructuralPartialEq for ObjMaterial
Auto Trait Implementations§
impl Freeze for ObjMaterial
impl RefUnwindSafe for ObjMaterial
impl Send for ObjMaterial
impl Sync for ObjMaterial
impl Unpin for ObjMaterial
impl UnwindSafe for ObjMaterial
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)