IntoBrush

Trait IntoBrush 

Source
pub trait IntoBrush<P>
where P: RenderContext + ?Sized,
{ }
Expand description

A trait for various types that can be used as brushes.

These include backend-independent types such Color and LinearGradient, as well as the types used to represent these on a specific backend.

This is an internal trait that you should not have to implement or think about.

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<'a> IntoBrush<D2DRenderContext<'a>> for Brush

Implementors§