pub struct AmbientLight {
pub color: Box<[f32; 3]>,
}
Expand description
Describes an ambient light source.
Fields§
§color: Box<[f32; 3]>
Contains three floating-point numbers specifying the color of the light.
Implementations§
Trait Implementations§
Source§impl Clone for AmbientLight
impl Clone for AmbientLight
Source§fn clone(&self) -> AmbientLight
fn clone(&self) -> AmbientLight
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AmbientLight
impl Debug for AmbientLight
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.
Auto Trait Implementations§
impl Freeze for AmbientLight
impl RefUnwindSafe for AmbientLight
impl Send for AmbientLight
impl Sync for AmbientLight
impl Unpin for AmbientLight
impl UnwindSafe for AmbientLight
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