pub struct MaterialsStateResolver {
pub materials: HashMap<Material, u16>,
}
Fields§
§materials: HashMap<Material, u16>
Implementations§
Source§impl MaterialsStateResolver
impl MaterialsStateResolver
pub fn set_material_count(&mut self, material: Material, count: u16)
pub fn add_material_count(&mut self, material: Material, count: u16)
pub fn remove_material_count(&mut self, materials: Material, count: u16)
pub fn get_count(&self, material: &Material) -> u16
pub fn is_full(&self, material: &Material) -> bool
Trait Implementations§
Source§impl Default for MaterialsStateResolver
impl Default for MaterialsStateResolver
Source§fn default() -> MaterialsStateResolver
fn default() -> MaterialsStateResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MaterialsStateResolver
impl RefUnwindSafe for MaterialsStateResolver
impl Send for MaterialsStateResolver
impl Sync for MaterialsStateResolver
impl Unpin for MaterialsStateResolver
impl UnwindSafe for MaterialsStateResolver
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