pub struct AttrsField {
pub ident: Ident,
pub with: Option<Path>,
}
Expand description
The attrs
magic field and attributes that influence its behavior.
Fields§
§ident: Ident
The ident of the field that will receive the forwarded attributes.
with: Option<Path>
Path of the function that will be called to convert the Vec
of
forwarded attributes into the type expected by the field in ident
.
Trait Implementations§
source§impl Clone for AttrsField
impl Clone for AttrsField
source§fn clone(&self) -> AttrsField
fn clone(&self) -> AttrsField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttrsField
impl Debug for AttrsField
source§impl FromField for AttrsField
impl FromField for AttrsField
fn from_field(field: &Field) -> Result<Self>
source§impl ParseAttribute for AttrsField
impl ParseAttribute for AttrsField
Auto Trait Implementations§
impl Freeze for AttrsField
impl RefUnwindSafe for AttrsField
impl !Send for AttrsField
impl !Sync for AttrsField
impl Unpin for AttrsField
impl UnwindSafe for AttrsField
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)