Struct ray_tracing_utility::serialization::material::DiffuseLight [−][src]
pub struct DiffuseLight {
pub id: IdConstructor,
pub emit: IdReference,
}
Fields
id: IdConstructor
emit: IdReference
Implementations
pub fn to_material(
&self,
index: usize,
emit: Arc<dyn Texture>
) -> Result<DiffuseLight, Box<dyn Error>>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DiffuseLight
impl Send for DiffuseLight
impl Sync for DiffuseLight
impl Unpin for DiffuseLight
impl UnwindSafe for DiffuseLight
Blanket Implementations
Mutably borrows from an owned value. Read more