#[repr(C)]pub struct NSRange {
pub location: UInt,
pub length: UInt,
}
Expand description
A structure used to describe a portion of a series, such as characters in a string or objects in an array.
Fields§
§location: UInt
The number of items in the range (can be 0). For type compatibility with the rest of the system, LONG_MAX is the maximum value you should use for length.
length: UInt
The start index (0 is the first, as in C arrays). For type compatibility with the rest of the system, LONG_MAX is the maximum value you should use for location.
Trait Implementations§
impl Copy for NSRange
impl Eq for NSRange
impl StructuralPartialEq for NSRange
Auto Trait Implementations§
impl Freeze for NSRange
impl RefUnwindSafe for NSRange
impl Send for NSRange
impl Sync for NSRange
impl Unpin for NSRange
impl UnwindSafe for NSRange
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