pub trait YamlDataType {
// Required method
fn create_yaml_object(&self) -> Yaml;
}
Expand description
Define a trait object for converting to YAML objects.
Required Methods§
fn create_yaml_object(&self) -> Yaml
Implementations on Foreign Types§
Source§impl YamlDataType for Yaml
impl YamlDataType for Yaml
fn create_yaml_object(&self) -> Yaml
Source§impl YamlDataType for f64
impl YamlDataType for f64
fn create_yaml_object(&self) -> Yaml
Source§impl YamlDataType for i64
Implement for basic scalar types.
impl YamlDataType for i64
Implement for basic scalar types.
fn create_yaml_object(&self) -> Yaml
Source§impl YamlDataType for String
impl YamlDataType for String
fn create_yaml_object(&self) -> Yaml
Source§impl<T> YamlDataType for &Twhere
T: YamlDataType,
Allow for references.
impl<T> YamlDataType for &Twhere
T: YamlDataType,
Allow for references.
fn create_yaml_object(&self) -> Yaml
Source§impl<T> YamlDataType for Vec<T>where
T: YamlDataType,
This allows recursive wrapping of YamlDataType in Vec, e.g. Vec<Vec<Vec>>.
impl<T> YamlDataType for Vec<T>where
T: YamlDataType,
This allows recursive wrapping of YamlDataType in Vec, e.g. Vec<Vec<Vec