pub enum BundleError {
Program {
section: &'static str,
err: ProgramError,
},
RosterMismatch {
section: &'static str,
},
TooManyElements {
which: &'static str,
},
}Expand description
What is wrong with a bundle, as a surfaced load error.
Variants§
Program
One of the three programs did not decode.
Fields
§
err: ProgramErrorWhy.
RosterMismatch
The three programs declare different register rosters, so a q1 written
by one would not be the q1 the next reads.
TooManyElements
More custom waves or shapes than the .milk format allows.
Trait Implementations§
Source§impl Clone for BundleError
impl Clone for BundleError
Source§fn clone(&self) -> BundleError
fn clone(&self) -> BundleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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()
Source§impl PartialEq for BundleError
impl PartialEq for BundleError
Source§fn eq(&self, other: &BundleError) -> bool
fn eq(&self, other: &BundleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Freeze for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleError
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