pub struct TextureInfo {
pub name: Option<String>,
pub dimensions: [i32; 2],
pub row_stride: isize,
pub channel_count: usize,
pub mip_level_count: usize,
pub channel_encoding: i32,
pub is_cube: bool,
pub has_alpha_values: bool,
pub url: Option<String>,
}Fields§
§name: Option<String>§dimensions: [i32; 2]§row_stride: isize§channel_count: usize§mip_level_count: usize§channel_encoding: i32§is_cube: bool§has_alpha_values: bool§url: Option<String>Implementations§
Source§impl TextureInfo
impl TextureInfo
pub fn channel_encoding_enum(&self) -> Option<TextureChannelEncoding>
Trait Implementations§
Source§impl Clone for TextureInfo
impl Clone for TextureInfo
Source§fn clone(&self) -> TextureInfo
fn clone(&self) -> TextureInfo
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 TextureInfo
impl Debug for TextureInfo
Source§impl<'de> Deserialize<'de> for TextureInfo
impl<'de> Deserialize<'de> for TextureInfo
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
Auto Trait Implementations§
impl Freeze for TextureInfo
impl RefUnwindSafe for TextureInfo
impl Send for TextureInfo
impl Sync for TextureInfo
impl Unpin for TextureInfo
impl UnsafeUnpin for TextureInfo
impl UnwindSafe for TextureInfo
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