Struct scale_info::build::TypeBuilder
source · [−]pub struct TypeBuilder<S = PathNotAssigned> { /* private fields */ }
Expand description
Builds a Type
Implementations
sourceimpl TypeBuilder<PathNotAssigned>
impl TypeBuilder<PathNotAssigned>
sourcepub fn path(self, path: Path) -> TypeBuilder<PathAssigned>
pub fn path(self, path: Path) -> TypeBuilder<PathAssigned>
Set the Path for the type
sourceimpl<S> TypeBuilder<S>
impl<S> TypeBuilder<S>
sourcepub fn type_params<I>(self, type_params: I) -> Selfwhere
I: IntoIterator<Item = TypeParameter>,
pub fn type_params<I>(self, type_params: I) -> Selfwhere
I: IntoIterator<Item = TypeParameter>,
Set the type parameters if it’s a generic type
sourcepub fn docs(self, _docs: &'static [&'static str]) -> Self
pub fn docs(self, _docs: &'static [&'static str]) -> Self
Doc capture is not enabled via the “docs” feature so this is a no-op.
sourcepub fn docs_always(self, docs: &[&'static str]) -> Self
pub fn docs_always(self, docs: &[&'static str]) -> Self
Set the type documentation, always captured even if the “docs” feature is not enabled.
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for TypeBuilder<S>
impl<S> Send for TypeBuilder<S>
impl<S> Sync for TypeBuilder<S>
impl<S> Unpin for TypeBuilder<S>
impl<S> UnwindSafe for TypeBuilder<S>
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