Struct ark_api::world::WorldMaterials
source · pub struct WorldMaterials { /* private fields */ }Expand description
Represents a vector of WorldMaterial’s attached to the MeshStyle.
Implementations§
source§impl WorldMaterials
impl WorldMaterials
sourcepub fn new(materials: Vec<WorldMaterial>) -> Self
pub fn new(materials: Vec<WorldMaterial>) -> Self
Creates WorldMaterials from a Vec.
sourcepub fn set_debug_name(&self, name: &str)
pub fn set_debug_name(&self, name: &str)
Sets a debug name of this data object. Useful for debugging memory usage and leaks.
Trait Implementations§
source§impl From<Vec<MaterialDesc, Global>> for WorldMaterials
impl From<Vec<MaterialDesc, Global>> for WorldMaterials
source§fn from(materials: Vec<MaterialDesc>) -> Self
fn from(materials: Vec<MaterialDesc>) -> Self
Converts to this type from the input type.
source§impl From<Vec<WorldMaterial, Global>> for WorldMaterials
impl From<Vec<WorldMaterial, Global>> for WorldMaterials
source§fn from(materials: Vec<WorldMaterial>) -> Self
fn from(materials: Vec<WorldMaterial>) -> Self
Converts to this type from the input type.
source§impl ValueConverterTrait<WorldMaterials> for ValueConverter
impl ValueConverterTrait<WorldMaterials> for ValueConverter
source§fn into_value(v: WorldMaterials) -> Value
fn into_value(v: WorldMaterials) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> WorldMaterials
fn from_value(v: &Value) -> WorldMaterials
Extracts the value from a
Value enum.Auto Trait Implementations§
impl RefUnwindSafe for WorldMaterials
impl Send for WorldMaterials
impl Sync for WorldMaterials
impl Unpin for WorldMaterials
impl UnwindSafe for WorldMaterials
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