pub struct Material { /* private fields */ }Implementations§
Source§impl Material
impl Material
pub fn new(name: &str, physically_plausible: bool) -> Result<Self>
pub fn info(&self) -> Result<MaterialInfo>
pub fn count(&self) -> usize
pub fn name(&self) -> Option<String>
pub fn material_face(&self) -> Option<MaterialFace>
pub fn set_material_face(&self, face: MaterialFace)
pub fn remove_all_properties(&self)
pub fn property(&self, index: usize) -> Option<MaterialProperty>
pub fn property_named(&self, name: &str) -> Result<Option<MaterialProperty>>
pub fn property_with_semantic( &self, semantic: MaterialSemantic, ) -> Option<MaterialProperty>
pub fn properties(&self) -> Vec<MaterialProperty>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl !Send for Material
impl !Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
impl UnwindSafe for Material
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