pub struct FormatBits {
pub color: u8,
pub alpha: u8,
pub depth: u8,
pub stencil: u8,
}
Expand description
Description of the bits distribution of a format.
Fields§
§color: u8
Number of color bits (summed for R/G/B).
For compressed formats, this value is 0.
alpha: u8
Number of alpha bits.
For compressed formats, this value is 0.
depth: u8
Number of depth bits
stencil: u8
Number of stencil bits
Trait Implementations§
Source§impl Clone for FormatBits
impl Clone for FormatBits
Source§fn clone(&self) -> FormatBits
fn clone(&self) -> FormatBits
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 Debug for FormatBits
impl Debug for FormatBits
Source§impl Hash for FormatBits
impl Hash for FormatBits
Source§impl Ord for FormatBits
impl Ord for FormatBits
Source§fn cmp(&self, other: &FormatBits) -> Ordering
fn cmp(&self, other: &FormatBits) -> 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 FormatBits
impl PartialEq for FormatBits
Source§impl PartialOrd for FormatBits
impl PartialOrd for FormatBits
impl Copy for FormatBits
impl Eq for FormatBits
impl StructuralPartialEq for FormatBits
Auto Trait Implementations§
impl Freeze for FormatBits
impl RefUnwindSafe for FormatBits
impl Send for FormatBits
impl Sync for FormatBits
impl Unpin for FormatBits
impl UnwindSafe for FormatBits
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