pub struct Instance<T> { /* private fields */ }
Implementations§
source§impl<T> Instance<T>
impl<T> Instance<T>
pub fn clone(&self) -> Self
pub fn id(&self) -> InstanceId
pub fn val(&self) -> T
sourcepub proof fn initialize_one(t: T, tracked param_token_storage: Option<T>) -> tracked instance : Instance<T>
pub proof fn initialize_one(t: T, tracked param_token_storage: Option<T>) -> tracked instance : Instance<T>
requires
(crate::prelude::equal(param_token_storage, Option::Some(t))),
ensures(crate::prelude::equal((instance).val(), t)),
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Instance<T>
impl<T> RefUnwindSafe for Instance<T>where
T: RefUnwindSafe,
impl<T> Send for Instance<T>
impl<T> Sync for Instance<T>
impl<T> Unpin for Instance<T>where
T: Unpin,
impl<T> UnwindSafe for Instance<T>where
T: 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