pub trait MatplotlibOpts: Matplotlib {
// Required method
fn kwarg<T: Into<PyValue>>(&mut self, key: &str, val: T) -> &mut Self;
// Provided methods
fn o<T: Into<PyValue>>(self, key: &str, val: T) -> Self
where Self: Sized { ... }
fn oo<I>(self, opts: I) -> Self
where I: IntoIterator<Item = Opt>,
Self: Sized { ... }
}Expand description
Extends Matplotlib to take optional keyword arguments.
Required Methods§
Provided Methods§
Sourcefn o<T: Into<PyValue>>(self, key: &str, val: T) -> Selfwhere
Self: Sized,
fn o<T: Into<PyValue>>(self, key: &str, val: T) -> Selfwhere
Self: Sized,
Apply a single keyword argument with full ownership of self.
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.