Trait SynFunction

Source
pub trait SynFunction {
    // Required methods
    fn attrs(&self) -> Vec<Attribute>;
    fn vis(&self) -> Visibility;
    fn sig(&self) -> Signature;
    fn block(&self) -> Box<Block>;
}

Required Methods§

Source

fn attrs(&self) -> Vec<Attribute>

Source

fn vis(&self) -> Visibility

Source

fn sig(&self) -> Signature

Source

fn block(&self) -> Box<Block>

Implementations on Foreign Types§

Source§

impl SynFunction for ImplItemFn

Source§

fn attrs(&self) -> Vec<Attribute>

Source§

fn vis(&self) -> Visibility

Source§

fn sig(&self) -> Signature

Source§

fn block(&self) -> Box<Block>

Source§

impl SynFunction for ItemFn

Source§

fn attrs(&self) -> Vec<Attribute>

Source§

fn vis(&self) -> Visibility

Source§

fn sig(&self) -> Signature

Source§

fn block(&self) -> Box<Block>

Implementors§