Trait lib_rapid::compsci::general::BinayInsert [−][src]
pub trait BinayInsert<T> {
fn binary_insert(&mut self, value: &T);
}
Expand description
Trait for binary_insert
.
Required methods
fn binary_insert(&mut self, value: &T)
fn binary_insert(&mut self, value: &T)
Insert an element into a sorted vec
whilst maintaining the order.
Arguments
value
- The value which needs to be inserted.
Returns
Nothing.
WARNING
When the given vec
has multiple identical elements (which are close to the value
to be inserted), you may need to resort after insertion. This will likely be fixed in future versions.
This function will not check if the parsed vec
is sorted.