Realm

vk::mem · Structs · B1

1 public declaration with native signatures and source-owned contracts.

StRustExperimental

Stvk::mem::BudgetSnapshot

Fields

source

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

heap_count

Field
heap_count: u32
No public source comment is attached to this declaration.

heaps

Field
heaps: [HeapBudget; 16]
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_source

Method
pub fn set_source(self, value: BudgetSource) -> Self

Set source and return the updated record.

set_heap_count

Method
pub fn set_heap_count(self, value: u32) -> Self

Set heap_count and return the updated record.

set_heaps

Method
pub fn set_heaps(self, value: [HeapBudget; 16]) -> Self

Set heaps and return the updated record.

fmt

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

default

Method
fn default() -> BudgetSnapshot
Returns the “default value” for a type. Read more

eq

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