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: boolTrait 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 Freeze for FieldSetter
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.