Trait LogosIndexMut
Source pub trait LogosIndexMut<I>: LogosIndex<I> {
// Required method
fn logos_set(&mut self, index: I, value: Self::Output);
}
Expand description
Mutable element access by index.
Provides 1-based mutable indexing for Logos collections.
§Examples
use logicaffeine_data::LogosIndexMut;
let mut v = vec![1, 2, 3];
v.logos_set(2i64, 20);
assert_eq!(v, vec![1, 20, 3]);
§Panics
Panics if the index is less than 1 or greater than the collection length.
Set the element at the given index.