pub struct ArgInfo {
pub non_bindgen_attrs: Vec<Attribute>,
pub ident: Ident,
pub pat_reference: Option<Ref>,
pub pat_mutability: Option<Mut>,
pub reference: Option<And>,
pub mutability: Option<Mut>,
pub ty: Type,
pub bindgen_ty: BindgenArgType,
pub serializer_ty: SerializerType,
pub original: PatType,
}
Expand description
A single argument of a function after it was processed by the bindgen.
Fields§
§non_bindgen_attrs: Vec<Attribute>
Attributes not related to bindgen.
ident: Ident
The binding
part of ref mut binding @ SUBPATTERN: TYPE
argument.
pat_reference: Option<Ref>
Whether pattern has a preceded ref
.
pat_mutability: Option<Mut>
Whether pattern has a preceded mut
.
reference: Option<And>
Whether the TYPE
starts with &
.
mutability: Option<Mut>
Whether TYPE
starts with &mut
. Can only be set together with the reference
.
ty: Type
The TYPE
stripped of &
and mut
.
bindgen_ty: BindgenArgType
Bindgen classification of argument type, based on what attributes it has.
serializer_ty: SerializerType
Type of serializer that we use for this argument.
original: PatType
The original PatType
of the argument.
Implementations§
Auto Trait Implementations§
impl Freeze for ArgInfo
impl RefUnwindSafe for ArgInfo
impl !Send for ArgInfo
impl !Sync for ArgInfo
impl Unpin for ArgInfo
impl UnwindSafe for ArgInfo
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