Struct in_place_string_map::NoCapacityError [−][src]
pub struct NoCapacityError(_);
Expand description
An error indicating that there was no capacity remaining when a push was attempted.
You should MapInPlace::pop
more characters in order to make room for a push.
Keep in mind that not every UTF-8 character is the same size, so you may get this error even if you always have more pops than pushes, if you are pushing larger characters.
Examples
use in_place_string_map::{MapInPlace, NoCapacityError}; let mut string = String::from("$"); let mut map = MapInPlace::new(&mut string); map.pop(); let error: NoCapacityError = map.push('£').unwrap_err();