pub fn as_scalar(&self) -> Option<&MarkedScalarNode> {
        match self {
            Node::Scalar(msn) => Some(msn),
            _ => None,
        }
    }
/// Retrieve the scalar from this node if there is one
///
/// ```
/// # use marked_yaml::types::*;
/// let node: Node = "foobar".into();
/// let scalar = node.as_scalar();
/// assert!(scalar.is_some());
/// ```
Retrieve the scalar from this node if there is one
```
Retrieve the scalar from this node if there is one ` ` `
pub fn as_scalar(&self) -> Option<&MarkedScalarNode> {
        match self {
            Node::Scalar(msn) => Some(msn),
            _ => None,
        }
    }
pub fn as_scalar ( & self ) -> Option < & MarkedScalarNode > { match self { Node :: Scalar ( msn ) => Some ( msn ) , _ => None , } }
Retrieve the scalar from this node if there is one
```
Retrieve the scalar from this node if there is one ` ` `
&self
&self
use marked_yaml::types::*;
let node: Node = "foobar".into();
let scalar = node.as_scalar();
assert!(scalar.is_some());
```
let node : Node = " foobar " . into () ; let scalar = node . as_scalar () ; assert! ( scalar . is_some () ) ; ` ` `