Struct lotus_script::graphics::textures::DrawTextureOpts   
pub struct DrawTextureOpts {
    pub source_rect: Option<Rectangle>,
    pub target_rect: Option<Rectangle>,
}Expand description
Options for drawing a texture.
Fields§
§source_rect: Option<Rectangle>The source rectangle of the texture to draw.
target_rect: Option<Rectangle>The target rectangle of the texture to draw to.
Trait Implementations§
§impl Clone for DrawTextureOpts
 
impl Clone for DrawTextureOpts
§fn clone(&self) -> DrawTextureOpts
 
fn clone(&self) -> DrawTextureOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more§impl Default for DrawTextureOpts
 
impl Default for DrawTextureOpts
§fn default() -> DrawTextureOpts
 
fn default() -> DrawTextureOpts
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for DrawTextureOpts
 
impl<'de> Deserialize<'de> for DrawTextureOpts
§fn deserialize<__D>(
    __deserializer: __D
) -> Result<DrawTextureOpts, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<DrawTextureOpts, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DrawTextureOpts
 
impl Serialize for DrawTextureOpts
§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 DrawTextureOpts
Auto Trait Implementations§
impl Freeze for DrawTextureOpts
impl RefUnwindSafe for DrawTextureOpts
impl Send for DrawTextureOpts
impl Sync for DrawTextureOpts
impl Unpin for DrawTextureOpts
impl UnwindSafe for DrawTextureOpts
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