pub enum D3d11TextLayerError {
InvalidFont(InvalidFont),
InvalidFontSize(f32),
TextTooLarge {
width: u64,
height: u64,
},
AllocationFailed {
bytes: usize,
},
Compositor(D3d11VideoCompositorError),
Windows(Error),
}Available on Windows and crate feature
d3d11 only.Expand description
Errors specific to D3d11TextLayerHandle.
Variants§
InvalidFont(InvalidFont)
InvalidFontSize(f32)
TextTooLarge
AllocationFailed
Compositor(D3d11VideoCompositorError)
Windows(Error)
Trait Implementations§
Source§impl Debug for D3d11TextLayerError
impl Debug for D3d11TextLayerError
Source§impl Display for D3d11TextLayerError
impl Display for D3d11TextLayerError
Source§impl Error for D3d11TextLayerError
impl Error for D3d11TextLayerError
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<D3d11TextLayerError> for Error
impl From<D3d11TextLayerError> for Error
Source§fn from(source: D3d11TextLayerError) -> Self
fn from(source: D3d11TextLayerError) -> Self
Converts to this type from the input type.
Source§impl From<D3d11VideoCompositorError> for D3d11TextLayerError
impl From<D3d11VideoCompositorError> for D3d11TextLayerError
Source§fn from(source: D3d11VideoCompositorError) -> Self
fn from(source: D3d11VideoCompositorError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for D3d11TextLayerError
impl From<Error> for D3d11TextLayerError
Auto Trait Implementations§
impl Freeze for D3d11TextLayerError
impl RefUnwindSafe for D3d11TextLayerError
impl Send for D3d11TextLayerError
impl Sync for D3d11TextLayerError
impl Unpin for D3d11TextLayerError
impl UnsafeUnpin for D3d11TextLayerError
impl UnwindSafe for D3d11TextLayerError
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