pub enum RendererError {
Vertex(BufferCreationError),
Index(BufferCreationError),
Program(ProgramChooserCreationError),
Texture(TextureCreationError),
Draw(DrawError),
BadTexture(TextureId),
}
Variants§
Vertex(BufferCreationError)
Index(BufferCreationError)
Program(ProgramChooserCreationError)
Texture(TextureCreationError)
Draw(DrawError)
BadTexture(TextureId)
Trait Implementations§
Source§impl Clone for RendererError
impl Clone for RendererError
Source§fn clone(&self) -> RendererError
fn clone(&self) -> RendererError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RendererError
impl Debug for RendererError
Source§impl Display for RendererError
impl Display for RendererError
Source§impl Error for RendererError
impl Error for RendererError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CreationError> for RendererError
impl From<CreationError> for RendererError
Source§fn from(e: BufferCreationError) -> RendererError
fn from(e: BufferCreationError) -> RendererError
Converts to this type from the input type.
Source§impl From<CreationError> for RendererError
impl From<CreationError> for RendererError
Source§fn from(e: BufferCreationError) -> RendererError
fn from(e: BufferCreationError) -> RendererError
Converts to this type from the input type.
Source§impl From<DrawError> for RendererError
impl From<DrawError> for RendererError
Source§fn from(e: DrawError) -> RendererError
fn from(e: DrawError) -> RendererError
Converts to this type from the input type.
Source§impl From<ProgramChooserCreationError> for RendererError
impl From<ProgramChooserCreationError> for RendererError
Source§fn from(e: ProgramChooserCreationError) -> RendererError
fn from(e: ProgramChooserCreationError) -> RendererError
Converts to this type from the input type.
Source§impl From<TextureCreationError> for RendererError
impl From<TextureCreationError> for RendererError
Source§fn from(e: TextureCreationError) -> RendererError
fn from(e: TextureCreationError) -> RendererError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RendererError
impl RefUnwindSafe for RendererError
impl Send for RendererError
impl Sync for RendererError
impl Unpin for RendererError
impl UnwindSafe for RendererError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more