pub fn as_attribute(ref_node: &RefNode) -> Result<RefAttribute<'_>>
Expand description

Safely cast the specified RefNode into a Ref type.