Enum mlounge_core::player::RepeatMode
source · pub enum RepeatMode {
One,
All,
Once,
}Expand description
Repeat mode of the player
Variants§
Implementations§
source§impl RepeatMode
impl RepeatMode
sourcepub fn disp_width(self) -> usize
pub fn disp_width(self) -> usize
How wide is the displayed repeat mode in terminal cells?
Trait Implementations§
source§impl Clone for RepeatMode
impl Clone for RepeatMode
source§fn clone(&self) -> RepeatMode
fn clone(&self) -> RepeatMode
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<'de> Deserialize<'de> for RepeatMode
impl<'de> Deserialize<'de> for RepeatMode
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 RepeatMode
impl Display for RepeatMode
source§impl PartialEq for RepeatMode
impl PartialEq for RepeatMode
source§fn eq(&self, other: &RepeatMode) -> bool
fn eq(&self, other: &RepeatMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RepeatMode
impl Serialize for RepeatMode
impl Copy for RepeatMode
impl Eq for RepeatMode
impl StructuralEq for RepeatMode
impl StructuralPartialEq for RepeatMode
Auto Trait Implementations§
impl RefUnwindSafe for RepeatMode
impl Send for RepeatMode
impl Sync for RepeatMode
impl Unpin for RepeatMode
impl UnwindSafe for RepeatMode
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.