pub enum GenerationError {
InvalidPolicy(String),
Rules(RuleError),
Music(MusicError),
Conversion(ConversionError),
Patch(PatchError),
Invariant(String),
}Expand description
Failure to validate, compile, or materialize counterpoint generation.
Variants§
InvalidPolicy(String)
Caller policy cannot define a finite valid generation problem.
Rules(RuleError)
Counterpoint rule data is invalid.
Music(MusicError)
A music value could not be built.
Conversion(ConversionError)
Canonical score conversion failed.
Patch(PatchError)
Reversible patch construction or validation failed.
Invariant(String)
Internal search/materialization agreement was violated.
Trait Implementations§
Source§impl Debug for GenerationError
impl Debug for GenerationError
Source§impl Display for GenerationError
impl Display for GenerationError
Source§impl Error for GenerationError
impl Error for GenerationError
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<ConversionError> for GenerationError
impl From<ConversionError> for GenerationError
Source§fn from(source: ConversionError) -> GenerationError
fn from(source: ConversionError) -> GenerationError
Converts to this type from the input type.
Source§impl From<MusicError> for GenerationError
impl From<MusicError> for GenerationError
Source§fn from(source: MusicError) -> GenerationError
fn from(source: MusicError) -> GenerationError
Converts to this type from the input type.
Source§impl From<PatchError> for GenerationError
impl From<PatchError> for GenerationError
Source§fn from(source: PatchError) -> GenerationError
fn from(source: PatchError) -> GenerationError
Converts to this type from the input type.
Source§impl From<RuleError> for GenerationError
impl From<RuleError> for GenerationError
Source§fn from(source: RuleError) -> GenerationError
fn from(source: RuleError) -> GenerationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenerationError
impl RefUnwindSafe for GenerationError
impl Send for GenerationError
impl Sync for GenerationError
impl Unpin for GenerationError
impl UnsafeUnpin for GenerationError
impl UnwindSafe for GenerationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more