[−][src]Struct scale_info::build::TypeBuilder
Builds a Type
Implementations
impl TypeBuilder<PathNotAssigned>
[src]
pub fn path(self, path: Path) -> TypeBuilder<PathAssigned>
[src]
Set the Path for the type
impl TypeBuilder<PathAssigned>
[src]
pub fn variant<V>(self, builder: VariantsBuilder<V>) -> Type
[src]
Construct a "variant" type i.e an enum
pub fn composite<F>(self, fields: FieldsBuilder<F>) -> Type
[src]
Construct a "composite" type i.e. a struct
impl<S> TypeBuilder<S>
[src]
pub fn type_params<I>(mut self: Self, type_params: I) -> Self where
I: IntoIterator<Item = MetaType>,
[src]
I: IntoIterator<Item = MetaType>,
Set the type parameters if it's a generic type
Trait Implementations
impl<S> Default for TypeBuilder<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for TypeBuilder<S>
[src]
impl<S> Send for TypeBuilder<S>
[src]
impl<S> Sync for TypeBuilder<S>
[src]
impl<S> Unpin for TypeBuilder<S>
[src]
impl<S> UnwindSafe for TypeBuilder<S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,