Enum xsynth_core::soundfont::LoadSfError
source · pub enum LoadSfError {
LoadSfzError(LoadSfzError),
LoadSf2Error(Sf2ParseError),
Unsupported,
}
Expand description
Errors that can be generated when loading a soundfont of an unspecified format.
Variants§
Trait Implementations§
source§impl Debug for LoadSfError
impl Debug for LoadSfError
source§impl Display for LoadSfError
impl Display for LoadSfError
source§impl Error for LoadSfError
impl Error for LoadSfError
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()
source§impl From<LoadSfzError> for LoadSfError
impl From<LoadSfzError> for LoadSfError
source§fn from(source: LoadSfzError) -> Self
fn from(source: LoadSfzError) -> Self
Converts to this type from the input type.
source§impl From<Sf2ParseError> for LoadSfError
impl From<Sf2ParseError> for LoadSfError
source§fn from(source: Sf2ParseError) -> Self
fn from(source: Sf2ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadSfError
impl !RefUnwindSafe for LoadSfError
impl Send for LoadSfError
impl Sync for LoadSfError
impl Unpin for LoadSfError
impl !UnwindSafe for LoadSfError
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