Struct lotus_script::graphics::textures::TextureCreationOptions
source · pub struct TextureCreationOptions<'a> {
pub width: u32,
pub height: u32,
pub data: Option<Cow<'a, [u8]>>,
}
Expand description
Options for creating a texture.
Fields§
§width: u32
The width of the texture.
height: u32
The height of the texture.
data: Option<Cow<'a, [u8]>>
The data of the texture. This is currently a placeholder for future use.
Trait Implementations§
source§impl<'a> Clone for TextureCreationOptions<'a>
impl<'a> Clone for TextureCreationOptions<'a>
source§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 moresource§impl<'de, 'a> Deserialize<'de> for TextureCreationOptions<'a>
impl<'de, 'a> Deserialize<'de> for TextureCreationOptions<'a>
source§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
source§impl<'a> Serialize for TextureCreationOptions<'a>
impl<'a> Serialize for TextureCreationOptions<'a>
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
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