plotters::prelude

Type Alias DrawResult

Source
pub type DrawResult<T, D: DrawingBackend> = Result<T, DrawingAreaErrorKind<D::ErrorType>>;
Expand description

The type used to returns a drawing operation that can be failed

  • T: The return type
  • D: The drawing backend type

Aliased Type§

enum DrawResult<T, D: DrawingBackend> {
    Ok(T),
    Err(DrawingAreaErrorKind<<D as DrawingBackend>::ErrorType>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(DrawingAreaErrorKind<<D as DrawingBackend>::ErrorType>)

Contains the error value

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.