pub struct VersionedProof<T: Proof<A>, A: Allocator = Global> {
pub proof: T,
/* private fields */
}Expand description
Wrapper that prefixes a proof with its version and magic bytes.
Fields§
§proof: TImplementations§
Source§impl<T: Proof<A>, A: Allocator> VersionedProof<T, A>
impl<T: Proof<A>, A: Allocator> VersionedProof<T, A>
Trait Implementations§
Source§impl<T: Clone + Proof<A>, A: Clone + Allocator> Clone for VersionedProof<T, A>
impl<T: Clone + Proof<A>, A: Clone + Allocator> Clone for VersionedProof<T, A>
Source§fn clone(&self) -> VersionedProof<T, A>
fn clone(&self) -> VersionedProof<T, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Proof<A>, A: Allocator + Clone> DecodeIn<A> for VersionedProof<T, A>
impl<T: Proof<A>, A: Allocator + Clone> DecodeIn<A> for VersionedProof<T, A>
Source§fn decode_in(decoder: &mut impl Decoder, alloc: A) -> Result<Self, DecodeError>
fn decode_in(decoder: &mut impl Decoder, alloc: A) -> Result<Self, DecodeError>
See
Decode::decode for details.Source§fn decode_trailing(
decoder: &mut impl Decoder,
alloc: A,
) -> Result<Option<Self>, DecodeError>
fn decode_trailing( decoder: &mut impl Decoder, alloc: A, ) -> Result<Option<Self>, DecodeError>
See
Decode::decode_trailing for details and caveats.impl<T: Eq + Proof<A>, A: Eq + Allocator> Eq for VersionedProof<T, A>
impl<T: Proof<A>, A: Allocator> StructuralPartialEq for VersionedProof<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for VersionedProof<T, A>
impl<T, A> RefUnwindSafe for VersionedProof<T, A>where
T: RefUnwindSafe,
A: RefUnwindSafe,
impl<T, A> Send for VersionedProof<T, A>
impl<T, A> Sync for VersionedProof<T, A>
impl<T, A> Unpin for VersionedProof<T, A>
impl<T, A> UnsafeUnpin for VersionedProof<T, A>where
T: UnsafeUnpin,
A: UnsafeUnpin,
impl<T, A> UnwindSafe for VersionedProof<T, A>where
T: UnwindSafe,
A: 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