pub struct Index(/* private fields */);Expand description
The index of a value in its parent context.
Implementations§
source§impl Index
impl Index
sourcepub const fn new_i32(index: i32) -> Self
pub const fn new_i32(index: i32) -> Self
Create a new None index from a signed 32bit numeric value.
sourcepub const fn new_i64(index: i64) -> Self
pub const fn new_i64(index: i64) -> Self
Create a new None index from a signed 64bit numeric value.
sourcepub const fn new_isize(index: isize) -> Self
pub const fn new_isize(index: isize) -> Self
Create a new None index from a signed numeric value.
Trait Implementations§
source§impl Ord for Index
impl Ord for Index
source§impl PartialOrd for Index
impl PartialOrd for Index
impl Eq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)