#[repr(transparent)]pub struct SDL_ColorRange(pub c_uint);Expand description
Colorspace color range, as described by https://www.itu.int/rec/R-REC-BT.2100-2-201807-I/en
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
UNKNOWN | SDL_COLOR_RANGE_UNKNOWN | |
LIMITED | SDL_COLOR_RANGE_LIMITED | Narrow range, e.g. 16-235 for 8-bit RGB and luma, and 16-240 for 8-bit chroma |
FULL | SDL_COLOR_RANGE_FULL | Full range, e.g. 0-255 for 8-bit RGB and luma, and 1-255 for 8-bit chroma |
Tuple Fields§
§0: c_uintImplementations§
Trait Implementations§
Source§impl Clone for SDL_ColorRange
impl Clone for SDL_ColorRange
Source§fn clone(&self) -> SDL_ColorRange
fn clone(&self) -> SDL_ColorRange
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 SDL_ColorRange
Available on crate feature debug-impls only.
impl Debug for SDL_ColorRange
Available on crate feature
debug-impls only.Source§impl Default for SDL_ColorRange
impl Default for SDL_ColorRange
Source§fn default() -> SDL_ColorRange
fn default() -> SDL_ColorRange
Returns the “default value” for a type. Read more
Source§impl From<SDL_ColorRange> for c_uint
impl From<SDL_ColorRange> for c_uint
Source§fn from(value: SDL_ColorRange) -> Self
fn from(value: SDL_ColorRange) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_ColorRange
Available on crate feature metadata only.
impl GroupMetadata for SDL_ColorRange
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_ColorRange
impl Hash for SDL_ColorRange
Source§impl Ord for SDL_ColorRange
impl Ord for SDL_ColorRange
Source§fn cmp(&self, other: &SDL_ColorRange) -> Ordering
fn cmp(&self, other: &SDL_ColorRange) -> 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<SDL_ColorRange> for c_uint
impl PartialEq<SDL_ColorRange> for c_uint
Source§impl PartialEq<u32> for SDL_ColorRange
impl PartialEq<u32> for SDL_ColorRange
Source§impl PartialEq for SDL_ColorRange
impl PartialEq for SDL_ColorRange
Source§impl PartialOrd for SDL_ColorRange
impl PartialOrd for SDL_ColorRange
impl Copy for SDL_ColorRange
impl Eq for SDL_ColorRange
impl StructuralPartialEq for SDL_ColorRange
Auto Trait Implementations§
impl Freeze for SDL_ColorRange
impl RefUnwindSafe for SDL_ColorRange
impl Send for SDL_ColorRange
impl Sync for SDL_ColorRange
impl Unpin for SDL_ColorRange
impl UnwindSafe for SDL_ColorRange
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