vk::mem · Structs · H1
One heap at the explicit snapshot boundary. Budget/usage can change immediately.
StRustExperimental
Stvk::mem::HeapBudget
Contract
One heap at the explicit snapshot boundary. Budget/usage can change immediately.
Fields
size
Field
size: u64No public source comment is attached to this declaration.
limit
Field
limit: u64No public source comment is attached to this declaration.
budget
Field
budget: u64No public source comment is attached to this declaration.
usage
Field
usage: u64No public source comment is attached to this declaration.
native_bytes
Field
native_bytes: u64No public source comment is attached to this declaration.
Methods and associated items
new
Method
Construct the record with its default state.
set_size
Method
Set size and return the updated record.
set_limit
Method
Set limit and return the updated record.
set_budget
Method
Set budget and return the updated record.
set_usage
Method
Set usage and return the updated record.
set_native_bytes
Method
Set native_bytes and return the updated record.
clone
Method
Returns a duplicate of the value. Read more
fmt
Method
Formats the value using the given formatter. Read more
default
Method
Returns the “default value” for a type. Read more
eq
Method
Tests for
self and other values to be equal, and is used by ==.