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§
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
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.