pub enum SearchTerm {
Wildcard,
Element(StreamElement),
AnyLength(StreamElement),
}Expand description
One place in what is searched for: music21’s search list entry.
Variants§
Wildcard
Anything at all: music21’s Wildcard.
Element(StreamElement)
An element, compared as the search’s algorithms compare it.
AnyLength(StreamElement)
An element whose length does not matter: one with music21’s
WildcardDuration.
Trait Implementations§
Source§impl Clone for SearchTerm
impl Clone for SearchTerm
Source§impl Debug for SearchTerm
impl Debug for SearchTerm
Source§impl From<StreamElement> for SearchTerm
impl From<StreamElement> for SearchTerm
Source§fn from(element: StreamElement) -> Self
fn from(element: StreamElement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchTerm
impl RefUnwindSafe for SearchTerm
impl Send for SearchTerm
impl Sync for SearchTerm
impl Unpin for SearchTerm
impl UnsafeUnpin for SearchTerm
impl UnwindSafe for SearchTerm
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