pub struct TVLeaf<Tag, C>(pub Tag, pub C);Expand description
One of the dependent family of combinators
Leaf node for tag-value tree.
Tuple Fields§
§0: Tag§1: CTrait Implementations§
Source§impl<Tag, C: Consistency> DepCombinator for TVLeaf<Tag, C>
impl<Tag, C: Consistency> DepCombinator for TVLeaf<Tag, C>
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§type Val = <C as Consistency>::Val
type Val = <C as Consistency>::Val
The type of values consumed/produced by the body combinator.
Source§fn recover_inv(&self) -> bool
fn recover_inv(&self) -> bool
impl<Tag: Copy, C: Copy> Copy for TVLeaf<Tag, C>
Auto Trait Implementations§
impl<Tag, C> Freeze for TVLeaf<Tag, C>
impl<Tag, C> RefUnwindSafe for TVLeaf<Tag, C>where
Tag: RefUnwindSafe,
C: RefUnwindSafe,
impl<Tag, C> Send for TVLeaf<Tag, C>
impl<Tag, C> Sync for TVLeaf<Tag, C>
impl<Tag, C> Unpin for TVLeaf<Tag, C>
impl<Tag, C> UnsafeUnpin for TVLeaf<Tag, C>where
Tag: UnsafeUnpin,
C: UnsafeUnpin,
impl<Tag, C> UnwindSafe for TVLeaf<Tag, C>where
Tag: UnwindSafe,
C: 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