Struct ra_ap_hir::Callable [−][src]
pub struct Callable { /* fields omitted */ }
Implementations
impl Callable
[src]
impl Callable
[src]pub fn kind(&self) -> CallableKind
[src]
pub fn receiver_param(&self, db: &dyn HirDatabase) -> Option<SelfParam>
[src]
pub fn n_params(&self) -> usize
[src]
pub fn params(
&self,
db: &dyn HirDatabase
) -> Vec<(Option<Either<SelfParam, Pat>>, Type)>
[src]
&self,
db: &dyn HirDatabase
) -> Vec<(Option<Either<SelfParam, Pat>>, Type)>
pub fn return_type(&self) -> Type
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl UnwindSafe for Callable
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Any for T where
T: Any,
T: Any,