extern crate sector;
use sector::{states::Dynamic, Sector};
fn main() {
let mut sec: Sector<Dynamic, _> = Sector::with_capacity(5);
assert_eq!(sec.capacity(), 5);
sec.push("Hello");
sec.push(" ");
sec.push("Rusty");
sec.push(" ");
sec.push("World!");
assert_eq!(sec.capacity(), 5);
let sec = sec.to_locked();
for word in sec {
print!("{word}");
}
}