pub struct FrameAllocs(pub AllocCounts);Expand description
What the main thread allocated in the last frame: a resource of
development builds (feature dev).
A frame counts from the end of the one before it to its own end: the wait for it, its events, its ticks, the frame systems, the drawing and the asset loading. A frame system reads the frame before its own. A steady frame should allocate nothing.
Only Rust’s global allocator is counted, not what C libraries such as the GPU driver allocate themselves.
Tuple Fields§
§0: AllocCountsTrait Implementations§
Source§impl Clone for FrameAllocs
impl Clone for FrameAllocs
impl Copy for FrameAllocs
Source§impl Debug for FrameAllocs
impl Debug for FrameAllocs
Source§impl Default for FrameAllocs
impl Default for FrameAllocs
impl Eq for FrameAllocs
Source§impl PartialEq for FrameAllocs
impl PartialEq for FrameAllocs
impl StructuralPartialEq for FrameAllocs
Auto Trait Implementations§
impl Forget for FrameAllocs
impl Freeze for FrameAllocs
impl Move for FrameAllocs
impl RefUnwindSafe for FrameAllocs
impl Send for FrameAllocs
impl Sync for FrameAllocs
impl Unpin for FrameAllocs
impl UnsafeUnpin for FrameAllocs
impl UnwindSafe for FrameAllocs
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