pub struct MethodUse {
pub owner: Option<String>,
pub owner_arity: usize,
pub name: String,
pub overload: usize,
pub params: Vec<Type>,
pub ret: Type,
pub taken: Vec<Type>,
pub type_args: Vec<Type>,
pub extension: bool,
pub generics: usize,
pub rest_from: Option<usize>,
}Fields§
§owner: Option<String>§owner_arity: usizeIts type’s arity (ValueTuple<T1, T2>’s 2): one of its name.
name: String§overload: usize§params: Vec<Type>§ret: Type§taken: Vec<Type>Its parameters as the call takes them (its type parameters bound).
type_args: Vec<Type>Its own type parameters’ types in this call, in order.
extension: boolAn extension method (xs.Where(…)): the receiver its first argument.
generics: usizeHow many type parameters of its own it has (F<A, B>: 2).
rest_from: Option<usize>Its params parameter takes the arguments from this one on, packed
in an array of its item type (the call’s expanded form).
Trait Implementations§
impl StructuralPartialEq for MethodUse
Auto Trait Implementations§
impl Freeze for MethodUse
impl RefUnwindSafe for MethodUse
impl Send for MethodUse
impl Sync for MethodUse
impl Unpin for MethodUse
impl UnsafeUnpin for MethodUse
impl UnwindSafe for MethodUse
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