pub struct Particle {
pub x: f64,
pub y: f64,
pub glyph: u8,
pub level: u8,
pub ink: bool,
}Expand description
A particle sample in pixels with an ink level 1..=6.
Fields§
§x: f64§y: f64§glyph: u8§level: u8§ink: boolDrawn in ink colour (snow, rain, dust) instead of ember colour.
Trait Implementations§
impl Copy for Particle
Source§impl<'de> Deserialize<'de> for Particle
impl<'de> Deserialize<'de> for Particle
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
impl StructuralPartialEq for Particle
Auto Trait Implementations§
impl Forget for Particle
impl Freeze for Particle
impl Move for Particle
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnsafeUnpin for Particle
impl UnwindSafe for Particle
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