pub enum RichValue<'a> {
None,
Text(Cow<'a, str>),
Integer(IntegerType),
Length(OffsetQL),
Texts(&'a [String]),
Integers(&'a [IntegerType]),
Ambitus(&'a AmbitusShort),
}Expand description
One of the values read off a score, as a search compares it.
Variants§
None
Nothing was found.
Text(Cow<'a, str>)
A text: a meter, a tempo, a pitch, a path.
Integer(IntegerType)
A count, or a key signature’s sharps.
Length(OffsetQL)
A length in quarter notes.
Texts(&'a [String])
Every meter or tempo, in order.
Integers(&'a [IntegerType])
Every key signature, as sharps, in order.
Ambitus(&'a AmbitusShort)
The range.
Trait Implementations§
impl<'a> StructuralPartialEq for RichValue<'a>
Auto Trait Implementations§
impl<'a> Forget for RichValue<'a>
impl<'a> Freeze for RichValue<'a>
impl<'a> Move for RichValue<'a>
impl<'a> RefUnwindSafe for RichValue<'a>
impl<'a> Send for RichValue<'a>
impl<'a> Sync for RichValue<'a>
impl<'a> Unpin for RichValue<'a>
impl<'a> UnsafeUnpin for RichValue<'a>
impl<'a> UnwindSafe for RichValue<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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