pub enum SearchLanguage {
All,
English,
French,
German,
Italian,
Russian,
Spanish,
Abbreviation,
}Expand description
Which of music21’s name tables Instrument::from_name reads: music21’s
SearchLanguage.
Variants§
All
Every language and the abbreviations, English winning where two disagree.
English
English names.
French
French names.
German
German names.
Italian
Italian names.
Russian
Russian names, transliterated.
Spanish
Spanish names.
Abbreviation
The standard abbreviations, an honorary language.
Implementations§
Source§impl SearchLanguage
impl SearchLanguage
Sourcepub const EACH: [SearchLanguage; 7]
pub const EACH: [SearchLanguage; 7]
Every language on its own, in music21’s order, without
SearchLanguage::All.
Trait Implementations§
Source§impl Clone for SearchLanguage
impl Clone for SearchLanguage
impl Copy for SearchLanguage
Source§impl Debug for SearchLanguage
impl Debug for SearchLanguage
Source§impl<'de> Deserialize<'de> for SearchLanguage
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SearchLanguage
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SearchLanguage
Source§impl Hash for SearchLanguage
impl Hash for SearchLanguage
Source§impl PartialEq for SearchLanguage
impl PartialEq for SearchLanguage
Source§impl Serialize for SearchLanguage
Available on crate feature serde only.
impl Serialize for SearchLanguage
Available on crate feature
serde only.impl StructuralPartialEq for SearchLanguage
Auto Trait Implementations§
impl Freeze for SearchLanguage
impl RefUnwindSafe for SearchLanguage
impl Send for SearchLanguage
impl Sync for SearchLanguage
impl Unpin for SearchLanguage
impl UnsafeUnpin for SearchLanguage
impl UnwindSafe for SearchLanguage
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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