pub struct Light<'a> {Show 17 fields
pub _constant_attn: Option<f32>,
pub _distance: Option<u16>,
pub _fifty_percent_distance: Option<f32>,
pub _hardfalloff: Option<u16>,
pub _light: LightColor,
pub _lighthdr: Option<&'a str>,
pub _lightscalehdr: bool,
pub _linear_attn: Option<f32>,
pub _quadratic_attn: f32,
pub _zero_percent_distance: Option<f32>,
pub angles: Option<Angles>,
pub defaultstyle: Option<u8>,
pub ontimer: Option<&'a str>,
pub origin: Vector,
pub spawnflags: Option<u32>,
pub style: Option<u8>,
pub targetname: Option<&'a str>,
}Fields§
§_constant_attn: Option<f32>§_distance: Option<u16>§_fifty_percent_distance: Option<f32>§_hardfalloff: Option<u16>§_light: LightColor§_lighthdr: Option<&'a str>§_lightscalehdr: bool§_linear_attn: Option<f32>§_quadratic_attn: f32§_zero_percent_distance: Option<f32>§angles: Option<Angles>§defaultstyle: Option<u8>§ontimer: Option<&'a str>§origin: Vector§spawnflags: Option<u32>§style: Option<u8>§targetname: Option<&'a str>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Light<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Light<'a>
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<'a> Freeze for Light<'a>
impl<'a> RefUnwindSafe for Light<'a>
impl<'a> Send for Light<'a>
impl<'a> Sync for Light<'a>
impl<'a> Unpin for Light<'a>
impl<'a> UnwindSafe for Light<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more