#[repr(C)]pub struct IndexRange {
pub start: usize,
pub end: usize,
}
Expand description
A range of indices
Fields§
§start: usize
Start index
end: usize
Index one past the last index
Trait Implementations§
Source§impl Clone for IndexRange
impl Clone for IndexRange
Source§fn clone(&self) -> IndexRange
fn clone(&self) -> IndexRange
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexRange
impl Debug for IndexRange
Source§impl From<IndexRange> for Range<usize>
impl From<IndexRange> for Range<usize>
Source§fn from(r: IndexRange) -> Self
fn from(r: IndexRange) -> Self
Converts to this type from the input type.
impl Copy for IndexRange
Auto Trait Implementations§
impl Freeze for IndexRange
impl RefUnwindSafe for IndexRange
impl Send for IndexRange
impl Sync for IndexRange
impl Unpin for IndexRange
impl UnwindSafe for IndexRange
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