Struct ark_api::world::WorldMaterial
source · pub struct WorldMaterial { /* private fields */ }Expand description
Represents a material registered with the world.
Implementations§
source§impl WorldMaterial
impl WorldMaterial
sourcepub fn new(desc: MaterialDesc) -> Self
pub fn new(desc: MaterialDesc) -> Self
Create a material from a material description
Trait Implementations§
source§impl Clone for WorldMaterial
impl Clone for WorldMaterial
source§fn clone(&self) -> WorldMaterial
fn clone(&self) -> WorldMaterial
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 WorldMaterial
impl Debug for WorldMaterial
source§impl PartialEq<WorldMaterial> for WorldMaterial
impl PartialEq<WorldMaterial> for WorldMaterial
source§fn eq(&self, other: &WorldMaterial) -> bool
fn eq(&self, other: &WorldMaterial) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValueConverterTrait<WorldMaterial> for ValueConverter
impl ValueConverterTrait<WorldMaterial> for ValueConverter
source§fn into_value(v: WorldMaterial) -> Value
fn into_value(v: WorldMaterial) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> WorldMaterial
fn from_value(v: &Value) -> WorldMaterial
Extracts the value from a
Value enum.impl StructuralPartialEq for WorldMaterial
Auto Trait Implementations§
impl RefUnwindSafe for WorldMaterial
impl Send for WorldMaterial
impl Sync for WorldMaterial
impl Unpin for WorldMaterial
impl UnwindSafe for WorldMaterial
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