#[non_exhaustive]pub struct MemoryReading {
pub heap: HeapCounts,
}Expand description
What a backend reads of the device’s memory at a frame’s end
(shuyi_platform::Platform::memory). Build it with
MemoryReading::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.heap: HeapCountsThe heap’s counts.
Implementations§
Source§impl MemoryReading
impl MemoryReading
Sourcepub const fn new(heap: HeapCounts) -> Self
pub const fn new(heap: HeapCounts) -> Self
A reading of the heap’s counts heap.
Trait Implementations§
Source§impl Clone for MemoryReading
impl Clone for MemoryReading
Source§fn clone(&self) -> MemoryReading
fn clone(&self) -> MemoryReading
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 moreimpl Copy for MemoryReading
Source§impl Debug for MemoryReading
impl Debug for MemoryReading
Source§impl Default for MemoryReading
impl Default for MemoryReading
Source§fn default() -> MemoryReading
fn default() -> MemoryReading
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryReading
impl<'de> Deserialize<'de> for MemoryReading
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryReading
Source§impl JsonSchema for MemoryReading
impl JsonSchema for MemoryReading
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MemoryReading
impl PartialEq for MemoryReading
Source§impl Serialize for MemoryReading
impl Serialize for MemoryReading
impl StructuralPartialEq for MemoryReading
Auto Trait Implementations§
impl Freeze for MemoryReading
impl RefUnwindSafe for MemoryReading
impl Send for MemoryReading
impl Sync for MemoryReading
impl Unpin for MemoryReading
impl UnsafeUnpin for MemoryReading
impl UnwindSafe for MemoryReading
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