Skip to main content

Serialize

Trait Serialize 

Source
pub trait Serialize: Sized {
    // Required method
    fn serialize(
        &self,
        use_escape_sequences: bool,
        indentation_steps: usize,
    ) -> Result<String>;
}

Required Methods§

Source

fn serialize( &self, use_escape_sequences: bool, indentation_steps: usize, ) -> Result<String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Serialize for Vec<ValveKeyValue>

Source§

fn serialize( &self, use_escape_sequences: bool, indentation_steps: usize, ) -> Result<String>

Implementors§