Trait ItemTraitBuilder

Source
pub trait ItemTraitBuilder:
    AttrsPropsBuilder
    + VisPropsBuilder
    + UnsafetyPropsBuilder
    + ItemGenericsPropsBuilder {
    // Required methods
    fn new(ident: impl IntoIdent) -> Self;
    fn auto(self, auto: bool) -> Self;
    fn colon_token(self, colon_token: bool) -> Self;
    fn supertraits<S: IntoTypeParamBound>(
        self,
        supertraits: impl IntoIterator<Item = S>,
    ) -> Self;
    fn items<I: IntoTraitItem>(self, items: impl IntoIterator<Item = I>) -> Self;
    fn item(self, item: impl IntoTraitItem) -> Self;
}

Required Methods§

Source

fn new(ident: impl IntoIdent) -> Self

Source

fn auto(self, auto: bool) -> Self

Source

fn colon_token(self, colon_token: bool) -> Self

Source

fn supertraits<S: IntoTypeParamBound>( self, supertraits: impl IntoIterator<Item = S>, ) -> Self

Source

fn items<I: IntoTraitItem>(self, items: impl IntoIterator<Item = I>) -> Self

Source

fn item(self, item: impl IntoTraitItem) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ItemTraitBuilder for ItemTrait

Source§

fn new(ident: impl IntoIdent) -> Self

Source§

fn auto(self, auto: bool) -> Self

Source§

fn colon_token(self, colon_token: bool) -> Self

Source§

fn supertraits<S: IntoTypeParamBound>( self, supertraits: impl IntoIterator<Item = S>, ) -> Self

Source§

fn items<I: IntoTraitItem>(self, items: impl IntoIterator<Item = I>) -> Self

Source§

fn item(self, item: impl IntoTraitItem) -> Self

Implementors§