pub enum TransportBBTValidationError {
BarZero,
BeatRange,
TicksPerBeatRange,
SigNumRange,
SigDenomRange,
BPMRange,
TickRange,
}Expand description
An error validating a TransportBBT
Variants§
BarZero
bar must be greater than zero
BeatRange
beat must be greater than zero and less than sig_num
TicksPerBeatRange
There must more than zero ticks per beat
SigNumRange
Time signature numerator, sig_num must be greater than zero
SigDenomRange
Time signature denominator, sig_denom must be greater than zero
BPMRange
bpm must be greater than or equal to zero
TickRange
tick must be less than ticks_per_beat
Trait Implementations§
Source§impl Clone for TransportBBTValidationError
impl Clone for TransportBBTValidationError
Source§fn clone(&self) -> TransportBBTValidationError
fn clone(&self) -> TransportBBTValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 TransportBBTValidationError
impl Debug for TransportBBTValidationError
Source§impl Error for TransportBBTValidationError
impl Error for TransportBBTValidationError
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()
impl Eq for TransportBBTValidationError
impl StructuralPartialEq for TransportBBTValidationError
Auto Trait Implementations§
impl Freeze for TransportBBTValidationError
impl RefUnwindSafe for TransportBBTValidationError
impl Send for TransportBBTValidationError
impl Sync for TransportBBTValidationError
impl Unpin for TransportBBTValidationError
impl UnwindSafe for TransportBBTValidationError
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