[−][src]Struct solana_libra_types::language_storage::ModuleId
Represents the initial key into global storage where we first index by the address, and then the struct tag
Methods
impl ModuleId
[src]
pub fn new(address: AccountAddress, name: Identifier) -> Self
[src]
pub fn name(&self) -> &IdentStr
[src]
pub fn address(&self) -> &AccountAddress
[src]
Trait Implementations
impl From<ModuleId> for ModuleId
[src]
impl<'a> From<&'a ModuleId> for AccessPath
[src]
impl Clone for ModuleId
[src]
impl Eq for ModuleId
[src]
impl Ord for ModuleId
[src]
fn cmp(&self, other: &ModuleId) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ModuleId> for ModuleId
[src]
impl PartialOrd<ModuleId> for ModuleId
[src]
fn partial_cmp(&self, other: &ModuleId) -> Option<Ordering>
[src]
fn lt(&self, other: &ModuleId) -> bool
[src]
fn le(&self, other: &ModuleId) -> bool
[src]
fn gt(&self, other: &ModuleId) -> bool
[src]
fn ge(&self, other: &ModuleId) -> bool
[src]
impl Debug for ModuleId
[src]
impl TryFrom<ModuleId> for ModuleId
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(proto: ModuleId) -> Result<Self>
[src]
impl Hash for ModuleId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Serialize for ModuleId
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ModuleId
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl CanonicalDeserialize for ModuleId
[src]
fn deserialize(deserializer: &mut impl CanonicalDeserializer) -> Result<Self>
[src]
impl CanonicalSerialize for ModuleId
[src]
fn serialize(&self, serializer: &mut impl CanonicalSerializer) -> Result<()>
[src]
impl CryptoHash for ModuleId
[src]
type Hasher = AccessPathHasher
The associated Hasher
type which comes with a unique salt for this type.
fn hash(&self) -> HashValue
[src]
Auto Trait Implementations
impl Send for ModuleId
impl Sync for ModuleId
impl Unpin for ModuleId
impl UnwindSafe for ModuleId
impl RefUnwindSafe for ModuleId
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,