Trait structmap::ToMap [−][src]
pub trait ToMap: Default { fn to_stringmap(structure: Self) -> StringMap; fn to_genericmap(structure: Self) -> GenericMap; }
Required methods
fn to_stringmap(structure: Self) -> StringMap[src]
fn to_stringmap(structure: Self) -> StringMap[src]Generates a StringMap where value types are all casted to strings.
Constraints: one-way, will need additional work to re-convert to struct.
fn to_genericmap(structure: Self) -> GenericMap[src]
fn to_genericmap(structure: Self) -> GenericMap[src]Generates a GenericMap where value types are all encapsulated under a sum type.
Constraints: currently only supports primitive types for genericized values.