#[repr(C)]pub struct TextureFlags {
pub is_opaque: bool,
pub is_video_texture: bool,
}Fields§
§is_opaque: boolWhether this texture contains an alpha component
is_video_texture: boolOptimization: use the compositor instead of OpenGL for energy optimization
Trait Implementations§
Source§impl Clone for TextureFlags
impl Clone for TextureFlags
Source§fn clone(&self) -> TextureFlags
fn clone(&self) -> TextureFlags
Returns a duplicate 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 Debug for TextureFlags
impl Debug for TextureFlags
Source§impl Default for TextureFlags
impl Default for TextureFlags
Source§fn default() -> TextureFlags
fn default() -> TextureFlags
Returns the “default value” for a type. Read more
Source§impl Hash for TextureFlags
impl Hash for TextureFlags
Source§impl Ord for TextureFlags
impl Ord for TextureFlags
Source§fn cmp(&self, other: &TextureFlags) -> Ordering
fn cmp(&self, other: &TextureFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextureFlags
impl PartialEq for TextureFlags
Source§impl PartialOrd for TextureFlags
impl PartialOrd for TextureFlags
impl Copy for TextureFlags
impl Eq for TextureFlags
impl StructuralPartialEq for TextureFlags
Auto Trait Implementations§
impl Freeze for TextureFlags
impl RefUnwindSafe for TextureFlags
impl Send for TextureFlags
impl Sync for TextureFlags
impl Unpin for TextureFlags
impl UnwindSafe for TextureFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more