pub struct FormatCostKey {
pub pixel_format: Option<PixelFormat>,
pub pixel_format_modifier: Option<PixelFormatModifier>,
pub buffer_usage_bits: Option<BufferUsage>,
}Expand description
Entries which have the same pixel_format, pixel_format_modifier, and required_usage_bits as a previous entry will override that previous entry. For matching purposes, an absent pixel_format_modifier matches LINEAR, and an absent required_buffer_usage_bits matches all-0 usage bits.
Fields§
§pixel_format: Option<PixelFormat>§pixel_format_modifier: Option<PixelFormatModifier>§buffer_usage_bits: Option<BufferUsage>Trait Implementations§
Source§impl Clone for FormatCostKey
impl Clone for FormatCostKey
Source§fn clone(&self) -> FormatCostKey
fn clone(&self) -> FormatCostKey
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 Debug for FormatCostKey
impl Debug for FormatCostKey
Source§impl Default for FormatCostKey
impl Default for FormatCostKey
Source§fn default() -> FormatCostKey
fn default() -> FormatCostKey
Returns the “default value” for a type. Read more
Source§impl<'a, ___E> Encode<FormatCostKey<'static>, ___E> for &'a FormatCostKeywhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<FormatCostKey<'static>, ___E> for &'a FormatCostKeywhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<FormatCostKey<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<FormatCostKey<'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<FormatCostKey<'static>, ___E> for FormatCostKeywhere
___E: Encoder + ?Sized,
impl<___E> Encode<FormatCostKey<'static>, ___E> for FormatCostKeywhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<FormatCostKey<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<FormatCostKey<'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<FormatCostKey<'de>> for FormatCostKey
impl<'de> FromWire<FormatCostKey<'de>> for FormatCostKey
Source§fn from_wire(wire_: FormatCostKey<'de>) -> Self
fn from_wire(wire_: FormatCostKey<'de>) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<FormatCostKey<'de>> for FormatCostKey
impl<'de> FromWireRef<FormatCostKey<'de>> for FormatCostKey
Source§fn from_wire_ref(wire: &FormatCostKey<'de>) -> Self
fn from_wire_ref(wire: &FormatCostKey<'de>) -> Self
Converts the given reference to this type.
Source§impl Hash for FormatCostKey
impl Hash for FormatCostKey
Source§impl Ord for FormatCostKey
impl Ord for FormatCostKey
Source§fn cmp(&self, other: &FormatCostKey) -> Ordering
fn cmp(&self, other: &FormatCostKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FormatCostKey
impl PartialEq for FormatCostKey
Source§fn eq(&self, other: &FormatCostKey) -> bool
fn eq(&self, other: &FormatCostKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FormatCostKey
impl PartialOrd for FormatCostKey
impl Copy for FormatCostKey
impl Eq for FormatCostKey
impl StructuralPartialEq for FormatCostKey
Auto Trait Implementations§
impl Freeze for FormatCostKey
impl RefUnwindSafe for FormatCostKey
impl Send for FormatCostKey
impl Sync for FormatCostKey
impl Unpin for FormatCostKey
impl UnsafeUnpin for FormatCostKey
impl UnwindSafe for FormatCostKey
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§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]