pub struct Locator { /* private fields */ }Expand description
A Locator encodes a path to a nested field as a sequence of 4-byte packed values (sfield codes or array indices) in a compact binary format understood by the host.
§Derived Traits
Debug: Useful for development and debuggingClone: Reasonable for this 72-byte struct when explicit copying is neededEq, PartialEq: Enable comparisons between locators
Note: Copy is intentionally not derived due to the struct’s size (72 bytes).
Large Copy types can lead to accidental expensive copies and poor performance.
Use .clone() when you need to duplicate a locator.
Implementations§
Source§impl Locator
impl Locator
Trait Implementations§
impl Eq for Locator
impl StructuralPartialEq for Locator
Auto Trait Implementations§
impl Freeze for Locator
impl RefUnwindSafe for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnsafeUnpin for Locator
impl UnwindSafe for Locator
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