pub struct VoidTag<Tag>(pub PhantomData<Tag>);Expand description
One of the dependent family of combinators
Typically used in the “uninhabited” branch of a TVOr chain.
Tuple Fields§
§0: PhantomData<Tag>Trait Implementations§
Source§impl<Tag> DepCombinator for VoidTag<Tag>
impl<Tag> DepCombinator for VoidTag<Tag>
Source§open spec fn recover(&self, value: Self::Val) -> Self::Key
open spec fn recover(&self, value: Self::Val) -> Self::Key
{
use vstd::pervasive::arbitrary;
arbitrary::<Tag>()
}Source§proof fn lemma_recover_consistent(&self, _key: Self::Key, value: Self::Val)
proof fn lemma_recover_consistent(&self, _key: Self::Key, value: Self::Val)
Source§type Key = Tag
type Key = Tag
The type of keys parsed by the head combinator/to be recovered during serialization.
Source§fn recover_inv(&self) -> bool
fn recover_inv(&self) -> bool
Auto Trait Implementations§
impl<Tag> Freeze for VoidTag<Tag>
impl<Tag> RefUnwindSafe for VoidTag<Tag>where
Tag: RefUnwindSafe,
impl<Tag> Send for VoidTag<Tag>where
Tag: Send,
impl<Tag> Sync for VoidTag<Tag>where
Tag: Sync,
impl<Tag> Unpin for VoidTag<Tag>where
Tag: Unpin,
impl<Tag> UnsafeUnpin for VoidTag<Tag>
impl<Tag> UnwindSafe for VoidTag<Tag>where
Tag: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more