Struct lotus_script::graphics::textures::DrawPixel
source · pub struct DrawPixel {
pub pos: UVec2,
pub color: Color,
}
Expand description
A pixel to draw on a texture.
Fields§
§pos: UVec2
The position of the pixel.
color: Color
The color of the pixel.
Trait Implementations§
source§impl<'de> Deserialize<'de> for DrawPixel
impl<'de> Deserialize<'de> for DrawPixel
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawPixel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawPixel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for DrawPixel
impl Serialize for DrawPixel
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for DrawPixel
Auto Trait Implementations§
impl Freeze for DrawPixel
impl RefUnwindSafe for DrawPixel
impl Send for DrawPixel
impl Sync for DrawPixel
impl Unpin for DrawPixel
impl UnwindSafe for DrawPixel
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