opencv::viz

Trait Widget2DTrait

Source
pub trait Widget2DTrait: Widget2DTraitConst + WidgetTrait {
    // Required method
    fn as_raw_mut_Widget2D(&mut self) -> *mut c_void;

    // Provided method
    fn set_color(&mut self, color: &impl ColorTraitConst) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::Widget2D

Required Methods§

Provided Methods§

Source

fn set_color(&mut self, color: &impl ColorTraitConst) -> Result<()>

Sets the color of the widget.

§Parameters
  • color: color of type Color

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.

Implementors§