pub enum RendererCreationError {
Texture(TextureCreationError),
Program(ProgramChooserCreationError),
}
Expand description
Possible errors that may occur during a call to Renderer::new
.
Variants
Texture(TextureCreationError)
Errors that might occur when creating the glyph cache texture.
Program(ProgramChooserCreationError)
Errors that might occur when constructing the shader program.
Trait Implementations
sourceimpl Debug for RendererCreationError
impl Debug for RendererCreationError
sourceimpl Display for RendererCreationError
impl Display for RendererCreationError
sourceimpl Error for RendererCreationError
impl Error for RendererCreationError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<ProgramChooserCreationError> for RendererCreationError
impl From<ProgramChooserCreationError> for RendererCreationError
sourcefn from(err: ProgramChooserCreationError) -> Self
fn from(err: ProgramChooserCreationError) -> Self
Converts to this type from the input type.
sourceimpl From<TextureCreationError> for RendererCreationError
impl From<TextureCreationError> for RendererCreationError
sourcefn from(err: TextureCreationError) -> Self
fn from(err: TextureCreationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RendererCreationError
impl Send for RendererCreationError
impl Sync for RendererCreationError
impl Unpin for RendererCreationError
impl UnwindSafe for RendererCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more