Struct tetsy_scale_info::build::TypeBuilder[][src]

pub struct TypeBuilder<S = PathNotAssigned> { /* fields omitted */ }

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>(self, type_params: I) -> Self where
    I: IntoIterator<Item = MetaType>, 
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.