Struct move_core_types::language_storage::ModuleId
source · pub struct ModuleId { /* private fields */ }
Expand description
Represents the initial key into global storage where we first index by the address, and then the struct tag
Implementations§
source§impl ModuleId
impl ModuleId
pub fn new(address: AccountAddress, name: Identifier) -> Self
pub fn name(&self) -> &IdentStr
pub fn address(&self) -> &AccountAddress
pub fn access_vector(&self) -> Vec<u8> ⓘ
Trait Implementations§
source§impl Arbitrary for ModuleId
impl Arbitrary for ModuleId
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<AccountAddress as Arbitrary>::Strategy, <Identifier as Arbitrary>::Strategy), fn(_: (AccountAddress, Identifier)) -> ModuleId>
type Strategy = Map<(<AccountAddress as Arbitrary>::Strategy, <Identifier as Arbitrary>::Strategy), fn(_: (AccountAddress, Identifier)) -> ModuleId>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl<'de> Deserialize<'de> for ModuleId
impl<'de> Deserialize<'de> for ModuleId
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 From<ModuleId> for (AccountAddress, Identifier)
impl From<ModuleId> for (AccountAddress, Identifier)
source§impl Ord for ModuleId
impl Ord for ModuleId
source§impl PartialEq<ModuleId> for ModuleId
impl PartialEq<ModuleId> for ModuleId
source§impl PartialOrd<ModuleId> for ModuleId
impl PartialOrd<ModuleId> for ModuleId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more