Realm

vk::mem · Structs · H1

One heap at the explicit snapshot boundary. Budget/usage can change immediately.

StRustExperimental

Stvk::mem::HeapBudget

pub struct HeapBudget { pub size: u64, pub limit: u64, pub budget: u64, pub usage: u64, pub native_bytes: u64, }
One heap at the explicit snapshot boundary. Budget/usage can change immediately.

Contract

One heap at the explicit snapshot boundary. Budget/usage can change immediately.

Fields

size

Field
size: u64
No public source comment is attached to this declaration.

limit

Field
limit: u64
No public source comment is attached to this declaration.

budget

Field
budget: u64
No public source comment is attached to this declaration.

usage

Field
usage: u64
No public source comment is attached to this declaration.

native_bytes

Field
native_bytes: u64
No public source comment is attached to this declaration.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default state.

set_size

Method
pub fn set_size(self, value: u64) -> Self

Set size and return the updated record.

set_limit

Method
pub fn set_limit(self, value: u64) -> Self

Set limit and return the updated record.

set_budget

Method
pub fn set_budget(self, value: u64) -> Self

Set budget and return the updated record.

set_usage

Method
pub fn set_usage(self, value: u64) -> Self

Set usage and return the updated record.

set_native_bytes

Method
pub fn set_native_bytes(self, value: u64) -> Self

Set native_bytes and return the updated record.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

eq

Method
fn eq(&self, other: &HeapBudget) -> bool
Tests for self and other values to be equal, and is used by ==.