[−][src]Struct rustdoc::clean::types::FnDecl

pub(crate) struct FnDecl {
    pub(crate) inputs: Arguments,
    pub(crate) output: FnRetTy,
    pub(crate) c_variadic: bool,
    pub(crate) attrs: Attributes,
}

Fields

inputs: Argumentsoutput: FnRetTyc_variadic: boolattrs: Attributes

Implementations

impl FnDecl[src]

pub(crate) fn self_type(&self) -> Option<SelfTy>[src]

pub(crate) fn sugared_async_return_type(&self) -> FnRetTy[src]

Returns the sugared return type for an async function.

For example, if the return type is impl std::future::Future<Output = i32>, this function will return i32.

Panics

This function will panic if the return type does not match the expected sugaring for async functions.

impl FnDecl[src]

pub(crate) fn print(&self) -> impl Display + '_[src]

Trait Implementations

impl<'a, A: Copy> Clean<FnDecl> for (&'a FnDecl<'a>, A) where
    (&'a [Ty<'a>], A): Clean<Arguments>, 
[src]

impl<'tcx> Clean<FnDecl> for (DefId, PolyFnSig<'tcx>)[src]

impl Clone for FnDecl[src]

impl Debug for FnDecl[src]

impl Eq for FnDecl[src]

impl Hash for FnDecl[src]

impl PartialEq<FnDecl> for FnDecl[src]

impl StructuralEq for FnDecl[src]

impl StructuralPartialEq for FnDecl[src]

Auto Trait Implementations

impl !RefUnwindSafe for FnDecl

impl !Send for FnDecl

impl !Sync for FnDecl

impl Unpin for FnDecl

impl !UnwindSafe for FnDecl

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]