Struct lotus_script::graphics::textures::DrawPixel   
pub struct DrawPixel {
    pub pos: UVec2,
    pub color: Color,
}Expand description
A pixel to draw on a texture.
Fields§
§pos: UVec2The position of the pixel.
color: ColorThe color of the pixel.
Trait Implementations§
§impl<'de> Deserialize<'de> for DrawPixel
 
impl<'de> Deserialize<'de> for DrawPixel
§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
§impl Serialize for DrawPixel
 
impl Serialize for DrawPixel
§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