#[non_exhaustive]pub struct TagDelta {
pub class: TagClass,
pub name: Cow<'static, str>,
pub live_bytes: i64,
pub live_blocks: i64,
}Expand description
How one memory tag changed between two snapshots. Build it with
TagDelta::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.class: TagClassWhat the tag names.
name: Cow<'static, str>Its name.
live_bytes: i64How many more bytes are live under it: less than 0 for fewer.
live_blocks: i64How many more blocks are live under it: less than 0 for fewer.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagDelta
impl<'de> Deserialize<'de> for TagDelta
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 TagDelta
Source§impl JsonSchema for TagDelta
impl JsonSchema for TagDelta
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 TagDelta
Auto Trait Implementations§
impl Freeze for TagDelta
impl RefUnwindSafe for TagDelta
impl Send for TagDelta
impl Sync for TagDelta
impl Unpin for TagDelta
impl UnsafeUnpin for TagDelta
impl UnwindSafe for TagDelta
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