pub trait CanPush<T>: Clear {
type PushedOut;
}Expand description
A trait for collections which can implement some form of Push trait.
Some containers have limitations on which elements can be stored at once; these collections will “push out” a value after the push happens. A finite-size buffer may push out the oldest value, or a map may push out a value at the same key.