pub struct TableVec<Element: MoveType> {
pub contents: Table<u64, Element>,
/* private fields */
}
Fields§
§contents: Table<u64, Element>
The contents of the table vector.
Implementations§
Source§impl<Element: MoveType> TableVec<Element>
impl<Element: MoveType> TableVec<Element>
pub fn move_instance( self, element: <Element as MoveType>::TypeTag, ) -> MoveInstance<Self>
pub fn type_( element: <Element as MoveType>::TypeTag, ) -> TableVecTypeTag<Element>
Trait Implementations§
Source§impl<'de, Element: MoveType> Deserialize<'de> for TableVec<Element>
impl<'de, Element: MoveType> Deserialize<'de> for TableVec<Element>
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<Element: MoveType> MoveStruct for TableVec<Element>
impl<Element: MoveType> MoveStruct for TableVec<Element>
type StructTag = TableVecTypeTag<Element>
Source§impl<Element: MoveType> MoveType for TableVec<Element>
impl<Element: MoveType> MoveType for TableVec<Element>
Source§impl<Element: MoveType> StaticModule for TableVec<Element>
impl<Element: MoveType> StaticModule for TableVec<Element>
fn module() -> Identifier
Source§impl<Element: MoveType> StaticName for TableVec<Element>
impl<Element: MoveType> StaticName for TableVec<Element>
fn name() -> Identifier
Source§impl<Element: MoveType + StaticTypeTag> StaticTypeParams for TableVec<Element>
impl<Element: MoveType + StaticTypeTag> StaticTypeParams for TableVec<Element>
fn type_params() -> Vec<TypeTag>
impl<Element: Eq + MoveType> Eq for TableVec<Element>
impl<Element: MoveType> StructuralPartialEq for TableVec<Element>
Auto Trait Implementations§
impl<Element> Freeze for TableVec<Element>
impl<Element> RefUnwindSafe for TableVec<Element>where
Element: RefUnwindSafe,
impl<Element> Send for TableVec<Element>where
Element: Send,
impl<Element> Sync for TableVec<Element>where
Element: Sync,
impl<Element> Unpin for TableVec<Element>where
Element: Unpin,
impl<Element> UnwindSafe for TableVec<Element>where
Element: 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