[−][src]Enum raster::error::RasterError
Enumeration of raster's errors.
Variants
Io(IoError)
File system read/write errors.
PixelOutOfBounds(i32, i32)
Getting or setting pixels outside of image bounds.
InvalidStartIndex(i32)
Invalid start index.
InvalidHex
Hex format not supported.
HexParse(ParseIntError)
Error parsing a hex string.
BlendingImageFallsOutsideCanvas
Blending error.
InvalidGamma(f32)
Invalid gamma parameter.
Decode(ImageFormat, String)
Error during decoding.
Encode(ImageFormat, String)
Error during encoding.
UnsupportedFormat(String)
Unsupported image format.
Unexpected
Error that does not belong in other variants.
Trait Implementations
impl From<Error> for RasterError
[src]
impl From<Error> for RasterError
Convert std::io::Error to RasterError::Io
fn from(err: IoError) -> RasterError
[src]
fn from(err: IoError) -> RasterError
Performs the conversion.
impl From<DecodingError> for RasterError
[src]
impl From<DecodingError> for RasterError
Convert gif::DecodingError to RasterError::Decode
fn from(err: DecodingError) -> RasterError
[src]
fn from(err: DecodingError) -> RasterError
Performs the conversion.
impl From<ImageError> for RasterError
[src]
impl From<ImageError> for RasterError
Convert gif::DecodingError to RasterError::Decode
fn from(err: ImageError) -> RasterError
[src]
fn from(err: ImageError) -> RasterError
Performs the conversion.
impl From<DecodingError> for RasterError
[src]
impl From<DecodingError> for RasterError
Convert png::DecodingError to RasterError::Decode
fn from(err: DecodingError) -> RasterError
[src]
fn from(err: DecodingError) -> RasterError
Performs the conversion.
impl From<EncodingError> for RasterError
[src]
impl From<EncodingError> for RasterError
Convert png::EncodingError to RasterError::Encode
fn from(err: EncodingError) -> RasterError
[src]
fn from(err: EncodingError) -> RasterError
Performs the conversion.
impl Debug for RasterError
[src]
impl Debug for RasterError
Auto Trait Implementations
impl Send for RasterError
impl Send for RasterError
impl Sync for RasterError
impl Sync for RasterError
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T