pub enum TlgError {
Io(Error),
InvalidFormat,
UnsupportedColorType(u8),
IndexOutOfRange,
UnsupportedCompressedMethod(u8),
Str(String),
EncodeError(String),
}
Expand description
TLG Error
Variants§
Io(Error)
IO Error
InvalidFormat
Invalid TLG format
UnsupportedColorType(u8)
Unsupported color type
IndexOutOfRange
Index out of range error
UnsupportedCompressedMethod(u8)
Unsupported compressed method
Str(String)
String type error
EncodeError(String)
Encoding error
Trait Implementations§
Source§impl Error for TlgError
impl Error for TlgError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TlgError
impl !RefUnwindSafe for TlgError
impl Send for TlgError
impl Sync for TlgError
impl Unpin for TlgError
impl !UnwindSafe for TlgError
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