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 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 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§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