pub struct NBytesOf<Len, Then>(pub PhantomData<Len>, pub Then);Expand description
One of the dependent family of combinators
Typically used as Implicit(U16Le, NBytesOf(inner_fmt)).
Tuple Fields§
§0: PhantomData<Len>§1: ThenTrait Implementations§
Source§impl<Len, Then> DepCombinator for NBytesOf<Len, Then>
impl<Len, Then> DepCombinator for NBytesOf<Len, Then>
Source§open spec fn recover(&self, value: Self::Val) -> Self::Key
open spec fn recover(&self, value: Self::Val) -> Self::Key
{ Len::as_self(self.1.byte_len(value)) }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 = Len
type Key = Len
The type of keys parsed by the head combinator/to be recovered during serialization.
Source§type Val = <Then as Consistency>::Val
type Val = <Then as Consistency>::Val
The type of values consumed/produced by the body combinator.
Source§fn recover_inv(&self) -> bool
fn recover_inv(&self) -> bool
Auto Trait Implementations§
impl<Len, Then> Freeze for NBytesOf<Len, Then>where
Then: Freeze,
impl<Len, Then> RefUnwindSafe for NBytesOf<Len, Then>where
Then: RefUnwindSafe,
Len: RefUnwindSafe,
impl<Len, Then> Send for NBytesOf<Len, Then>
impl<Len, Then> Sync for NBytesOf<Len, Then>
impl<Len, Then> Unpin for NBytesOf<Len, Then>
impl<Len, Then> UnsafeUnpin for NBytesOf<Len, Then>where
Then: UnsafeUnpin,
impl<Len, Then> UnwindSafe for NBytesOf<Len, Then>where
Then: UnwindSafe,
Len: 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