Struct pipewire_wrapper::spa::pod::object::format::VideoColorRange
source · #[repr(transparent)]pub struct VideoColorRange { /* private fields */ }
Implementations§
source§impl VideoColorRange
impl VideoColorRange
pub const UNKNOWN: VideoColorRange = _
pub const RANGE_0_255: VideoColorRange = _
pub const RANGE_16_235: VideoColorRange = _
Trait Implementations§
source§impl Clone for VideoColorRange
impl Clone for VideoColorRange
source§fn clone(&self) -> VideoColorRange
fn clone(&self) -> VideoColorRange
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 VideoColorRange
impl Debug for VideoColorRange
source§impl From<VideoColorRange> for spa_video_color_range
impl From<VideoColorRange> for spa_video_color_range
source§fn from(value: VideoColorRange) -> Self
fn from(value: VideoColorRange) -> Self
Converts to this type from the input type.
source§impl From<u32> for VideoColorRange
impl From<u32> for VideoColorRange
source§fn from(value: spa_video_color_range) -> Self
fn from(value: spa_video_color_range) -> Self
Converts to this type from the input type.
source§impl PartialEq<VideoColorRange> for VideoColorRange
impl PartialEq<VideoColorRange> for VideoColorRange
source§fn eq(&self, other: &VideoColorRange) -> bool
fn eq(&self, other: &VideoColorRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PodIdType for VideoColorRange
impl PodIdType for VideoColorRange
fn to_alloc_pod(&self) -> AllocPod<PodIdRef<Self>>
source§impl RawWrapper for VideoColorRange
impl RawWrapper for VideoColorRange
source§fn as_raw_ptr(&self) -> *mut Self::CType
fn as_raw_ptr(&self) -> *mut Self::CType
Raw ptr to the external type
source§fn from_raw(raw: Self::CType) -> Self
fn from_raw(raw: Self::CType) -> Self
Creates wrapper from the external value, can be use when external type has no raw pointers.
source§unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
unsafe fn mut_from_raw_ptr<'lft>(raw: *mut Self::CType) -> &'lft mut Self
Cast external pointer to the borrowed mutable wrapper.
Panic when pointer is null.
Lifetime is not reliable and should be guaranteed explicitly. Read more
impl Copy for VideoColorRange
impl Eq for VideoColorRange
impl StructuralEq for VideoColorRange
impl StructuralPartialEq for VideoColorRange
Auto Trait Implementations§
impl RefUnwindSafe for VideoColorRange
impl Send for VideoColorRange
impl Sync for VideoColorRange
impl Unpin for VideoColorRange
impl UnwindSafe for VideoColorRange
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