pub struct MaterialExtensions;Expand description
Extension methods for material classes.
Implementations§
Source§impl MaterialExtensions
impl MaterialExtensions
Sourcepub fn to_immutable(
material: &Rc<dyn IExperimentalAcrylicMaterial>,
) -> Rc<dyn IExperimentalAcrylicMaterial>
pub fn to_immutable( material: &Rc<dyn IExperimentalAcrylicMaterial>, ) -> Rc<dyn IExperimentalAcrylicMaterial>
Converts a material to an immutable material: the result of
IMutableExperimentalAcrylicMaterial::to_immutable
if the material is mutable, otherwise the material itself.
Auto Trait Implementations§
impl Freeze for MaterialExtensions
impl RefUnwindSafe for MaterialExtensions
impl Send for MaterialExtensions
impl Sync for MaterialExtensions
impl Unpin for MaterialExtensions
impl UnsafeUnpin for MaterialExtensions
impl UnwindSafe for MaterialExtensions
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more