Enum dae_parser::LightKind
source · [−]pub enum LightKind {
Ambient(AmbientLight),
Directional(DirectionalLight),
Point(Box<PointLight>),
Spot(Box<SpotLight>),
}
Expand description
The kind of light being described.
Variants
Ambient(AmbientLight)
Describes an ambient light source.
Directional(DirectionalLight)
Describes a directional light source.
Point(Box<PointLight>)
Describes a point light source.
Spot(Box<SpotLight>)
Describes a spot light source.
Implementations
Trait Implementations
sourceimpl From<AmbientLight> for LightKind
impl From<AmbientLight> for LightKind
sourcefn from(v: AmbientLight) -> Self
fn from(v: AmbientLight) -> Self
Converts to this type from the input type.
sourceimpl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
sourcefn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Converts to this type from the input type.
sourceimpl From<PointLight> for LightKind
impl From<PointLight> for LightKind
sourcefn from(v: PointLight) -> Self
fn from(v: PointLight) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for LightKind
impl Send for LightKind
impl Sync for LightKind
impl Unpin for LightKind
impl UnwindSafe for LightKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more