Struct wgpu_core::track::InvalidUse
source · pub struct InvalidUse<T> {
current_state: T,
new_state: T,
}
Expand description
Pretty print helper that shows helpful descriptions of a conflicting usage.
Fields§
§current_state: T
§new_state: T
Trait Implementations§
source§impl<T: Clone> Clone for InvalidUse<T>
impl<T: Clone> Clone for InvalidUse<T>
source§fn clone(&self) -> InvalidUse<T>
fn clone(&self) -> InvalidUse<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for InvalidUse<T>
impl<T: Debug> Debug for InvalidUse<T>
source§impl<T: ResourceUses> Display for InvalidUse<T>
impl<T: ResourceUses> Display for InvalidUse<T>
source§impl<T: PartialEq> PartialEq for InvalidUse<T>
impl<T: PartialEq> PartialEq for InvalidUse<T>
source§fn eq(&self, other: &InvalidUse<T>) -> bool
fn eq(&self, other: &InvalidUse<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for InvalidUse<T>
impl<T> StructuralPartialEq for InvalidUse<T>
Auto Trait Implementations§
impl<T> Freeze for InvalidUse<T>where
T: Freeze,
impl<T> RefUnwindSafe for InvalidUse<T>where
T: RefUnwindSafe,
impl<T> Send for InvalidUse<T>where
T: Send,
impl<T> Sync for InvalidUse<T>where
T: Sync,
impl<T> Unpin for InvalidUse<T>where
T: Unpin,
impl<T> UnwindSafe for InvalidUse<T>where
T: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.