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

The start of the range, if any.

The end of the range, if any.

The total width of the range.

Checks if the range is valid for the given size.

Implementors