pub struct UnlitStrategy { /* private fields */ }Trait Implementations§
Source§impl Default for UnlitStrategy
impl Default for UnlitStrategy
Source§impl ShadingStrategy for UnlitStrategy
impl ShadingStrategy for UnlitStrategy
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable name used for lookup in
StrategyRegistry and stored on
Material::strategy.Source§fn requirements(&self) -> &Requirements
fn requirements(&self) -> &Requirements
What this strategy needs from a material to be able to resolve it.
Source§fn fields(&self) -> &[FieldDesc]
fn fields(&self) -> &[FieldDesc]
The fields this strategy produces, in a fixed order.
resolve()
returns one value per field, in this same order.Source§fn resolve(
&self,
material: &Material,
) -> Result<Vec<MaterialValue>, MaterialError>
fn resolve( &self, material: &Material, ) -> Result<Vec<MaterialValue>, MaterialError>
Resolves this material’s value for every field in
fields(),
applying this strategy’s own fallbacks for missing properties.Auto Trait Implementations§
impl Freeze for UnlitStrategy
impl RefUnwindSafe for UnlitStrategy
impl Send for UnlitStrategy
impl Sync for UnlitStrategy
impl Unpin for UnlitStrategy
impl UnsafeUnpin for UnlitStrategy
impl UnwindSafe for UnlitStrategy
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