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§
Source§impl From<AmbientLight> for LightKind
impl From<AmbientLight> for LightKind
Source§fn from(v: AmbientLight) -> Self
fn from(v: AmbientLight) -> Self
Converts to this type from the input type.
Source§impl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
Source§fn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Converts to this type from the input type.
Source§impl From<PointLight> for LightKind
impl From<PointLight> for LightKind
Source§fn from(v: PointLight) -> Self
fn from(v: PointLight) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LightKind
impl RefUnwindSafe for LightKind
impl Send for LightKind
impl Sync for LightKind
impl Unpin for LightKind
impl UnwindSafe for LightKind
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