#[non_exhaustive]pub enum ContentType {
Generic,
Video,
Ui,
Cursor,
}Expand description
What a layer is showing, for placement priority.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic
Unclassified.
Video
Video, which benefits most from a dedicated plane.
Ui
Interface chrome.
Cursor
A cursor.
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
impl Copy for ContentType
Source§impl Debug for ContentType
impl Debug for ContentType
Source§impl Default for ContentType
impl Default for ContentType
impl Eq for ContentType
Source§impl Hash for ContentType
impl Hash for ContentType
Source§impl Ord for ContentType
impl Ord for ContentType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
Source§impl PartialOrd for ContentType
impl PartialOrd for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnsafeUnpin for ContentType
impl UnwindSafe for ContentType
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