[][src]Struct ra_ap_syntax::ast::Fn

pub struct Fn { /* fields omitted */ }

Implementations

impl Fn[src]

pub fn default_token(&self) -> Option<SyntaxToken>[src]

pub fn async_token(&self) -> Option<SyntaxToken>[src]

pub fn const_token(&self) -> Option<SyntaxToken>[src]

pub fn unsafe_token(&self) -> Option<SyntaxToken>[src]

pub fn abi(&self) -> Option<Abi>[src]

pub fn fn_token(&self) -> Option<SyntaxToken>[src]

pub fn param_list(&self) -> Option<ParamList>[src]

pub fn ret_type(&self) -> Option<RetType>[src]

pub fn body(&self) -> Option<BlockExpr>[src]

pub fn semicolon_token(&self) -> Option<SyntaxToken>[src]

impl Fn[src]

#[must_use]pub fn with_body(&self, body: BlockExpr) -> Fn[src]

Trait Implementations

impl AstNode for Fn[src]

impl AttrsOwner for Fn[src]

impl Clone for Fn[src]

impl Debug for Fn[src]

impl Display for Fn[src]

impl DocCommentsOwner for Fn[src]

impl Eq for Fn[src]

impl From<Fn> for Item[src]

impl From<Fn> for AssocItem[src]

impl From<Fn> for ExternItem[src]

impl GenericParamsOwner for Fn[src]

impl Hash for Fn[src]

impl NameOwner for Fn[src]

impl PartialEq<Fn> for Fn[src]

impl StructuralEq for Fn[src]

impl StructuralPartialEq for Fn[src]

impl VisibilityOwner for Fn[src]

Auto Trait Implementations

impl !RefUnwindSafe for Fn

impl !Send for Fn

impl !Sync for Fn

impl Unpin for Fn

impl !UnwindSafe for Fn

Blanket Implementations

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

impl<N> AstNodeEdit for N where
    N: AstNode + Clone
[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> ToString for T where
    T: Display + ?Sized
[src]

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.