[−][src]Struct nu_protocol::ColumnPath
The fundamental path primitive to descrive how to navigate through a table to get to a sub-item. A path member can be either a word or a number. Words/strings are taken to mean a column name, and numbers are the row number. Taken together they describe which column or row to narrow to in order to get data.
Rows must follow column names, they can't come first. eg) foo.1 is valid where 1.foo is not.
Implementations
impl ColumnPath[src]
pub fn members(&self) -> &Vec<PathMember>[src]
impl ColumnPath[src]
pub fn new(members: Vec<PathMember>) -> Self[src]
Constructs a new ColumnPath.
impl ColumnPath[src]
pub fn iter(&self) -> impl Iterator<Item = &PathMember>[src]
Iterate over the members of the column path
pub fn split_last(&self) -> Option<(&PathMember, &[PathMember])>[src]
Returns the last member and a slice of the remaining members
pub fn last(&self) -> Option<&PathMember>[src]
Returns the last member
Trait Implementations
impl Clone for ColumnPath[src]
fn clone(&self) -> ColumnPath[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ColumnPath[src]
impl<'de> Deserialize<'de> for ColumnPath[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for ColumnPath[src]
impl HasFallibleSpan for ColumnPath[src]
fn maybe_span(&self) -> Option<Span>[src]
Creates a span that will cover the column path, if possible
impl Hash for ColumnPath[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for ColumnPath[src]
fn cmp(&self, other: &ColumnPath) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<ColumnPath> for ColumnPath[src]
fn eq(&self, other: &ColumnPath) -> bool[src]
fn ne(&self, other: &ColumnPath) -> bool[src]
impl PartialOrd<ColumnPath> for ColumnPath[src]
fn partial_cmp(&self, other: &ColumnPath) -> Option<Ordering>[src]
fn lt(&self, other: &ColumnPath) -> bool[src]
fn le(&self, other: &ColumnPath) -> bool[src]
fn gt(&self, other: &ColumnPath) -> bool[src]
fn ge(&self, other: &ColumnPath) -> bool[src]
impl PrettyDebug for ColumnPath[src]
fn pretty(&self) -> DebugDocBuilder[src]
Gets the ColumnPath ready to be pretty-printed
fn to_doc(&self) -> DebugDoc[src]
fn pretty_doc(
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>[src]
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
fn pretty_builder(&self) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>[src]
fn display(&self) -> String[src]
fn plain_string(&self, width: usize) -> String[src]
fn colored_string(&self, width: usize) -> String[src]
impl Serialize for ColumnPath[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for ColumnPath[src]
impl StructuralPartialEq for ColumnPath[src]
Auto Trait Implementations
impl RefUnwindSafe for ColumnPath
impl Send for ColumnPath
impl Sync for ColumnPath
impl Unpin for ColumnPath
impl UnwindSafe for ColumnPath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> HasFallibleSpan for T where
T: HasSpan, [src]
T: HasSpan,
fn maybe_span(&self) -> Option<Span>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoSpanned for T where
T: HasFallibleSpan, [src]
T: HasFallibleSpan,
type Output = T
fn into_spanned(self, _span: impl Into<Span>) -> <T as IntoSpanned>::Output[src]
impl<T> PrettyDebugWithSource for T where
T: PrettyDebug, [src]
T: PrettyDebug,
fn pretty_debug(&self, _source: &str) -> DebugDocBuilder[src]
fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder[src]
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder
fn debug(&self, source: impl Into<Text>) -> String where
Self: Clone, [src]
Self: Clone,
fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self>[src]
impl<T> SpannedItem for T[src]
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>[src]
fn spanned_unknown(self) -> Spanned<Self>[src]
impl<T> TaggedItem for T[src]
fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>[src]
fn tagged_unknown(self) -> Tagged<Self>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,