pub struct DataPath {
pub segments: Vec<PathSegment>,
pub data: String,
}Expand description
Resolved path to a data (created during planning from AST DataReference)
Represents a fully resolved path through specs to reach a datum.
Fields§
§segments: Vec<PathSegment>Path segments (each is a cross-spec step)
data: StringFinal data name
Implementations§
Source§impl DataPath
impl DataPath
Sourcepub fn reads_global(&self) -> bool
pub fn reads_global(&self) -> bool
Whether this is data of a global: evaluation data gives it once, at the top, and no row holds it.
Sourcepub fn new(segments: Vec<PathSegment>, data: String) -> Self
pub fn new(segments: Vec<PathSegment>, data: String) -> Self
Create a data path from segments and data name (matches AST DataReference shape)
Trait Implementations§
impl Eq for DataPath
Source§impl Ord for DataPath
impl Ord for DataPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DataPath
impl PartialOrd for DataPath
impl StructuralPartialEq for DataPath
Auto Trait Implementations§
impl Forget for DataPath
impl Freeze for DataPath
impl Move for DataPath
impl RefUnwindSafe for DataPath
impl Send for DataPath
impl Sync for DataPath
impl Unpin for DataPath
impl UnsafeUnpin for DataPathwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DataPath
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.