Struct rustfm_scrobble::ScrobbleBatch
[−]
[src]
pub struct ScrobbleBatch(_);
A batch of Scrobbles to be submitted to Last.fm together.
Methods
impl ScrobbleBatch
[src]
fn new() -> ScrobbleBatch
[src]
Creates a new, empty ScrobbleBatch
fn is_empty(&self) -> bool
[src]
Returns true if the ScrobbleBatch contains no Scrobbles
fn len(&self) -> usize
[src]
Returns the number of Scrobbles in the ScrobbleBatch
fn iter<'a>(&'a self) -> Iter<'a, Scrobble>
[src]
Returns an iterator over the ScrobbleBatch
Trait Implementations
impl FromIterator<Scrobble> for ScrobbleBatch
[src]
fn from_iter<I: IntoIterator<Item = Scrobble>>(iter: I) -> Self
[src]
Creates a value from an iterator. Read more
impl From<Vec<Scrobble>> for ScrobbleBatch
[src]
fn from(ids: Vec<Scrobble>) -> ScrobbleBatch
[src]
Performs the conversion.
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?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a ScrobbleBatch
[src]
type Item = &'a Scrobble
The type of the elements being iterated over.
type IntoIter = Iter<'a, Scrobble>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl Extend<Scrobble> for ScrobbleBatch
[src]
fn extend<T: IntoIterator<Item = Scrobble>>(&mut self, iter: T)
[src]
Extends a collection with the contents of an iterator. Read more