Skip to main content

ConvertTo

Trait ConvertTo 

Source
pub trait ConvertTo<T> {
    // Required method
    fn convert_to(&self, other: &mut T);
}
Expand description

Sample / Buffer conversion trait

Required Methods§

Source

fn convert_to(&self, other: &mut T)

Write to other, converting into the correct format

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A, B> ConvertTo<B> for A
where for<'a> B: ConvertFrom<&'a A>,

Auto implementation