fn build(
        s: &StructTag,
        resolver: &impl GetModule,
        layout_type: LayoutType,
    ) -> Result<MoveStructLayout> {
        let type_arguments = s
            .type_params
            .iter()
            .map(|t| TypeLayoutBuilder::build(t, resolver, layout_type))
            .collect::<Result<Vec<MoveTypeLayout>>>()?;
        Self::build_from_name(
            &s.module_id(),
            &s.name,
            type_arguments,
            resolver,
            layout_type,
        )
    }
/// Construct an expanded `TypeLayout` from `s`.
/// Panics if `resolver` cannot resolved a module whose types are referenced directly or
/// transitively by `s`.
Construct an expanded `TypeLayout` from `s`.
Panics if `resolver` cannot resolved a module whose types are referenced directly or
transitively by `s`.
Construct an expanded ` TypeLayout ` from ` s ` . Panics if ` resolver ` cannot resolved a module whose types are referenced directly or transitively by ` s ` .
fn build(
        s: &StructTag,
        resolver: &impl GetModule,
        layout_type: LayoutType,
    ) -> Result<MoveStructLayout> {
        let type_arguments = s
            .type_params
            .iter()
            .map(|t| TypeLayoutBuilder::build(t, resolver, layout_type))
            .collect::<Result<Vec<MoveTypeLayout>>>()?;
        Self::build_from_name(
            &s.module_id(),
            &s.name,
            type_arguments,
            resolver,
            layout_type,
        )
    }
fn build ( s : & StructTag , resolver : & impl GetModule , layout_type : LayoutType , ) -> Result < MoveStructLayout > { let type_arguments = s . type_params . iter ( ) . map ( | t | TypeLayoutBuilder :: build ( t , resolver , layout_type ) ) . collect :: < Result < Vec < MoveTypeLayout > > > ( ) ? ; Self :: build_from_name ( & s . module_id ( ) , & s . name , type_arguments , resolver , layout_type , ) }
Construct an expanded `TypeLayout` from `s`.
Construct an expanded ` TypeLayout ` from ` s ` .
s
&StructTag
resolver
&impl GetModule
layout_type
LayoutType