pub struct PhysicallyPlausibleLightInfo {
pub light_type: u32,
pub color_space: String,
pub color: Option<[f32; 4]>,
pub lumens: f32,
pub inner_cone_angle: f32,
pub outer_cone_angle: f32,
pub attenuation_start_distance: f32,
pub attenuation_end_distance: f32,
}Fields§
§light_type: u32§color_space: String§color: Option<[f32; 4]>§lumens: f32§inner_cone_angle: f32§outer_cone_angle: f32§attenuation_start_distance: f32§attenuation_end_distance: f32Implementations§
Source§impl PhysicallyPlausibleLightInfo
impl PhysicallyPlausibleLightInfo
pub fn light_type_enum(&self) -> Option<LightType>
Trait Implementations§
Source§impl Clone for PhysicallyPlausibleLightInfo
impl Clone for PhysicallyPlausibleLightInfo
Source§fn clone(&self) -> PhysicallyPlausibleLightInfo
fn clone(&self) -> PhysicallyPlausibleLightInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhysicallyPlausibleLightInfo
impl Debug for PhysicallyPlausibleLightInfo
Source§impl<'de> Deserialize<'de> for PhysicallyPlausibleLightInfo
impl<'de> Deserialize<'de> for PhysicallyPlausibleLightInfo
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 PhysicallyPlausibleLightInfo
impl RefUnwindSafe for PhysicallyPlausibleLightInfo
impl Send for PhysicallyPlausibleLightInfo
impl Sync for PhysicallyPlausibleLightInfo
impl Unpin for PhysicallyPlausibleLightInfo
impl UnsafeUnpin for PhysicallyPlausibleLightInfo
impl UnwindSafe for PhysicallyPlausibleLightInfo
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