pub struct ObjectPath {
pub segments: Vec<Arc<str>>,
}Expand description
Structured path for selective loading.
Uses interned string segments to avoid parsing ambiguity and reduce memory allocations when matching paths during parsing.
Fields§
§segments: Vec<Arc<str>>Path segments (e.g., [“data”, “matrices”, “values”])
Implementations§
Source§impl ObjectPath
impl ObjectPath
Sourcepub fn from_strings<I, S>(segments: I) -> Self
pub fn from_strings<I, S>(segments: I) -> Self
Create a new object path from string segments.
Trait Implementations§
Source§impl Clone for ObjectPath
impl Clone for ObjectPath
Source§fn clone(&self) -> ObjectPath
fn clone(&self) -> ObjectPath
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectPath
impl Debug for ObjectPath
Source§impl Hash for ObjectPath
impl Hash for ObjectPath
Source§impl PartialEq for ObjectPath
impl PartialEq for ObjectPath
impl Eq for ObjectPath
impl StructuralPartialEq for ObjectPath
Auto Trait Implementations§
impl Freeze for ObjectPath
impl RefUnwindSafe for ObjectPath
impl Send for ObjectPath
impl Sync for ObjectPath
impl Unpin for ObjectPath
impl UnwindSafe for ObjectPath
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.