ToABC

Trait ToABC 

Source
pub trait ToABC {
    // Required method
    fn write_mut_abc(&self, writer: &mut impl Write) -> Result;

    // Provided methods
    fn write_abc(&self, writer: impl Write) -> Result { ... }
    fn to_abc(&self) -> String { ... }
}

Required Methods§

Source

fn write_mut_abc(&self, writer: &mut impl Write) -> Result

Provided Methods§

Source

fn write_abc(&self, writer: impl Write) -> Result

Source

fn to_abc(&self) -> String

Creates a valid ABC text representation of the object.

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<T: ToABC> ToABC for Option<T>

Source§

fn write_mut_abc(&self, writer: &mut impl Write) -> Result

Source§

impl<T: ToABC> ToABC for Vec<T>

Source§

fn write_mut_abc(&self, writer: &mut impl Write) -> Result

Implementors§