[−]Enum rg3d::window::BadIcon
An error produced when using Icon::from_rgba with invalid arguments.
Variants
Produced when the length of the rgba argument isn't divisible by 4, thus rgba can't be
safely interpreted as 32bpp RGBA pixels.
Fields of ByteCountNotDivisibleBy4
byte_count: usizeProduced when the number of pixels (rgba.len() / 4) isn't equal to width * height.
At least one of your arguments is incorrect.
Trait Implementations
impl Clone for BadIcon
fn clone(&self) -> BadIcon
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for BadIcon
impl Debug for BadIcon
impl Display for BadIcon
impl Eq for BadIcon
impl Error for BadIcon
fn description(&self) -> &str
fn cause(&self) -> Option<&dyn Error>
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>[src]
impl PartialEq<BadIcon> for BadIcon
impl StructuralEq for BadIcon
impl StructuralPartialEq for BadIcon
Auto Trait Implementations
impl RefUnwindSafe for BadIcon
impl Send for BadIcon
impl Sync for BadIcon
impl Unpin for BadIcon
impl UnwindSafe for BadIcon
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any, [src]
T: Send + Sync + Any,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,