pub struct Callable { /* private fields */ }
Implementations§
source§impl Callable
impl Callable
pub fn kind(&self) -> CallableKind
pub fn receiver_param(&self, db: &dyn HirDatabase) -> Option<(SelfParam, Type)>
pub fn n_params(&self) -> usize
pub fn params( &self, db: &dyn HirDatabase ) -> Vec<(Option<Either<SelfParam, Pat>>, Type)>
pub fn return_type(&self) -> Type
pub fn sig(&self) -> &CallableSig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Callable
impl RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl UnwindSafe for Callable
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.