#[non_exhaustive]#[repr(u8)]pub enum TagClass {
Phase = 1,
Span = 2,
Asset = 3,
Other = 0,
}Expand description
What a memory tag names (ADR-0046 §6): the heap counter counts each
block under the innermost tag entered when it was allocated. Its number
is the class a backend’s counter keeps with each name
(MemoryScopes::tag); Other is 0, the class of the counter’s own
other and overflow.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Phase = 1
A phase of the frame: load, update, draw, paint, perf,
and app for the rest of App’s frame.
Span = 2
A span the game marked (Ctx::span).
Asset = 3
An asset kind being decoded: image, palette, …
Other = 0
None of those: other, what is allocated outside any tag, and
overflow, the names past the counter’s table.
Implementations§
Trait Implementations§
impl Copy for TagClass
Source§impl<'de> Deserialize<'de> for TagClass
impl<'de> Deserialize<'de> for TagClass
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 TagClass
Source§impl JsonSchema for TagClass
impl JsonSchema for TagClass
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 moreimpl StructuralPartialEq for TagClass
Auto Trait Implementations§
impl Freeze for TagClass
impl RefUnwindSafe for TagClass
impl Send for TagClass
impl Sync for TagClass
impl Unpin for TagClass
impl UnsafeUnpin for TagClass
impl UnwindSafe for TagClass
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