pub struct MaterialLibrary { /* private fields */ }Implementations§
Source§impl MaterialLibrary
impl MaterialLibrary
pub fn builtins() -> Self
pub fn with_factory( self, key: impl Into<String>, factory: Arc<dyn MaterialFactory>, ) -> Result<Self, CompileError>
Trait Implementations§
Source§impl Clone for MaterialLibrary
impl Clone for MaterialLibrary
Source§fn clone(&self) -> MaterialLibrary
fn clone(&self) -> MaterialLibrary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MaterialLibrary
impl !UnwindSafe for MaterialLibrary
impl Freeze for MaterialLibrary
impl Send for MaterialLibrary
impl Sync for MaterialLibrary
impl Unpin for MaterialLibrary
impl UnsafeUnpin for MaterialLibrary
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