pub struct ObjectTable<K: MoveType, V: MoveType> {
pub id: UID,
pub size: u64,
/* private fields */
}
Fields§
§id: UID
the ID of this table
size: u64
the number of key-value pairs in the table
Implementations§
Source§impl<K: MoveType, V: MoveType> ObjectTable<K, V>
impl<K: MoveType, V: MoveType> ObjectTable<K, V>
Source§impl<K: MoveType, V: MoveType> ObjectTable<K, V>
impl<K: MoveType, V: MoveType> ObjectTable<K, V>
pub fn move_instance( self, k: <K as MoveType>::TypeTag, v: <V as MoveType>::TypeTag, ) -> MoveInstance<Self>
pub fn type_( k: <K as MoveType>::TypeTag, v: <V as MoveType>::TypeTag, ) -> ObjectTableTypeTag<K, V>
Trait Implementations§
Source§impl<K: Clone + MoveType, V: Clone + MoveType> Clone for ObjectTable<K, V>
impl<K: Clone + MoveType, V: Clone + MoveType> Clone for ObjectTable<K, V>
Source§fn clone(&self) -> ObjectTable<K, V>
fn clone(&self) -> ObjectTable<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de, K: MoveType, V: MoveType> Deserialize<'de> for ObjectTable<K, V>
impl<'de, K: MoveType, V: MoveType> Deserialize<'de> for ObjectTable<K, V>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<K: MoveType, V: MoveType> MoveStruct for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> MoveStruct for ObjectTable<K, V>
type StructTag = ObjectTableTypeTag<K, V>
Source§impl<K: MoveType, V: MoveType> MoveType for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> MoveType for ObjectTable<K, V>
Source§impl<K: MoveType, V: MoveType> StaticAddress for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> StaticAddress for ObjectTable<K, V>
Source§impl<K: MoveType, V: MoveType> StaticModule for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> StaticModule for ObjectTable<K, V>
fn module() -> Identifier
Source§impl<K: MoveType, V: MoveType> StaticName for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> StaticName for ObjectTable<K, V>
fn name() -> Identifier
Source§impl<K: MoveType + StaticTypeTag, V: MoveType + StaticTypeTag> StaticTypeParams for ObjectTable<K, V>
impl<K: MoveType + StaticTypeTag, V: MoveType + StaticTypeTag> StaticTypeParams for ObjectTable<K, V>
fn type_params() -> Vec<TypeTag>
impl<K: Eq + MoveType, V: Eq + MoveType> Eq for ObjectTable<K, V>
impl<K: MoveType, V: MoveType> StructuralPartialEq for ObjectTable<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ObjectTable<K, V>
impl<K, V> RefUnwindSafe for ObjectTable<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ObjectTable<K, V>
impl<K, V> Sync for ObjectTable<K, V>
impl<K, V> Unpin for ObjectTable<K, V>
impl<K, V> UnwindSafe for ObjectTable<K, V>where
K: UnwindSafe,
V: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more