pub fn from_node(node: Node) -> Option<FnLikeNode> {
        let fn_like = match node {
            map::NodeItem(item) => item.is_fn_like(),
            map::NodeTraitItem(tm) => tm.is_fn_like(),
            map::NodeImplItem(it) => it.is_fn_like(),
            map::NodeExpr(e) => e.is_fn_like(),
            _ => false
        };
        if fn_like {
            Some(FnLikeNode {
                node,
            })
        } else {
            None
        }
    }
/// Attempts to construct a FnLikeNode from presumed FnLike node input.
Attempts to construct a FnLikeNode from presumed FnLike node input.
Attempts to construct a FnLikeNode from presumed FnLike node input .
pub fn from_node(node: Node) -> Option<FnLikeNode> {
        let fn_like = match node {
            map::NodeItem(item) => item.is_fn_like(),
            map::NodeTraitItem(tm) => tm.is_fn_like(),
            map::NodeImplItem(it) => it.is_fn_like(),
            map::NodeExpr(e) => e.is_fn_like(),
            _ => false
        };
        if fn_like {
            Some(FnLikeNode {
                node,
            })
        } else {
            None
        }
    }
pub fn from_node ( node : Node ) -> Option < FnLikeNode > { let fn_like = match node { map :: NodeItem ( item ) => item . is_fn_like ( ) , map :: NodeTraitItem ( tm ) => tm . is_fn_like ( ) , map :: NodeImplItem ( it ) => it . is_fn_like ( ) , map :: NodeExpr ( e ) => e . is_fn_like ( ) , _ => false } ; if fn_like { Some ( FnLikeNode { node , } ) } else { None } }
Attempts to construct a FnLikeNode from presumed FnLike node input.
Attempts to construct a FnLikeNode from presumed FnLike node input .
node
Node