Struct scale_info::build::TypeBuilder
source · pub struct TypeBuilder<F: Form = MetaForm, S = PathNotAssigned> { /* private fields */ }
Expand description
Builds a Type
Implementations§
source§impl<F: Form> TypeBuilder<F, PathNotAssigned>
impl<F: Form> TypeBuilder<F, PathNotAssigned>
sourcepub fn path(self, path: Path<F>) -> TypeBuilder<F, PathAssigned>
pub fn path(self, path: Path<F>) -> TypeBuilder<F, PathAssigned>
Set the Path for the type
source§impl<F: Form> TypeBuilder<F, PathAssigned>
impl<F: Form> TypeBuilder<F, PathAssigned>
source§impl<F: Form, S> TypeBuilder<F, S>
impl<F: Form, S> TypeBuilder<F, S>
sourcepub fn type_params<I>(self, type_params: I) -> Selfwhere
I: IntoIterator<Item = TypeParameter<F>>,
pub fn type_params<I>(self, type_params: I) -> Selfwhere
I: IntoIterator<Item = TypeParameter<F>>,
Set the type parameters if it’s a generic type