pub struct CopyableStorageResource<K, V, P> { /* private fields */ }Implementations§
Source§impl<K, V, P: Protocol<K, V>> CopyableStorageResource<K, V, P>
A variant of StorageResource that implements Copy.
impl<K, V, P: Protocol<K, V>> CopyableStorageResource<K, V, P>
A variant of StorageResource that implements Copy.
Use Self::into_resource to get the underlying resource.
Sourcepub proof fn into_resource(self) -> r : StorageResource<K, V, P>
pub proof fn into_resource(self) -> r : StorageResource<K, V, P>
ensures
r.loc() == self.loc(),r.value() == self.value(),Trait Implementations§
Source§impl<K, V, P> Clone for CopyableStorageResource<K, V, P>
impl<K, V, P> Clone for CopyableStorageResource<K, V, P>
impl<K, V, P> Copy for CopyableStorageResource<K, V, P>
Auto Trait Implementations§
impl<K, V, P> Freeze for CopyableStorageResource<K, V, P>
impl<K, V, P> RefUnwindSafe for CopyableStorageResource<K, V, P>
impl<K, V, P> Send for CopyableStorageResource<K, V, P>
impl<K, V, P> Sync for CopyableStorageResource<K, V, P>
impl<K, V, P> Unpin for CopyableStorageResource<K, V, P>
impl<K, V, P> UnsafeUnpin for CopyableStorageResource<K, V, P>
impl<K, V, P> UnwindSafe for CopyableStorageResource<K, V, P>
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
Source§impl<Borrowed, VERUS_SPEC__A> BorrowSpec<Borrowed> for VERUS_SPEC__A
impl<Borrowed, VERUS_SPEC__A> BorrowSpec<Borrowed> for VERUS_SPEC__A
Source§exec fn obeys_borrow_spec() -> bool
exec fn obeys_borrow_spec() -> bool
Source§exec fn borrow_spec(&self) -> &Borrowed
exec fn borrow_spec(&self) -> &Borrowed
Source§impl<T> BorrowSpecImpl<T> for Twhere
T: ?Sized,
impl<T> BorrowSpecImpl<T> for Twhere
T: ?Sized,
Source§open spec fn obeys_borrow_spec() -> bool
open spec fn obeys_borrow_spec() -> bool
{ true }Source§open spec fn borrow_spec(&self) -> &T
open spec fn borrow_spec(&self) -> &T
{ self }Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromSpecImpl<T> for T
impl<T> FromSpecImpl<T> for T
Source§impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<A> SpecEq<&A> for Awhere
A: ?Sized,
impl<A> SpecEq<&mut A> for Awhere
A: ?Sized,
impl<A> SpecEq<A> for Awhere
A: ?Sized,
impl<A> SpecEq<Ghost<A>> for A
impl<A> SpecEq<Tracked<A>> for A
Source§impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryFrom<T>,
impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryFrom<T>,
Source§exec fn obeys_try_from_spec() -> bool
exec fn obeys_try_from_spec() -> bool
Source§impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryInto<T>,
impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryInto<T>,
Source§exec fn obeys_try_into_spec() -> bool
exec fn obeys_try_into_spec() -> bool
Source§impl<T, U> TryIntoSpecImpl<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryIntoSpecImpl<U> for Twhere
U: TryFrom<T>,
Source§open spec fn obeys_try_into_spec() -> bool
open spec fn obeys_try_into_spec() -> bool
{ <U as TryFromSpec<Self>>::obeys_try_from_spec() }