Trait rasterize::Paint

source ·
pub trait Paint: Debug {
    // Required methods
    fn at(&self, point: Point) -> LinColor;
    fn units(&self) -> Option<Units>;
    fn transform(&self) -> Transform;
    fn to_json(&self) -> Result<Value, SvgParserError>;
}
Expand description

Common interface for anything that can be used to fill an area

Required Methods§

source

fn at(&self, point: Point) -> LinColor

source

fn units(&self) -> Option<Units>

source

fn transform(&self) -> Transform

source

fn to_json(&self) -> Result<Value, SvgParserError>

Convert paint to JSON value

Trait Implementations§

source§

impl Paint for Box<dyn Paint>

source§

fn at(&self, point: Point) -> LinColor

source§

fn units(&self) -> Option<Units>

source§

fn transform(&self) -> Transform

source§

fn to_json(&self) -> Result<Value, SvgParserError>

Convert paint to JSON value

Implementations on Foreign Types§

source§

impl Paint for Box<dyn Paint>

source§

impl Paint for Rc<dyn Paint>

source§

impl Paint for Arc<dyn Paint>

source§

impl<'a, P: Paint> Paint for &'a P

Implementors§