Trait vstd::tokens::SimpleToken

source ·
pub trait SimpleToken: Sized {
    // Required methods
    spec fn instance_id(&self) -> InstanceId;
    proof fn arbitrary() -> tracked s : Self;
}
Expand description

Interface for VerusSync tokens created for a field marked with the bool or persistent_bool strategy.

VerusSync StrategyField typeToken trait
boolboolUniqueSimpleToken<V>
persistent_boolboolSimpleToken<V> + Copy

The token contains no additional data; its presence indicates that the boolean field is true.

Required Methods§

source

spec fn instance_id(&self) -> InstanceId

source

proof fn arbitrary() -> tracked s : Self

Return an arbitrary token. It’s not possible to do anything interesting with this token because it doesn’t have a specified instance.

Object Safety§

This trait is not object safe.

Implementors§