pub struct SimpleRange { /* private fields */ }Expand description
The simplest of range types.
Implementations§
Source§impl SimpleRange
impl SimpleRange
Sourcepub fn new_from_string(ranges: &str) -> Result<SimpleRange, Error>
pub fn new_from_string(ranges: &str) -> Result<SimpleRange, Error>
Construct a range from a non-empty string of the kind “AA,AJs+”. For more components, see the README.
pub fn get_range_text(&self) -> String
pub fn get_component_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleRange
impl RefUnwindSafe for SimpleRange
impl Send for SimpleRange
impl Sync for SimpleRange
impl Unpin for SimpleRange
impl UnwindSafe for SimpleRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more