#[repr(C, u8)]pub enum OptionPlaybackState {
None,
Some(PlaybackState),
}Variants§
None
Some(PlaybackState)
Implementations§
Source§impl OptionPlaybackState
impl OptionPlaybackState
pub fn into_option(&self) -> Option<PlaybackState>
Source§impl OptionPlaybackState
impl OptionPlaybackState
pub const fn as_option(&self) -> Option<&PlaybackState>
pub const fn replace(&mut self, value: PlaybackState) -> OptionPlaybackState
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&PlaybackState>
pub const fn as_mut(&mut self) -> Option<&mut PlaybackState>
pub fn map<U, F: FnOnce(PlaybackState) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionPlaybackState
impl Clone for OptionPlaybackState
Source§fn clone(&self) -> OptionPlaybackState
fn clone(&self) -> OptionPlaybackState
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 OptionPlaybackState
Source§impl Debug for OptionPlaybackState
impl Debug for OptionPlaybackState
Source§impl Default for OptionPlaybackState
impl Default for OptionPlaybackState
Source§fn default() -> OptionPlaybackState
fn default() -> OptionPlaybackState
Returns the “default value” for a type. Read more
Source§impl From<Option<PlaybackState>> for OptionPlaybackState
impl From<Option<PlaybackState>> for OptionPlaybackState
Source§fn from(o: Option<PlaybackState>) -> OptionPlaybackState
fn from(o: Option<PlaybackState>) -> OptionPlaybackState
Converts to this type from the input type.
Source§impl From<OptionPlaybackState> for Option<PlaybackState>
impl From<OptionPlaybackState> for Option<PlaybackState>
Source§fn from(o: OptionPlaybackState) -> Option<PlaybackState>
fn from(o: OptionPlaybackState) -> Option<PlaybackState>
Converts to this type from the input type.
Source§impl PartialEq for OptionPlaybackState
impl PartialEq for OptionPlaybackState
impl StructuralPartialEq for OptionPlaybackState
Auto Trait Implementations§
impl Freeze for OptionPlaybackState
impl RefUnwindSafe for OptionPlaybackState
impl Send for OptionPlaybackState
impl Sync for OptionPlaybackState
impl Unpin for OptionPlaybackState
impl UnsafeUnpin for OptionPlaybackState
impl UnwindSafe for OptionPlaybackState
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