pub enum StrictRealizationError {
UnknownRealizer(RealizerId),
MissingSpec(SerialEventId),
MidiOutOfRange {
event_id: SerialEventId,
midi: i16,
},
NonPositiveDuration(SerialEventId),
OctaveDisplacementMismatch {
event_id: SerialEventId,
ordinals: usize,
displacements: usize,
},
MissingTieTarget(SerialEventId),
InvalidTieTarget {
source_event: SerialEventId,
target_event: SerialEventId,
reason: &'static str,
},
MusicCore(String),
MissingModalScale(RealizerId),
PitchMap(String),
}Expand description
Failure while realizing or rendering a strict serial plan.
Variants§
UnknownRealizer(RealizerId)
A registry lookup named a missing realizer id.
MissingSpec(SerialEventId)
One plan event lacked an explicit realization spec.
MidiOutOfRange
One event spec named an impossible register or octave displacement result.
NonPositiveDuration(SerialEventId)
The caller supplied a non-positive duration.
OctaveDisplacementMismatch
The octave-displacement vector does not match the event’s cardinality.
Fields
§
event_id: SerialEventIdAffected event.
MissingTieTarget(SerialEventId)
A tie requested a following same-voice event that did not exist.
InvalidTieTarget
A tie target did not realize the same pitch multiplicity.
Fields
§
source_event: SerialEventIdSource event requesting the tie.
§
target_event: SerialEventIdTarget event.
MusicCore(String)
Rendering through canonical music-core score conversion failed.
MissingModalScale(RealizerId)
A modal or adapted realizer requires a scale context.
PitchMap(String)
One adaptation pitch-map operation failed.
Trait Implementations§
Source§impl Clone for StrictRealizationError
impl Clone for StrictRealizationError
Source§fn clone(&self) -> StrictRealizationError
fn clone(&self) -> StrictRealizationError
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 StrictRealizationError
impl Debug for StrictRealizationError
Source§impl Display for StrictRealizationError
impl Display for StrictRealizationError
impl Eq for StrictRealizationError
Source§impl Error for StrictRealizationError
impl Error for StrictRealizationError
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 From<StrictRealizationError> for SerialSurfaceError
impl From<StrictRealizationError> for SerialSurfaceError
Source§fn from(source: StrictRealizationError) -> Self
fn from(source: StrictRealizationError) -> Self
Converts to this type from the input type.
Source§impl From<StrictRealizationError> for SerialCompletionError
impl From<StrictRealizationError> for SerialCompletionError
Source§fn from(source: StrictRealizationError) -> Self
fn from(source: StrictRealizationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StrictRealizationError
impl PartialEq for StrictRealizationError
impl StructuralPartialEq for StrictRealizationError
Auto Trait Implementations§
impl Freeze for StrictRealizationError
impl RefUnwindSafe for StrictRealizationError
impl Send for StrictRealizationError
impl Sync for StrictRealizationError
impl Unpin for StrictRealizationError
impl UnsafeUnpin for StrictRealizationError
impl UnwindSafe for StrictRealizationError
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