[][src]Struct ra_ap_hir_ty::FnSig

pub struct FnSig { /* fields omitted */ }

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

Implementations

impl FnSig[src]

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

pub fn from_fn_ptr_substs(substs: &Substs, is_varargs: bool) -> FnSig[src]

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

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

Trait Implementations

impl Clone for FnSig[src]

impl Debug for FnSig[src]

impl Eq for FnSig[src]

impl PartialEq<FnSig> for FnSig[src]

impl StructuralEq for FnSig[src]

impl StructuralPartialEq for FnSig[src]

impl TypeWalk for FnSig[src]

Auto Trait Implementations

impl RefUnwindSafe for FnSig

impl Send for FnSig

impl Sync for FnSig

impl Unpin for FnSig

impl UnwindSafe for FnSig

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: Clone + Any

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, 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.