pub struct StorageAssertions<'a> { /* private fields */ }Expand description
Storage assertions
Implementations§
Source§impl<'a> StorageAssertions<'a>
impl<'a> StorageAssertions<'a>
pub fn new(storage: &'a MockStorage) -> Self
pub fn contains(&self, key: &[u8]) -> bool
pub fn assert_contains(&self, key: &[u8])
pub fn assert_not_contains(&self, key: &[u8])
pub fn assert_value(&self, key: &[u8], expected: &[u8])
pub fn get(&self, key: &[u8]) -> Option<Vec<u8>>
Auto Trait Implementations§
impl<'a> Freeze for StorageAssertions<'a>
impl<'a> RefUnwindSafe for StorageAssertions<'a>
impl<'a> Send for StorageAssertions<'a>
impl<'a> Sync for StorageAssertions<'a>
impl<'a> Unpin for StorageAssertions<'a>
impl<'a> UnsafeUnpin for StorageAssertions<'a>
impl<'a> UnwindSafe for StorageAssertions<'a>
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