[][src]Enum penrose::draw::DrawError

pub enum DrawError {
    InvalidHexColor(String),
    ParseInt(ParseIntError),
    Raw(String),
    UnknownFont(String),
    Xcb(XcbError),
    Cairo(Error),
}

Enum to store the various ways that operations can fail when rendering windows

Variants

InvalidHexColor(String)

A hex literal provided to create a Color was not RGB / RGBA

ParseInt(ParseIntError)

A string hex code was invalid as a hex literal

Raw(String)

A generic error type for use in user code when needing to construct a simple DrawError.

UnknownFont(String)

An attempt was made to use a font that had not beed registered

Wrapper around XCB implementation errors for draw traits

Cairo(Error)

An attempt to use the cairo C API failed when using an XCB implementation of Draw or DrawContext

Trait Implementations

impl Debug for DrawError[src]

impl Display for DrawError[src]

impl Error for DrawError[src]

impl From<DrawError> for PenroseError[src]

impl From<Error> for DrawError[src]

impl From<ParseIntError> for DrawError[src]

impl From<XcbError> for DrawError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.