pub struct TextureObject {
pub texture_format: TextFormat,
pub image: String,
pub wrap_mode: Option<WrapMode>,
pub texture_type: Option<TextType>,
pub border_color: Option<[f64; 4]>,
}Fields§
§texture_format: TextFormat§image: String§wrap_mode: Option<WrapMode>§texture_type: Option<TextType>§border_color: Option<[f64; 4]>Trait Implementations§
Source§impl Clone for TextureObject
impl Clone for TextureObject
Source§fn clone(&self) -> TextureObject
fn clone(&self) -> TextureObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureObject
impl Debug for TextureObject
Source§impl Default for TextureObject
impl Default for TextureObject
Source§fn default() -> TextureObject
fn default() -> TextureObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextureObject
impl<'de> Deserialize<'de> for TextureObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextureObject
impl PartialEq for TextureObject
Source§fn eq(&self, other: &TextureObject) -> bool
fn eq(&self, other: &TextureObject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextureObject
impl Serialize for TextureObject
impl StructuralPartialEq for TextureObject
Auto Trait Implementations§
impl Freeze for TextureObject
impl RefUnwindSafe for TextureObject
impl Send for TextureObject
impl Sync for TextureObject
impl Unpin for TextureObject
impl UnsafeUnpin for TextureObject
impl UnwindSafe for TextureObject
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