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>
Sourcepub fn numeric_descriptor(
&self,
key: &str,
params: &MaterialArgs,
input_types: &[ValueType],
) -> Result<Option<NumericDescriptor>, String>
pub fn numeric_descriptor( &self, key: &str, params: &MaterialArgs, input_types: &[ValueType], ) -> Result<Option<NumericDescriptor>, String>
Inspect a registered numeric contract using the same validation as evaluator construction. None means the registered factory does not supply a numeric descriptor, not inferred support.
pub fn parameter_schema(&self, key: &str) -> Option<&[ParamSpec]>
Trait Implementations§
Auto 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