[][src]Function glsp::named_rfn

pub fn named_rfn<ArgsWithTag, Ret, F>(name: Sym, f: F) -> Root<RFn>

Notable traits for Root<GIter>

impl Iterator for Root<GIter> type Item = Result<Val, GError>;
where
    Wrapper<ArgsWithTag, Ret, F>: WrappedCall,
    Wrapper<ArgsWithTag, Ret, F>: 'static, 

Creates a GameLisp value which represents a Rust function, with a name.

This is equivalent to glsp::rfn, but (fn-name rfn) will return the given symbol, rather than returning #n.