Trait rft::window::Range
[−]
[src]
pub trait Range: Clone { fn start(&self) -> Option<u32> { ... } fn end(&self) -> Option<u32> { ... } fn width(&self, size: usize) -> u32 { ... } fn is_valid(&self, size: usize) -> bool { ... } }
Trait for a window range argument.
Provided Methods
fn start(&self) -> Option<u32>
The start of the range, if any.
fn end(&self) -> Option<u32>
The end of the range, if any.
fn width(&self, size: usize) -> u32
The total width of the range.
fn is_valid(&self, size: usize) -> bool
Checks if the range is valid for the given size.