Struct scale_info::build::TypeBuilder
source · [−]pub struct TypeBuilder<F: Form = MetaForm, S = PathNotAssigned> { /* private fields */ }Expand description
Builds a Type
Implementations
sourceimpl<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
sourceimpl<F: Form> TypeBuilder<F, PathAssigned>
impl<F: Form> TypeBuilder<F, PathAssigned>
sourceimpl<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
sourceimpl<S> TypeBuilder<MetaForm, S>
impl<S> TypeBuilder<MetaForm, S>
Trait Implementations
Auto Trait Implementations
impl<F, S> RefUnwindSafe for TypeBuilder<F, S>where
<F as Form>::String: RefUnwindSafe,
<F as Form>::Type: RefUnwindSafe,
impl<F, S> Send for TypeBuilder<F, S>where
<F as Form>::String: Send,
<F as Form>::Type: Send,
impl<F, S> Sync for TypeBuilder<F, S>where
<F as Form>::String: Sync,
<F as Form>::Type: Sync,
impl<F, S> Unpin for TypeBuilder<F, S>where
<F as Form>::String: Unpin,
<F as Form>::Type: Unpin,
impl<F, S> UnwindSafe for TypeBuilder<F, S>where
<F as Form>::String: UnwindSafe,
<F as Form>::Type: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more