Struct derivit_core::setter::FieldSetter
source · pub struct FieldSetter {
pub vis: Visibility,
pub bound: Option<Generics>,
pub field_name: Ident,
pub field_ty: Type,
pub fn_name: Ident,
pub style: SetterStyle,
pub attrs: Option<Attributes>,
pub compile_time: bool,
}
Fields§
§vis: Visibility
§bound: Option<Generics>
§field_name: Ident
§field_ty: Type
§fn_name: Ident
§style: SetterStyle
§attrs: Option<Attributes>
§compile_time: bool
Trait Implementations§
source§impl ToTokens for FieldSetter
impl ToTokens for FieldSetter
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for FieldSetter
impl !Send for FieldSetter
impl !Sync for FieldSetter
impl Unpin for FieldSetter
impl UnwindSafe for FieldSetter
Blanket Implementations§
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.