pub struct CloudPosDensity { /* private fields */ }Expand description
A windlight cloud layer’s scroll position (X, Y) packed with its
density (Z) in one wire 3-vector (the viewer’s cloud_pos_density*).
The three components are semantically distinct — two are a 2-D scroll offset,
one is a density — so they get named accessors rather than x/y/z, and
this type cannot be confused with a position or direction.
Implementations§
Source§impl CloudPosDensity
impl CloudPosDensity
Trait Implementations§
Source§impl Clone for CloudPosDensity
impl Clone for CloudPosDensity
Source§fn clone(&self) -> CloudPosDensity
fn clone(&self) -> CloudPosDensity
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 moreimpl Copy for CloudPosDensity
Source§impl Debug for CloudPosDensity
impl Debug for CloudPosDensity
Source§impl<'de> Deserialize<'de> for CloudPosDensity
impl<'de> Deserialize<'de> for CloudPosDensity
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
Source§impl PartialEq for CloudPosDensity
impl PartialEq for CloudPosDensity
Source§impl Serialize for CloudPosDensity
impl Serialize for CloudPosDensity
impl StructuralPartialEq for CloudPosDensity
Auto Trait Implementations§
impl Freeze for CloudPosDensity
impl RefUnwindSafe for CloudPosDensity
impl Send for CloudPosDensity
impl Sync for CloudPosDensity
impl Unpin for CloudPosDensity
impl UnsafeUnpin for CloudPosDensity
impl UnwindSafe for CloudPosDensity
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