pub struct CheckedCallee {
pub operation: CallOperation,
pub name: Option<CalleeName>,
pub type_arguments: SubstitutionMap,
pub copies_storage: bool,
pub binds_receiver: bool,
pub interface_method: Option<Box<InterfaceRequirement>>,
pub span: Span,
}Expand description
What a callee runs and with which type arguments, as the checker selected it.
Fields§
§operation: CallOperation§name: Option<CalleeName>The declaration that the callee names, with an aliased owner type replaced by its target.
type_arguments: SubstitutionMapThe solved type arguments of a generic callee, in the order of its type parameters.
copies_storage: boolWhether the call must write into storage that no other name sees, as slice growth must.
binds_receiver: boolWhether the callee holds the receiver that the first parameter of its declaration takes, as x.m(a) does.
interface_method: Option<Box<InterfaceRequirement>>§span: SpanWhere the callee is written, for diagnostics.
Implementations§
Source§impl CheckedCallee
impl CheckedCallee
pub fn definition(&self) -> Option<&str>
pub fn method(&self) -> Option<&MethodName>
pub fn interface_requirement(&self) -> Option<&InterfaceRequirement>
Sourcepub fn native(&self) -> Option<NativeOperation<'_>>
pub fn native(&self) -> Option<NativeOperation<'_>>
The built-in method this callee runs, if any.
Sourcepub fn receiver_offset(&self) -> usize
pub fn receiver_offset(&self) -> usize
The index of the declared parameter that the first argument of the call fills.
Sourcepub fn first_type_argument(&self) -> &Type
pub fn first_type_argument(&self) -> &Type
The type argument of a callee whose first type parameter decides its result.
Trait Implementations§
Source§impl Clone for CheckedCallee
impl Clone for CheckedCallee
Source§impl Debug for CheckedCallee
impl Debug for CheckedCallee
Source§impl PartialEq for CheckedCallee
impl PartialEq for CheckedCallee
impl StructuralPartialEq for CheckedCallee
Auto Trait Implementations§
impl Forget for CheckedCallee
impl Freeze for CheckedCalleewhere
*const ArcInner<Box<[Type]>> is !null: Freeze,
PhantomData<ArcInner<Box<[Type]>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<FunctionType> is !null: Freeze,
PhantomData<ArcInner<FunctionType>>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const ArcInner<Spelling> is !null: Freeze,
PhantomData<ArcInner<Spelling>>: Freeze,
*const InterfaceRequirement is !null: Freeze,
PhantomData<InterfaceRequirement>: Freeze,
PhantomData<(EcoString, Type)>: Freeze,
impl Move for CheckedCallee
impl RefUnwindSafe for CheckedCallee
impl Send for CheckedCallee
impl Sync for CheckedCallee
impl Unpin for CheckedCallee
impl UnsafeUnpin for CheckedCalleewhere
*const ArcInner<Box<[Type]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<[Type]>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<FunctionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<FunctionType>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const ArcInner<Spelling> is !null: UnsafeUnpin,
PhantomData<ArcInner<Spelling>>: UnsafeUnpin,
*const InterfaceRequirement is !null: UnsafeUnpin,
PhantomData<InterfaceRequirement>: UnsafeUnpin,
PhantomData<(EcoString, Type)>: UnsafeUnpin,
impl UnwindSafe for CheckedCalleewhere
Arc<Box<[Type]>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
BoxRaw<InterfaceRequirement>: UnwindSafe,
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