#[repr(C)]pub struct CFRange {
pub location: CFIndex,
pub length: CFIndex,
}
Expand description
A structure representing a range of sequential items in a container, such as characters in a buffer or elements in a collection.
Fields§
§location: CFIndex
An integer representing the starting location of the range. For type compatibility with the rest of the system, LONG_MAX is the maximum value you should use for location.
length: CFIndex
An integer representing the number of items in the range. For type compatibility with the rest of the system, LONG_MAX is the maximum value you should use for length.
Implementations§
Trait Implementations§
impl Copy for CFRange
impl Eq for CFRange
impl StructuralPartialEq for CFRange
Auto Trait Implementations§
impl Freeze for CFRange
impl RefUnwindSafe for CFRange
impl Send for CFRange
impl Sync for CFRange
impl Unpin for CFRange
impl UnwindSafe for CFRange
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