Trait Iterable
Source pub trait Iterable: _Object {
// Required method
fn __len__(&self) -> usize;
}
Expand description
implement iterable for List for example
i need this to use with max min builtins
return the length of the collection/container/iterable
Source§if you want to use max(&list) you need the impl for &List
how comes that for Object work by default