#[non_exhaustive]pub struct PropertyDescription {
pub unique_name: &'static str,
pub name: &'static str,
pub namespace: &'static str,
pub old_abbreviation: Option<&'static str>,
pub old_work_id: Option<&'static str>,
pub value_kind: ValueKind,
pub needs_article_normalization: bool,
pub is_contributor: bool,
}Expand description
One property of the vocabulary as music21’s PropertyDescription
says it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unique_name: &'static strThe name music21 knows it by, unique in the vocabulary.
name: &'static strIts name in its namespace, the tail of dcterms:alternative.
namespace: &'static strThe namespace: dcterms, marcrel, humdrum, m21FileInfo or
music21.
old_abbreviation: Option<&'static str>The Humdrum abbreviation music21 took it by before v8.
old_work_id: Option<&'static str>The work id music21 took it by before v8.
value_kind: ValueKindWhat kind of value it takes.
needs_article_normalization: boolWhether its value is a title whose closing article reads in front.
is_contributor: boolWhether it names somebody who had a hand in the work.
Trait Implementations§
Source§impl Clone for PropertyDescription
impl Clone for PropertyDescription
impl Copy for PropertyDescription
Source§impl Debug for PropertyDescription
impl Debug for PropertyDescription
impl Eq for PropertyDescription
Source§impl PartialEq for PropertyDescription
impl PartialEq for PropertyDescription
impl StructuralPartialEq for PropertyDescription
Auto Trait Implementations§
impl Forget for PropertyDescription
impl Freeze for PropertyDescription
impl Move for PropertyDescription
impl RefUnwindSafe for PropertyDescription
impl Send for PropertyDescription
impl Sync for PropertyDescription
impl Unpin for PropertyDescription
impl UnsafeUnpin for PropertyDescription
impl UnwindSafe for PropertyDescription
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