Struct ra_ap_hir_ty::CallableSig[][src]

pub struct CallableSig { /* fields omitted */ }

A function signature as seen by type inference: Several parameter types and one return type.

Implementations

impl CallableSig[src]

pub fn from_params_and_return(
    params: Vec<Ty>,
    ret: Ty,
    is_varargs: bool
) -> CallableSig
[src]

pub fn from_fn_ptr(fn_ptr: &FnPointer) -> CallableSig[src]

pub fn params(&self) -> &[Ty][src]

pub fn ret(&self) -> &Ty[src]

Trait Implementations

impl Clone for CallableSig[src]

impl Debug for CallableSig[src]

impl Eq for CallableSig[src]

impl HirDisplay for CallableSig[src]

impl PartialEq<CallableSig> for CallableSig[src]

impl StructuralEq for CallableSig[src]

impl StructuralPartialEq for CallableSig[src]

impl TypeWalk for CallableSig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.