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 copy 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)>
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<TransportBBTValidationError> for TransportBBTValidationError
impl PartialEq<TransportBBTValidationError> for TransportBBTValidationError
source§fn eq(&self, other: &TransportBBTValidationError) -> bool
fn eq(&self, other: &TransportBBTValidationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.