pub struct VideoMasteringDisplayInfo(/* private fields */);
Implementations§
source§impl VideoMasteringDisplayInfo
impl VideoMasteringDisplayInfo
pub fn new( display_primaries: [VideoMasteringDisplayInfoCoordinate; 3], white_point: VideoMasteringDisplayInfoCoordinate, max_display_mastering_luminance: u32, min_display_mastering_luminance: u32, ) -> Self
pub fn display_primaries(&self) -> [VideoMasteringDisplayInfoCoordinate; 3]
pub fn set_display_primaries( &mut self, display_primaries: [VideoMasteringDisplayInfoCoordinate; 3], )
pub fn white_point(&self) -> VideoMasteringDisplayInfoCoordinate
pub fn set_white_point( &mut self, white_point: VideoMasteringDisplayInfoCoordinate, )
pub fn max_display_mastering_luminance(&self) -> u32
pub fn set_max_display_mastering_luminance( &mut self, max_display_mastering_luminance: u32, )
pub fn min_display_mastering_luminance(&self) -> u32
pub fn set_min_display_mastering_luminance( &mut self, min_display_mastering_luminance: u32, )
pub fn add_to_caps(&self, caps: &mut CapsRef)
pub fn from_caps(caps: &CapsRef) -> Result<Self, BoolError>
Trait Implementations§
source§impl Clone for VideoMasteringDisplayInfo
impl Clone for VideoMasteringDisplayInfo
source§fn clone(&self) -> VideoMasteringDisplayInfo
fn clone(&self) -> VideoMasteringDisplayInfo
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 VideoMasteringDisplayInfo
impl Debug for VideoMasteringDisplayInfo
source§impl Display for VideoMasteringDisplayInfo
impl Display for VideoMasteringDisplayInfo
source§impl FromStr for VideoMasteringDisplayInfo
impl FromStr for VideoMasteringDisplayInfo
source§impl<'a> TryFrom<&'a CapsRef> for VideoMasteringDisplayInfo
impl<'a> TryFrom<&'a CapsRef> for VideoMasteringDisplayInfo
impl Copy for VideoMasteringDisplayInfo
impl Eq for VideoMasteringDisplayInfo
Auto Trait Implementations§
impl Freeze for VideoMasteringDisplayInfo
impl RefUnwindSafe for VideoMasteringDisplayInfo
impl !Send for VideoMasteringDisplayInfo
impl !Sync for VideoMasteringDisplayInfo
impl Unpin for VideoMasteringDisplayInfo
impl UnwindSafe for VideoMasteringDisplayInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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