Module frac
vstd
Module frac
Module Items
Structs
In vstd::
tokens
Modules
frac
Structs
InstanceId
MapToken
MultisetToken
SetToken
Traits
CountToken
ElementToken
KeyValueToken
MonotonicCountToken
SimpleToken
UniqueElementToken
UniqueKeyValueToken
UniqueSimpleToken
UniqueValueToken
ValueToken
Functions
bool_value_eq_option_token
bool_value_le_option_token
option_value_eq_option_token
option_value_le_option_token
vstd
::
tokens
Module
frac
Copy item path
Settings
Help
Summary
Source
Structs
§
Empty
Token that represents the “empty” state of a fractional resource system. See
Frac
for more information.
Frac
Token that maintains fractional access to some resource. This allows multiple clients to obtain shared references to some resource via
borrow
.
Frac
Ghost
An implementation of a resource for fractional ownership of a ghost variable.
Ghost
Var
See
GhostVarAuth<T>
for more information.
Ghost
VarAuth
GhostVarAuth<T>
is one half of a pair of tokens—the other being
GhostVar<T>
. These tokens each track a value, and they can only be allocated or updated together. Thus, the pair of tokens always agree on the value, but they can be owned separately.