pub enum OffsetAlign {
Quantize,
Start,
End,
}Expand description
How an offset is matched against the boundaries of a level: music21’s
align argument to offsetToDepth.
Variants§
Quantize
Move the offset back to the start of the finest part holding it, then count the levels beginning there. music21’s default.
Start
Count only the levels whose part begins exactly at the offset.
End
Count the levels whose part ends exactly at the offset.
Trait Implementations§
Source§impl Clone for OffsetAlign
impl Clone for OffsetAlign
Source§fn clone(&self) -> OffsetAlign
fn clone(&self) -> OffsetAlign
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 OffsetAlign
Source§impl Debug for OffsetAlign
impl Debug for OffsetAlign
Source§impl Default for OffsetAlign
impl Default for OffsetAlign
Source§fn default() -> OffsetAlign
fn default() -> OffsetAlign
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OffsetAlign
Available on crate feature serde only.
impl<'de> Deserialize<'de> for OffsetAlign
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 OffsetAlign
Source§impl Hash for OffsetAlign
impl Hash for OffsetAlign
Source§impl PartialEq for OffsetAlign
impl PartialEq for OffsetAlign
Source§impl Serialize for OffsetAlign
Available on crate feature serde only.
impl Serialize for OffsetAlign
Available on crate feature
serde only.impl StructuralPartialEq for OffsetAlign
Auto Trait Implementations§
impl Freeze for OffsetAlign
impl RefUnwindSafe for OffsetAlign
impl Send for OffsetAlign
impl Sync for OffsetAlign
impl Unpin for OffsetAlign
impl UnsafeUnpin for OffsetAlign
impl UnwindSafe for OffsetAlign
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