pub trait ExIteratorMax {
type ExternalTraitSpecificationFor: Iterator;
type Item;
// Required method
exec fn max(self) -> ret : Option<Self::Item>
where Self: Sized,
Self::Item: Ord;
}Expand description
Consumes the iterator, returning its last maximum or None if empty.
Audited against Rust 1.100.0 (0ef1bc386), library/core/src/iter/traits/iterator.rs:
max calls reduce(Ord::max) and retains the last equal maximum for lawful Ord.
See https://doc.rust-lang.org/1.100.0/core/iter/trait.Iterator.html#method.max.
TODO: Upstream this model; remove it when equivalent vstd support is available.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".