pub struct TrackedStorageKey {
pub key: Vec<u8>,
pub has_been_read: bool,
pub has_been_written: bool,
}Expand description
Storage key with read/write tracking information.
Fields§
§key: Vec<u8>§has_been_read: bool§has_been_written: boolTrait Implementations§
Source§impl Clone for TrackedStorageKey
impl Clone for TrackedStorageKey
Source§fn clone(&self) -> TrackedStorageKey
fn clone(&self) -> TrackedStorageKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackedStorageKey
impl Debug for TrackedStorageKey
Source§impl Decode for TrackedStorageKey
impl Decode for TrackedStorageKey
Source§impl Encode for TrackedStorageKey
impl Encode for TrackedStorageKey
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike for TrackedStorageKey
impl Eq for TrackedStorageKey
Source§impl Hash for TrackedStorageKey
impl Hash for TrackedStorageKey
Source§impl Ord for TrackedStorageKey
impl Ord for TrackedStorageKey
Source§fn cmp(&self, other: &TrackedStorageKey) -> Ordering
fn cmp(&self, other: &TrackedStorageKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackedStorageKey
impl PartialEq for TrackedStorageKey
Source§impl PartialOrd for TrackedStorageKey
impl PartialOrd for TrackedStorageKey
impl StructuralPartialEq for TrackedStorageKey
Auto Trait Implementations§
impl Freeze for TrackedStorageKey
impl RefUnwindSafe for TrackedStorageKey
impl Send for TrackedStorageKey
impl Sync for TrackedStorageKey
impl Unpin for TrackedStorageKey
impl UnsafeUnpin for TrackedStorageKey
impl UnwindSafe for TrackedStorageKey
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