Trait edn_rs::serialize::Serialize[][src]

pub trait Serialize {
    fn serialize(self) -> String;
}
Expand description

Trait that allows you to implement Serialization for each type of your choice. Example:

use edn_rs::serialize::Serialize;

#[derive(Debug)]
struct YourType;

impl Serialize for YourType {
    fn serialize(self) -> String {
        format!("{:?}", self)
    }
}

Implemented for all generic types.

Required methods

Implementations on Foreign Types

Implementors