Struct impl_tools_lib::autoimpl::ImplArgs
source · [−]pub struct ImplArgs {
pub ignores: Vec<Member>,
pub using: Option<Member>,
pub clause: Option<WhereClause>,
}
Expand description
Arguments passed to ImplTrait
implementation methods
Fields
ignores: Vec<Member>
Fields ignored in attribute
using: Option<Member>
Field specified to ‘use’ in attribute
clause: Option<WhereClause>
Where clause added to attribute
Implementations
sourceimpl ImplArgs
impl ImplArgs
sourcepub fn ignore_named(&self, ident: &Ident) -> bool
pub fn ignore_named(&self, ident: &Ident) -> bool
If true, this named field is ignored
sourcepub fn ignore_unnamed(&self, index: &Index) -> bool
pub fn ignore_unnamed(&self, index: &Index) -> bool
If true, this unnamed field is ignored
sourcepub fn using_member(&self) -> Option<&Member>
pub fn using_member(&self) -> Option<&Member>
Field to “use”, if any
sourcepub fn using_field<'b>(&self, fields: &'b Fields) -> Option<&'b Field>
pub fn using_field<'b>(&self, fields: &'b Fields) -> Option<&'b Field>
Find field to “use”, if any
Auto Trait Implementations
impl RefUnwindSafe for ImplArgs
impl !Send for ImplArgs
impl !Sync for ImplArgs
impl Unpin for ImplArgs
impl UnwindSafe for ImplArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more