pub enum PlayableId<'a> {
Track(TrackId<'a>),
Episode(EpisodeId<'a>),
}Expand description
Variants§
Implementations§
Source§impl<'a> PlayableId<'a>
impl<'a> PlayableId<'a>
pub fn as_ref(&'a self) -> Self
pub fn into_static(self) -> PlayableId<'static>
pub fn clone_static(&'a self) -> PlayableId<'static>
Trait Implementations§
Source§impl<'a> Clone for PlayableId<'a>
impl<'a> Clone for PlayableId<'a>
Source§fn clone(&self) -> PlayableId<'a>
fn clone(&self) -> PlayableId<'a>
Returns a duplicate 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<'a> Debug for PlayableId<'a>
impl<'a> Debug for PlayableId<'a>
Source§impl<'a> From<EpisodeId<'a>> for PlayableId<'a>
impl<'a> From<EpisodeId<'a>> for PlayableId<'a>
Source§fn from(v: EpisodeId<'a>) -> PlayableId<'a>
fn from(v: EpisodeId<'a>) -> PlayableId<'a>
Converts to this type from the input type.
Source§impl<'a> From<TrackId<'a>> for PlayableId<'a>
impl<'a> From<TrackId<'a>> for PlayableId<'a>
Source§fn from(v: TrackId<'a>) -> PlayableId<'a>
fn from(v: TrackId<'a>) -> PlayableId<'a>
Converts to this type from the input type.
Source§impl<'a> Hash for PlayableId<'a>
impl<'a> Hash for PlayableId<'a>
Source§impl<'a> Id for PlayableId<'a>
impl<'a> Id for PlayableId<'a>
Source§impl<'a> PartialEq for PlayableId<'a>
impl<'a> PartialEq for PlayableId<'a>
Source§impl<'a> Serialize for PlayableId<'a>
impl<'a> Serialize for PlayableId<'a>
Source§impl<'a> TryInto<EpisodeId<'a>> for PlayableId<'a>
impl<'a> TryInto<EpisodeId<'a>> for PlayableId<'a>
Source§impl<'a> TryInto<TrackId<'a>> for PlayableId<'a>
impl<'a> TryInto<TrackId<'a>> for PlayableId<'a>
impl<'a> Eq for PlayableId<'a>
impl<'a> StructuralPartialEq for PlayableId<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlayableId<'a>
impl<'a> RefUnwindSafe for PlayableId<'a>
impl<'a> Send for PlayableId<'a>
impl<'a> Sync for PlayableId<'a>
impl<'a> Unpin for PlayableId<'a>
impl<'a> UnwindSafe for PlayableId<'a>
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