pub struct UsizeKeyPath<const N: usize>;
Expand description
The same as KeyPath
, but for index-based keypaths as opposed to field-based.
Trait Implementations§
Source§impl<const N: usize> Clone for UsizeKeyPath<N>
impl<const N: usize> Clone for UsizeKeyPath<N>
Source§fn clone(&self) -> UsizeKeyPath<N>
fn clone(&self) -> UsizeKeyPath<N>
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<const N: usize> Default for UsizeKeyPath<N>
impl<const N: usize> Default for UsizeKeyPath<N>
Source§fn default() -> UsizeKeyPath<N>
fn default() -> UsizeKeyPath<N>
Returns the “default value” for a type. Read more
Source§impl<'t, const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for &'t T
impl<'t, const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for &'t T
Source§impl<'t, const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for &'t mut T
impl<'t, const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for &'t mut T
Source§impl<const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for Vec<T>
impl<const N: usize, T> KeyPathIndexable<UsizeKeyPath<N>> for Vec<T>
impl<const N: usize> Copy for UsizeKeyPath<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for UsizeKeyPath<N>
impl<const N: usize> RefUnwindSafe for UsizeKeyPath<N>
impl<const N: usize> Send for UsizeKeyPath<N>
impl<const N: usize> Sync for UsizeKeyPath<N>
impl<const N: usize> Unpin for UsizeKeyPath<N>
impl<const N: usize> UnwindSafe for UsizeKeyPath<N>
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