pub enum Error {
InvalidInputLength,
InvalidInputChar,
}Expand description
Error emitted when trying to create FourCCs from invalid input
use fourcc::{Error, FourCC};
assert_eq!(FourCC::try_from("A"), Err(Error::InvalidInputLength));
assert_eq!(FourCC::try_from("ABCDE"), Err(Error::InvalidInputLength));
assert_eq!(FourCC::try_from("AÜC"), Err(Error::InvalidInputChar));Variants§
InvalidInputLength
The given input is either too long or too short to be converted into a FourCC
InvalidInputChar
The input contains characters that can not be represented in a four-character code
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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