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
Performs the conversion.
sourceimpl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
sourcefn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Performs the conversion.
sourceimpl From<PointLight> for LightKind
impl From<PointLight> for LightKind
sourcefn from(v: PointLight) -> Self
fn from(v: PointLight) -> Self
Performs the conversion.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more