Struct lotus_script::graphics::textures::TextureCreationOptions   
pub struct TextureCreationOptions<'a> {
    pub width: u32,
    pub height: u32,
    pub data: Option<Cow<'a, [u8]>>,
    pub mipmaps: bool,
}Expand description
Options for creating a texture.
Fields§
§width: u32The width of the texture.
height: u32The height of the texture.
data: Option<Cow<'a, [u8]>>The data of the texture. This is currently a placeholder for future use.
mipmaps: boolWhether to generate mipmaps for the texture.
Trait Implementations§
§impl<'a> Clone for TextureCreationOptions<'a>
 
impl<'a> Clone for TextureCreationOptions<'a>
§fn clone(&self) -> TextureCreationOptions<'a>
 
fn clone(&self) -> TextureCreationOptions<'a>
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<'de, 'a> Deserialize<'de> for TextureCreationOptions<'a>
 
impl<'de, 'a> Deserialize<'de> for TextureCreationOptions<'a>
§fn deserialize<__D>(
    __deserializer: __D
) -> Result<TextureCreationOptions<'a>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<TextureCreationOptions<'a>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<(u32, u32)> for TextureCreationOptions<'_>
 
impl From<(u32, u32)> for TextureCreationOptions<'_>
§fn from(_: (u32, u32)) -> TextureCreationOptions<'_>
 
fn from(_: (u32, u32)) -> TextureCreationOptions<'_>
Converts to this type from the input type.
§impl<'a> Serialize for TextureCreationOptions<'a>
 
impl<'a> Serialize for TextureCreationOptions<'a>
§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
Auto Trait Implementations§
impl<'a> Freeze for TextureCreationOptions<'a>
impl<'a> RefUnwindSafe for TextureCreationOptions<'a>
impl<'a> Send for TextureCreationOptions<'a>
impl<'a> Sync for TextureCreationOptions<'a>
impl<'a> Unpin for TextureCreationOptions<'a>
impl<'a> UnwindSafe for TextureCreationOptions<'a>
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