[][src]Enum scale_info::build::Variants

pub enum Variants {}

Empty enum for VariantsBuilder constructors for the type builder DSL.

Implementations

impl Variants[src]

pub fn with_fields() -> VariantsBuilder<VariantFields>[src]

Build a set of variants, at least one of which will have fields.

pub fn fieldless() -> VariantsBuilder<Fieldless>[src]

Build a set of variants, none of which will have fields, and the discriminant can be directly chosen or accessed

Auto Trait Implementations

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.