pub struct ImageFormatConstraints<'de> { /* private fields */ }Expand description
The wire type corresponding to ImageFormatConstraints.
Implementations§
Source§impl<'de> ImageFormatConstraints<'de>
impl<'de> ImageFormatConstraints<'de>
pub fn pixel_format(&self) -> Option<&PixelFormat>
pub fn pixel_format_modifier(&self) -> Option<&PixelFormatModifier>
pub fn color_spaces(&self) -> Option<&Vector<'de, ColorSpace>>
pub fn min_size(&self) -> Option<&SizeU>
pub fn max_size(&self) -> Option<&SizeU>
pub fn min_bytes_per_row(&self) -> Option<&Uint32>
pub fn max_bytes_per_row(&self) -> Option<&Uint32>
pub fn max_width_times_height(&self) -> Option<&Uint64>
pub fn size_alignment(&self) -> Option<&SizeU>
pub fn display_rect_alignment(&self) -> Option<&SizeU>
pub fn required_min_size(&self) -> Option<&SizeU>
pub fn required_max_size(&self) -> Option<&SizeU>
pub fn bytes_per_row_divisor(&self) -> Option<&Uint32>
pub fn start_offset_divisor(&self) -> Option<&Uint32>
pub fn pixel_format_and_modifiers( &self, ) -> Option<&Vector<'de, PixelFormatAndModifier>>
pub fn require_bytes_per_row_at_pixel_boundary(&self) -> Option<&bool>
pub fn is_alpha_present(&self) -> Option<&bool>
pub fn required_max_size_list(&self) -> Option<&Vector<'de, SizeU>>
pub fn pad_for_block_size(&self) -> Option<&SizeU>
pub fn pad_beyond_image_size_bytes(&self) -> Option<&Uint64>
Trait Implementations§
Source§impl Constrained for ImageFormatConstraints<'_>
impl Constrained for ImageFormatConstraints<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, ImageFormatConstraints<'_>>,
_: <ImageFormatConstraints<'_> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, ImageFormatConstraints<'_>>, _: <ImageFormatConstraints<'_> 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<'de> Debug for ImageFormatConstraints<'de>
impl<'de> Debug for ImageFormatConstraints<'de>
Source§impl<'de, ___D> Decode<___D> for ImageFormatConstraints<'de>where
___D: Decoder<'de> + ?Sized,
impl<'de, ___D> Decode<___D> for ImageFormatConstraints<'de>where
___D: Decoder<'de> + ?Sized,
Source§impl<'de> Drop for ImageFormatConstraints<'de>
impl<'de> Drop for ImageFormatConstraints<'de>
Source§impl<'a, ___E> Encode<ImageFormatConstraints<'static>, ___E> for &'a ImageFormatConstraintswhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<ImageFormatConstraints<'static>, ___E> for &'a ImageFormatConstraintswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ImageFormatConstraints<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ImageFormatConstraints<'static>>, _: (), ) -> 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<ImageFormatConstraints<'static>, ___E> for ImageFormatConstraintswhere
___E: Encoder + ?Sized,
impl<___E> Encode<ImageFormatConstraints<'static>, ___E> for ImageFormatConstraintswhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ImageFormatConstraints<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ImageFormatConstraints<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<ImageFormatConstraints<'de>> for ImageFormatConstraints
impl<'de> FromWire<ImageFormatConstraints<'de>> for ImageFormatConstraints
Source§fn from_wire(wire_: ImageFormatConstraints<'de>) -> ImageFormatConstraints
fn from_wire(wire_: ImageFormatConstraints<'de>) -> ImageFormatConstraints
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<ImageFormatConstraints<'de>> for ImageFormatConstraints
impl<'de> FromWireRef<ImageFormatConstraints<'de>> for ImageFormatConstraints
Source§fn from_wire_ref(wire: &ImageFormatConstraints<'de>) -> ImageFormatConstraints
fn from_wire_ref(wire: &ImageFormatConstraints<'de>) -> ImageFormatConstraints
Converts the given reference to this type.
Source§impl<'de> IntoNatural for ImageFormatConstraints<'de>
impl<'de> IntoNatural for ImageFormatConstraints<'de>
Source§type Natural = ImageFormatConstraints
type Natural = ImageFormatConstraints
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 Wire for ImageFormatConstraints<'static>
impl Wire for ImageFormatConstraints<'static>
Source§type Narrowed<'de> = ImageFormatConstraints<'de>
type Narrowed<'de> = ImageFormatConstraints<'de>
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<ImageFormatConstraints<'static>>)
fn zero_padding(out: &mut MaybeUninit<ImageFormatConstraints<'static>>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de> Freeze for ImageFormatConstraints<'de>
impl<'de> RefUnwindSafe for ImageFormatConstraints<'de>
impl<'de> Send for ImageFormatConstraints<'de>
impl<'de> Sync for ImageFormatConstraints<'de>
impl<'de> Unpin for ImageFormatConstraints<'de>
impl<'de> UnsafeUnpin for ImageFormatConstraints<'de>
impl<'de> !UnwindSafe for ImageFormatConstraints<'de>
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
§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]