Struct ark_api::world::WorldMaterial
source · [−]pub struct WorldMaterial { /* private fields */ }
Expand description
Represents a material registered with the world.
Implementations
sourceimpl WorldMaterial
impl WorldMaterial
sourcepub fn new(desc: MaterialDesc) -> Self
pub fn new(desc: MaterialDesc) -> Self
Create a material from a material description
Trait Implementations
sourceimpl Clone for WorldMaterial
impl Clone for WorldMaterial
sourcefn clone(&self) -> WorldMaterial
fn clone(&self) -> WorldMaterial
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WorldMaterial
impl Debug for WorldMaterial
sourceimpl PartialEq<WorldMaterial> for WorldMaterial
impl PartialEq<WorldMaterial> for WorldMaterial
sourcefn 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 ==
. Read more
sourceimpl ValueConverterTrait<WorldMaterial> for ValueConverter
impl ValueConverterTrait<WorldMaterial> for ValueConverter
sourcefn into_value(v: WorldMaterial) -> Value
fn into_value(v: WorldMaterial) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more