Realm

vk · Enums · C1

2 public declarations with native signatures and source-owned contracts.

EnRustExperimental

Envk::CapabilityRequirement

pub enum CapabilityRequirement { Core(u32), InstanceExtension(&'static CStr), DeviceExtension(&'static CStr), }
A registry version or enabled-extension requirement; not feature-bit validation.

Contract

A registry version or enabled-extension requirement; not feature-bit validation.

Variants

Core

Variant
Core(u32)
No public source comment is attached to this declaration.

InstanceExtension

Variant
InstanceExtension(&'static CStr)
No public source comment is attached to this declaration.

DeviceExtension

Variant
DeviceExtension(&'static CStr)
No public source comment is attached to this declaration.

Methods and associated items

clone

Method
fn clone(&self) -> CapabilityRequirement
Returns a duplicate of the value. Read more

fmt

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

Envk::ConstructionError

pub enum ConstructionError { CountOverflow { field: &'static str, count: usize, }, LengthMismatch { field: &'static str, expected: usize, actual: usize, }, AlreadyLinked, UnexpectedStructureType { expected: StructureType, actual: StructureType, }, }
A checked host record could not be constructed. No native operation occurred.

Contract

A checked host record could not be constructed. No native operation occurred.

Fields

CountOverflow.field.field

Field
field: &'static str
No public source comment is attached to this declaration.

CountOverflow.field.count

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

LengthMismatch.field.field

Field
field: &'static str
No public source comment is attached to this declaration.

LengthMismatch.field.expected

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

LengthMismatch.field.actual

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

UnexpectedStructureType.field.expected

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

UnexpectedStructureType.field.actual

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

Variants

CountOverflow

Variant
CountOverflow

A borrowed array exceeds its native count field’s integer width.

LengthMismatch

Variant
LengthMismatch

Parallel arrays do not have the same native count.

AlreadyLinked

Variant
AlreadyLinked

A single-node insertion received an already-linked node.

UnexpectedStructureType

Variant
UnexpectedStructureType

A public native header no longer has its canonical structure tag.

Methods and associated items

fmt

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

fmt-1

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

from

Method
fn from(error: ConstructionError) -> Self
Converts to this type from the input type.

from-1

Method
fn from(error: ConstructionError) -> Self
Converts to this type from the input type.

eq

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