pub enum Relevance {
Certain,
Approximate,
Uncertain,
Prior,
After,
OnOrBefore,
OnOrAfter,
Between,
Or,
And,
}Expand description
What a DatePrimitive says about the dates it holds: music21’s
relevance, which is what tells its four date classes apart.
Variants§
Certain
The date is the date: music21’s DateSingle('...').
Approximate
Near enough.
Uncertain
Not known to be right.
Prior
Something happened before this date: music21’s
DateRelative(..., 'prior'), written prior to ....
After
After this date, written after ....
OnOrBefore
On this date or before it, written ... or earlier.
OnOrAfter
On this date or after it, written ... or later.
Between
Between two dates: music21’s DateBetween, written ... to ....
Or
One of these dates: music21’s DateSelection, written
... or ....
And
All of these dates, written ... and ....
Implementations§
Trait Implementations§
impl Copy for Relevance
Source§impl<'de> Deserialize<'de> for Relevance
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Relevance
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 Relevance
impl StructuralPartialEq for Relevance
Auto Trait Implementations§
impl Forget for Relevance
impl Freeze for Relevance
impl RefUnwindSafe for Relevance
impl Send for Relevance
impl Sync for Relevance
impl Unpin for Relevance
impl UnsafeUnpin for Relevance
impl UnwindSafe for Relevance
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