pub struct LambdaSlot {
pub owner: String,
pub member: String,
pub arg_count: usize,
pub arg_index: usize,
pub arity: usize,
pub index: usize,
}Expand description
One untyped lambda parameter’s callee slot.
The name’s type is the delegate parameter of the invocation the lambda
sits inside as an argument – a lookup only the resolver can do (it has
to look up the callee’s own delegate-typed parameter at arg_index and
read ITS index-th parameter type). owner/member name the callee like
a call fact’s type_name/call do; arg_count/arg_index locate the
lambda among the callee’s arguments; arity/index locate this
parameter inside the lambda itself.
Fields§
§owner: StringThe type-name text the callee is invoked on: the identifier’s
in-file fact type, the identifier itself when the name is not taken
(a static class), or the innermost enclosing type for this.M(...)
/ bare M(...).
member: StringThe callee method name.
arg_count: usizeThe argument count of the callee invocation.
arg_index: usizeThe position of the lambda among the callee invocation’s arguments.
arity: usizeThe lambda’s own parameter count.
index: usizeThis parameter’s position inside the lambda’s parameter list.
Trait Implementations§
Source§impl Clone for LambdaSlot
impl Clone for LambdaSlot
Source§impl Debug for LambdaSlot
impl Debug for LambdaSlot
impl Eq for LambdaSlot
Source§impl PartialEq for LambdaSlot
impl PartialEq for LambdaSlot
impl StructuralPartialEq for LambdaSlot
Auto Trait Implementations§
impl Freeze for LambdaSlot
impl RefUnwindSafe for LambdaSlot
impl Send for LambdaSlot
impl Sync for LambdaSlot
impl Unpin for LambdaSlot
impl UnsafeUnpin for LambdaSlot
impl UnwindSafe for LambdaSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more