pub trait Plot3D {
// Required methods
fn label(&self) -> &str;
fn try_plot(&self, ui: &Plot3DUi<'_>) -> Result<(), Plot3DError>;
// Provided method
fn plot(&self, ui: &Plot3DUi<'_>) { ... }
}Expand description
Common trait for 3D plot elements