pub enum TypeLayoutBuilder {}
Implementations§
source§impl TypeLayoutBuilder
impl TypeLayoutBuilder
sourcepub fn build_with_fields(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
pub fn build_with_fields( t: &TypeTag, resolver: &impl GetModule ) -> Result<MoveTypeLayout>
Construct TypeLayout
with fields from t
.
Panics if resolver
cannot resolve a module whose types are referenced directly or
transitively by t
.
sourcepub fn build_runtime(
t: &TypeTag,
resolver: &impl GetModule
) -> Result<MoveTypeLayout>
pub fn build_runtime( t: &TypeTag, resolver: &impl GetModule ) -> Result<MoveTypeLayout>
Construct a runtime TypeLayout
from t
.
Panics if resolver
cannot resolve a module whose types are referenced directly or
transitively by t
.