pub struct PixelFormat { /* private fields */ }Expand description
The wire type corresponding to PixelFormat.
Implementations§
Source§impl PixelFormat
impl PixelFormat
pub const INVALID: PixelFormat
pub const R8_G8_B8_A8: PixelFormat
pub const R8_G8_B8_X8: PixelFormat
pub const B8_G8_R8_A8: PixelFormat
pub const B8_G8_R8_X8: PixelFormat
pub const I420: PixelFormat
pub const M420: PixelFormat
pub const NV12: PixelFormat
pub const YUY2: PixelFormat
pub const MJPEG: PixelFormat
pub const YV12: PixelFormat
pub const B8_G8_R8: PixelFormat
pub const R5_G6_B5: PixelFormat
pub const R3_G3_B2: PixelFormat
pub const R2_G2_B2_X2: PixelFormat
pub const L8: PixelFormat
pub const R8: PixelFormat
pub const R8_G8: PixelFormat
pub const A2_R10_G10_B10: PixelFormat
pub const A2_B10_G10_R10: PixelFormat
pub const P010: PixelFormat
pub const R8_G8_B8: PixelFormat
pub const DO_NOT_CARE: PixelFormat
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
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 PixelFormat
impl Constrained for PixelFormat
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, PixelFormat>,
_: <PixelFormat as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, PixelFormat>, _: <PixelFormat 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 PixelFormat
impl Debug for PixelFormat
Source§impl<___D> Decode<___D> for PixelFormatwhere
___D: ?Sized,
impl<___D> Decode<___D> for PixelFormatwhere
___D: ?Sized,
Source§impl<'a, ___E> Encode<PixelFormat, ___E> for &'a PixelFormatwhere
___E: ?Sized,
impl<'a, ___E> Encode<PixelFormat, ___E> for &'a PixelFormatwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PixelFormat>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PixelFormat>, _: (), ) -> 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<PixelFormat, ___E> for PixelFormatwhere
___E: ?Sized,
impl<___E> Encode<PixelFormat, ___E> for PixelFormatwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PixelFormat>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PixelFormat>, _: (), ) -> 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<PixelFormat> for PixelFormat
impl From<PixelFormat> for PixelFormat
Source§fn from(wire: PixelFormat) -> PixelFormat
fn from(wire: PixelFormat) -> PixelFormat
Converts to this type from the input type.
Source§impl From<PixelFormat> for PixelFormat
impl From<PixelFormat> for PixelFormat
Source§fn from(natural: PixelFormat) -> PixelFormat
fn from(natural: PixelFormat) -> PixelFormat
Converts to this type from the input type.
Source§impl FromWire<PixelFormat> for PixelFormat
impl FromWire<PixelFormat> for PixelFormat
Source§fn from_wire(wire: PixelFormat) -> PixelFormat
fn from_wire(wire: PixelFormat) -> PixelFormat
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<PixelFormat> for PixelFormat
impl FromWireRef<PixelFormat> for PixelFormat
Source§fn from_wire_ref(wire: &PixelFormat) -> PixelFormat
fn from_wire_ref(wire: &PixelFormat) -> PixelFormat
Converts the given reference to this type.
Source§impl IntoNatural for PixelFormat
impl IntoNatural for PixelFormat
Source§type Natural = PixelFormat
type Natural = PixelFormat
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 PixelFormat
impl PartialEq for PixelFormat
Source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Wire for PixelFormat
impl Wire for PixelFormat
Source§type Narrowed<'de> = PixelFormat
type Narrowed<'de> = PixelFormat
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<PixelFormat>)
fn zero_padding(_: &mut MaybeUninit<PixelFormat>)
Writes zeroes to the padding for this type, if any.
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
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]