pub struct MetadataEntry {
pub source_path: String,
pub number: Option<String>,
pub metadata: Option<RichMetadata>,
pub corpus_name: String,
}Expand description
One score in a bundle: music21’s MetadataEntry.
Fields§
§source_path: StringWhere the score is, usually relative to the corpus directory.
number: Option<String>Which score of an opus it is, where it is one.
metadata: Option<RichMetadata>Its metadata; nothing for the stand-in a whole opus is filed under.
corpus_name: StringThe corpus it came from.
Implementations§
Source§impl MetadataEntry
impl MetadataEntry
Sourcepub fn new(
source_path: impl Into<String>,
number: Option<String>,
metadata: Option<RichMetadata>,
) -> Self
pub fn new( source_path: impl Into<String>, number: Option<String>, metadata: Option<RichMetadata>, ) -> Self
An entry of no named corpus.
Sourcepub fn corpus_path(&self, corpus: Option<&Path>) -> String
pub fn corpus_path(&self, corpus: Option<&Path>) -> String
The key it is filed under: music21’s corpusPath, which reads the
source path as a pathlib.Path.
Trait Implementations§
Source§impl Clone for MetadataEntry
impl Clone for MetadataEntry
Source§impl Debug for MetadataEntry
impl Debug for MetadataEntry
Source§impl PartialEq for MetadataEntry
impl PartialEq for MetadataEntry
impl StructuralPartialEq for MetadataEntry
Auto Trait Implementations§
impl Forget for MetadataEntry
impl Freeze for MetadataEntry
impl Move for MetadataEntry
impl RefUnwindSafe for MetadataEntry
impl Send for MetadataEntry
impl Sync for MetadataEntry
impl Unpin for MetadataEntry
impl UnsafeUnpin for MetadataEntry
impl UnwindSafe for MetadataEntry
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