pub struct KeyPath<const NAME: &'static str>;
Expand description
A struct which stores a single field-based keypath. When nesting keypaths, many of these are
stored in an Aggregator
, in the order and structure defined by that struct’s docs.
Implementations§
Source§impl<const NAME: &'static str> KeyPath<NAME>
impl<const NAME: &'static str> KeyPath<NAME>
pub const fn kp<const N2: &'static str>(self) -> Aggregator<(KeyPath<N2>, Self)>
pub const fn idx<const N: usize>(self) -> Aggregator<(UsizeKeyPath<N>, Self)>
Trait Implementations§
impl<const NAME: &'static str> Copy for KeyPath<NAME>
Auto Trait Implementations§
impl<const NAME: &'static str> Freeze for KeyPath<NAME>
impl<const NAME: &'static str> RefUnwindSafe for KeyPath<NAME>
impl<const NAME: &'static str> Send for KeyPath<NAME>
impl<const NAME: &'static str> Sync for KeyPath<NAME>
impl<const NAME: &'static str> Unpin for KeyPath<NAME>
impl<const NAME: &'static str> UnwindSafe for KeyPath<NAME>
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