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§
fn at(&self, point: Point) -> LinColor
fn units(&self) -> Option<Units>
fn transform(&self) -> Transform
sourcefn to_json(&self) -> Result<Value, SvgParserError>
fn to_json(&self) -> Result<Value, SvgParserError>
Convert paint to JSON value