[−][src]Enum penrose::draw::DrawError
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
Xcb(XcbError)
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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<DrawError> for PenroseError
[src]
impl From<Error> for DrawError
[src]
impl From<ParseIntError> for DrawError
[src]
pub fn from(source: ParseIntError) -> Self
[src]
impl From<XcbError> for DrawError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DrawError
[src]
impl Send for DrawError
[src]
impl Sync for DrawError
[src]
impl Unpin for DrawError
[src]
impl !UnwindSafe for DrawError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,