pub struct ColorSpace { /* private fields */ }Expand description
The wire type corresponding to ColorSpace.
Implementations§
Source§impl ColorSpace
impl ColorSpace
pub const INVALID: ColorSpace
pub const SRGB: ColorSpace
pub const REC601_NTSC: ColorSpace
pub const REC601_NTSC_FULL_RANGE: ColorSpace
pub const REC601_PAL: ColorSpace
pub const REC601_PAL_FULL_RANGE: ColorSpace
pub const REC709: ColorSpace
pub const REC2020: ColorSpace
pub const REC2100: ColorSpace
pub const PASSTHROUGH: ColorSpace
pub const DO_NOT_CARE: ColorSpace
Trait Implementations§
Source§impl Clone for ColorSpace
impl Clone for ColorSpace
Source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Constrained for ColorSpace
impl Constrained for ColorSpace
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, ColorSpace>,
_: <ColorSpace as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, ColorSpace>, _: <ColorSpace as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for ColorSpace
impl Debug for ColorSpace
Source§impl<___D> Decode<___D> for ColorSpacewhere
___D: ?Sized,
impl<___D> Decode<___D> for ColorSpacewhere
___D: ?Sized,
Source§impl<'a, ___E> Encode<ColorSpace, ___E> for &'a ColorSpacewhere
___E: ?Sized,
impl<'a, ___E> Encode<ColorSpace, ___E> for &'a ColorSpacewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ColorSpace>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ColorSpace>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<ColorSpace, ___E> for ColorSpacewhere
___E: ?Sized,
impl<___E> Encode<ColorSpace, ___E> for ColorSpacewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ColorSpace>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ColorSpace>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<ColorSpace> for ColorSpace
impl From<ColorSpace> for ColorSpace
Source§fn from(wire: ColorSpace) -> ColorSpace
fn from(wire: ColorSpace) -> ColorSpace
Converts to this type from the input type.
Source§impl From<ColorSpace> for ColorSpace
impl From<ColorSpace> for ColorSpace
Source§fn from(natural: ColorSpace) -> ColorSpace
fn from(natural: ColorSpace) -> ColorSpace
Converts to this type from the input type.
Source§impl FromWire<ColorSpace> for ColorSpace
impl FromWire<ColorSpace> for ColorSpace
Source§fn from_wire(wire: ColorSpace) -> ColorSpace
fn from_wire(wire: ColorSpace) -> ColorSpace
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<ColorSpace> for ColorSpace
impl FromWireRef<ColorSpace> for ColorSpace
Source§fn from_wire_ref(wire: &ColorSpace) -> ColorSpace
fn from_wire_ref(wire: &ColorSpace) -> ColorSpace
Converts the given reference to this type.
Source§impl IntoNatural for ColorSpace
impl IntoNatural for ColorSpace
Source§type Natural = ColorSpace
type Natural = ColorSpace
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl PartialEq for ColorSpace
impl PartialEq for ColorSpace
Source§fn eq(&self, other: &ColorSpace) -> bool
fn eq(&self, other: &ColorSpace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Wire for ColorSpace
impl Wire for ColorSpace
Source§type Narrowed<'de> = ColorSpace
type Narrowed<'de> = ColorSpace
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<ColorSpace>)
fn zero_padding(_: &mut MaybeUninit<ColorSpace>)
Writes zeroes to the padding for this type, if any.
impl Copy for ColorSpace
impl Eq for ColorSpace
impl StructuralPartialEq for ColorSpace
Auto Trait Implementations§
impl Freeze for ColorSpace
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnsafeUnpin for ColorSpace
impl UnwindSafe for ColorSpace
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,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]