pub struct ContractTest<T> { /* private fields */ }Implementations§
Source§impl<T> ContractTest<T>
impl<T> ContractTest<T>
pub fn new(contract: T) -> Self
pub fn with_env(self, env: TestEnvironment) -> Self
pub fn env(&self) -> &TestEnvironment
pub fn env_mut(&mut self) -> &mut TestEnvironment
pub fn contract(&self) -> &T
pub fn contract_mut(&mut self) -> &mut T
Auto Trait Implementations§
impl<T> Freeze for ContractTest<T>where
T: Freeze,
impl<T> RefUnwindSafe for ContractTest<T>where
T: RefUnwindSafe,
impl<T> Send for ContractTest<T>where
T: Send,
impl<T> Sync for ContractTest<T>where
T: Sync,
impl<T> Unpin for ContractTest<T>where
T: Unpin,
impl<T> UnsafeUnpin for ContractTest<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ContractTest<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