Struct wgpu_types::InternalCounter
source · pub struct InternalCounter {}
Expand description
An internal counter for debugging purposes
Internally represented as an atomic isize if the counters
feature is enabled,
or compiles to nothing otherwise.
Implementations§
source§impl InternalCounter
impl InternalCounter
sourcepub fn read(&self) -> isize
Available on non-crate feature counters
only.
pub fn read(&self) -> isize
counters
only.Get the counter’s value.
Always returns 0 if the counters
feature is not enabled.
Trait Implementations§
source§impl Clone for InternalCounter
impl Clone for InternalCounter
source§impl Debug for InternalCounter
impl Debug for InternalCounter
Auto Trait Implementations§
impl RefUnwindSafe for InternalCounter
impl Send for InternalCounter
impl Sync for InternalCounter
impl Unpin for InternalCounter
impl UnwindSafe for InternalCounter
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