#[non_exhaustive]pub struct NegotiatedFormat { /* private fields */ }Expand description
Selected negotiation candidate with its cost breakdown.
Implementations§
Source§impl NegotiatedFormat
impl NegotiatedFormat
Sourcepub const fn format(&self) -> &PixelFormat
pub const fn format(&self) -> &PixelFormat
Format at the selected index.
Sourcepub const fn cost(&self) -> FormatCost
pub const fn cost(&self) -> FormatCost
Ordering cost of the selected conversion.
Trait Implementations§
Source§impl Clone for NegotiatedFormat
impl Clone for NegotiatedFormat
Source§fn clone(&self) -> NegotiatedFormat
fn clone(&self) -> NegotiatedFormat
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 NegotiatedFormat
impl Debug for NegotiatedFormat
impl Eq for NegotiatedFormat
Source§impl PartialEq for NegotiatedFormat
impl PartialEq for NegotiatedFormat
impl StructuralPartialEq for NegotiatedFormat
Auto Trait Implementations§
impl Freeze for NegotiatedFormat
impl RefUnwindSafe for NegotiatedFormat
impl Send for NegotiatedFormat
impl Sync for NegotiatedFormat
impl Unpin for NegotiatedFormat
impl UnsafeUnpin for NegotiatedFormat
impl UnwindSafe for NegotiatedFormat
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