[−][src]Struct rustfm_scrobble::ScrobbleBatch
A batch of Scrobbles to be submitted to Last.fm together.
Implementations
impl ScrobbleBatch
[src]
pub fn new() -> ScrobbleBatch
[src]
Creates a new, empty ScrobbleBatch
pub fn is_empty(&self) -> bool
[src]
Returns true if the ScrobbleBatch contains no Scrobbles
pub fn len(&self) -> usize
[src]
Returns the number of Scrobbles in the ScrobbleBatch
pub fn iter<'a>(&'a self) -> Iter<'a, Scrobble>
[src]
Returns an iterator over the ScrobbleBatch
Trait Implementations
impl Clone for ScrobbleBatch
[src]
pub fn clone(&self) -> ScrobbleBatch
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScrobbleBatch
[src]
impl Extend<Scrobble> for ScrobbleBatch
[src]
pub fn extend<T: IntoIterator<Item = Scrobble>>(&mut self, iter: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl From<Vec<(&'_ str, &'_ str, &'_ str), Global>> for ScrobbleBatch
[src]
Converts from vector of &str
tuples, in the form (artist, track, album)
.
Designed to make it easier to cooperate with other track info types.
impl From<Vec<(String, String, String), Global>> for ScrobbleBatch
[src]
Converts from vector of String
tuples, in the form (artist, track, album)
.
Designed to make it easier to cooperate with other track info types.
impl From<Vec<Scrobble, Global>> for ScrobbleBatch
[src]
pub fn from(ids: Vec<Scrobble>) -> ScrobbleBatch
[src]
impl FromIterator<Scrobble> for ScrobbleBatch
[src]
pub fn from_iter<I: IntoIterator<Item = Scrobble>>(iter: I) -> Self
[src]
impl IntoIterator for ScrobbleBatch
[src]
type Item = Scrobble
The type of the elements being iterated over.
type IntoIter = IntoIter<Scrobble>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a ScrobbleBatch
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScrobbleBatch
[src]
impl Send for ScrobbleBatch
[src]
impl Sync for ScrobbleBatch
[src]
impl Unpin for ScrobbleBatch
[src]
impl UnwindSafe for ScrobbleBatch
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,