Struct lofty::error::FileDecodingError
source · pub struct FileDecodingError { /* private fields */ }Expand description
An error that arises while decoding a file
Implementations§
source§impl FileDecodingError
impl FileDecodingError
sourcepub const fn new(format: FileType, description: &'static str) -> Self
pub const fn new(format: FileType, description: &'static str) -> Self
Create a FileDecodingError from a FileType and description
sourcepub fn from_description(description: &'static str) -> Self
pub fn from_description(description: &'static str) -> Self
Create a FileDecodingError without binding it to a FileType
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the error description
Trait Implementations§
source§impl Debug for FileDecodingError
impl Debug for FileDecodingError
source§impl Display for FileDecodingError
impl Display for FileDecodingError
source§impl From<FileDecodingError> for LoftyError
impl From<FileDecodingError> for LoftyError
source§fn from(input: FileDecodingError) -> Self
fn from(input: FileDecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FileDecodingError
impl Send for FileDecodingError
impl Sync for FileDecodingError
impl Unpin for FileDecodingError
impl UnwindSafe for FileDecodingError
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