pub struct DirectionalLightDef {
pub id: String,
pub direction: [f32; 3],
pub color: [f32; 3],
pub intensity: f32,
pub cast_shadows: bool,
}Fields§
§id: String§direction: [f32; 3]§color: [f32; 3]§intensity: f32§cast_shadows: boolTrait Implementations§
Source§impl Clone for DirectionalLightDef
impl Clone for DirectionalLightDef
Source§fn clone(&self) -> DirectionalLightDef
fn clone(&self) -> DirectionalLightDef
Returns a duplicate 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 DirectionalLightDef
impl Debug for DirectionalLightDef
Source§impl<'de> Deserialize<'de> for DirectionalLightDef
impl<'de> Deserialize<'de> for DirectionalLightDef
Source§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
Auto Trait Implementations§
impl Freeze for DirectionalLightDef
impl RefUnwindSafe for DirectionalLightDef
impl Send for DirectionalLightDef
impl Sync for DirectionalLightDef
impl Unpin for DirectionalLightDef
impl UnsafeUnpin for DirectionalLightDef
impl UnwindSafe for DirectionalLightDef
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