Enum move_core_types::value::MoveStructLayout
source · pub enum MoveStructLayout {
Runtime(Vec<MoveTypeLayout>),
WithFields(Vec<MoveFieldLayout>),
}
Variants§
Runtime(Vec<MoveTypeLayout>)
The representation used by the MoveVM
WithFields(Vec<MoveFieldLayout>)
A decorated representation with human-readable field names that can be used by clients
Implementations§
source§impl MoveStructLayout
impl MoveStructLayout
pub fn new(types: Vec<MoveTypeLayout>) -> Self
pub fn with_fields(types: Vec<MoveFieldLayout>) -> Self
pub fn fields(&self) -> &[MoveTypeLayout]
pub fn into_fields(self) -> Vec<MoveTypeLayout> ⓘ
Trait Implementations§
source§impl Clone for MoveStructLayout
impl Clone for MoveStructLayout
source§fn clone(&self) -> MoveStructLayout
fn clone(&self) -> MoveStructLayout
Returns a copy 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 Debug for MoveStructLayout
impl Debug for MoveStructLayout
source§impl<'de> Deserialize<'de> for MoveStructLayout
impl<'de> Deserialize<'de> for MoveStructLayout
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<'d> DeserializeSeed<'d> for &MoveStructLayout
impl<'d> DeserializeSeed<'d> for &MoveStructLayout
§type Value = MoveStruct
type Value = MoveStruct
The type produced by using this seed.
source§fn deserialize<D: Deserializer<'d>>(
self,
deserializer: D
) -> Result<Self::Value, D::Error>
fn deserialize<D: Deserializer<'d>>( self, deserializer: D ) -> Result<Self::Value, D::Error>
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.