pub struct Material {
pub name: String,
pub strategy: &'static str,
/* private fields */
}Fields§
§name: String§strategy: &'static strImplementations§
Source§impl Material
impl Material
pub fn new(name: impl Into<String>, strategy: &'static str) -> Self
pub fn with(self, id: PropertyId, value: MaterialValue) -> Self
pub fn set(&mut self, id: PropertyId, value: MaterialValue)
pub fn get(&self, id: PropertyId) -> Option<&MaterialValue>
pub fn contains(&self, id: PropertyId) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&PropertyId, &MaterialValue)>
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