pub enum StreamKind {
Stream,
Voice,
Measure,
Part,
PartStaff,
Score,
Opus,
}Expand description
Which of music21’s Stream subclasses a stream stands for.
music21 makes each of these a class of its own; they carry no behaviour that a tag does not, and a tag is what the filters here need.
Variants§
Stream
A stream with no particular role: music21’s Stream.
Voice
One independent line inside a measure.
Measure
One bar.
Part
One instrument’s line through the piece.
PartStaff
One staff of a part written on several.
Score
A whole piece, holding parts.
Opus
A collection of scores.
Implementations§
Source§impl StreamKind
impl StreamKind
Trait Implementations§
Source§impl Clone for StreamKind
impl Clone for StreamKind
Source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamKind
Source§impl Debug for StreamKind
impl Debug for StreamKind
Source§impl Default for StreamKind
impl Default for StreamKind
Source§fn default() -> StreamKind
fn default() -> StreamKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StreamKind
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
Source§impl Display for StreamKind
impl Display for StreamKind
impl Eq for StreamKind
Source§impl Hash for StreamKind
impl Hash for StreamKind
Source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
Source§impl Serialize for StreamKind
Available on crate feature serde only.
impl Serialize for StreamKind
Available on crate feature
serde only.impl StructuralPartialEq for StreamKind
Auto Trait Implementations§
impl Freeze for StreamKind
impl RefUnwindSafe for StreamKind
impl Send for StreamKind
impl Sync for StreamKind
impl Unpin for StreamKind
impl UnsafeUnpin for StreamKind
impl UnwindSafe for StreamKind
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