Enum bard::book::VerseLabel
source · pub enum VerseLabel {
Verse(u32),
Chorus(Option<u32>),
Custom(BStr),
None {},
}
Variants§
Trait Implementations§
source§impl Clone for VerseLabel
impl Clone for VerseLabel
source§fn clone(&self) -> VerseLabel
fn clone(&self) -> VerseLabel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VerseLabel
impl Debug for VerseLabel
source§impl PartialEq<VerseLabel> for VerseLabel
impl PartialEq<VerseLabel> for VerseLabel
source§fn eq(&self, other: &VerseLabel) -> bool
fn eq(&self, other: &VerseLabel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VerseLabel
impl Serialize for VerseLabel
impl Eq for VerseLabel
impl StructuralEq for VerseLabel
impl StructuralPartialEq for VerseLabel
Auto Trait Implementations§
impl RefUnwindSafe for VerseLabel
impl Send for VerseLabel
impl Sync for VerseLabel
impl Unpin for VerseLabel
impl UnwindSafe for VerseLabel
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.