pub fn as_mapping(&self) -> Option<&MarkedMappingNode> {
        match self {
            Node::Mapping(mmn) => Some(mmn),
            _ => None,
        }
    }
/// Retrieve the mapping from this node if there is one
///
/// ```
/// # use marked_yaml::*;
/// let node: Node = parse_yaml(0, "{foobar: baz}").unwrap();
/// let mapping = node.as_mapping();
/// assert!(mapping.is_some());
/// ```
Retrieve the mapping from this node if there is one
```
Retrieve the mapping from this node if there is one ` ` `
pub fn as_mapping(&self) -> Option<&MarkedMappingNode> {
        match self {
            Node::Mapping(mmn) => Some(mmn),
            _ => None,
        }
    }
pub fn as_mapping ( & self ) -> Option < & MarkedMappingNode > { match self { Node :: Mapping ( mmn ) => Some ( mmn ) , _ => None , } }
Retrieve the mapping from this node if there is one
```
Retrieve the mapping from this node if there is one ` ` `
&self
&self
use marked_yaml::*;
let node: Node = parse_yaml(0, "{foobar: baz}").unwrap();
let mapping = node.as_mapping();
assert!(mapping.is_some());
```
let node : Node = parse_yaml ( 0 " { foobar : baz } " ) . unwrap () ; let mapping = node . as_mapping () ; assert! ( mapping . is_some () ) ; ` ` `