Dataset length
This commit is contained in:
@@ -8,6 +8,9 @@ pub mod misc;
|
||||
|
||||
/// A read-only set of [Item]s.
|
||||
pub trait DataSource {
|
||||
/// Get the number of items in this source
|
||||
fn len(&self) -> usize;
|
||||
|
||||
/// Get an item from this datasource
|
||||
fn get(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user