pub enum PitchSetGraphError {
InvalidCardinality(u8),
SearchLimit {
limit: &'static str,
used: u64,
},
Graph(GraphError),
}Expand description
Error raised while building a pitch-set graph.
Variants§
InvalidCardinality(u8)
Cardinality must fit the twelve pitch classes.
SearchLimit
SearchControl stopped enumeration before the graph was complete.
Graph(GraphError)
A discrete graph construction error occurred.
Trait Implementations§
Source§impl Clone for PitchSetGraphError
impl Clone for PitchSetGraphError
Source§fn clone(&self) -> PitchSetGraphError
fn clone(&self) -> PitchSetGraphError
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 PitchSetGraphError
impl Debug for PitchSetGraphError
Source§impl Display for PitchSetGraphError
impl Display for PitchSetGraphError
impl Eq for PitchSetGraphError
Source§impl Error for PitchSetGraphError
impl Error for PitchSetGraphError
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<GraphError> for PitchSetGraphError
impl From<GraphError> for PitchSetGraphError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PitchSetGraphError
impl PartialEq for PitchSetGraphError
impl StructuralPartialEq for PitchSetGraphError
Auto Trait Implementations§
impl Freeze for PitchSetGraphError
impl RefUnwindSafe for PitchSetGraphError
impl Send for PitchSetGraphError
impl Sync for PitchSetGraphError
impl Unpin for PitchSetGraphError
impl UnsafeUnpin for PitchSetGraphError
impl UnwindSafe for PitchSetGraphError
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