Enum nu_protocol::SyntaxShape[][src]

pub enum SyntaxShape {
    Any,
    String,
    ColumnPath,
    FullColumnPath,
    Number,
    Range,
    Int,
    FilePath,
    GlobPattern,
    Block,
    Table,
    Unit,
    Operator,
    RowCondition,
    MathExpression,
}

The syntactic shapes that values must match to be passed into a command. You can think of this as the type-checking that occurs when you call a function.

Variants

Any

Any syntactic form is allowed

String

Strings and string-like bare words are allowed

ColumnPath

A dotted path to navigate the table

FullColumnPath

A dotted path to navigate the table (including variable)

Number

Only a numeric (integer or decimal) value is allowed

Range

A range is allowed (eg, 1..3)

Int

Only an integer value is allowed

FilePath

A filepath is allowed

GlobPattern

A glob pattern is allowed, eg foo*

Block

A block is allowed, eg {start this thing}

Table

A table is allowed, eg [first second]

Unit

A unit value is allowed, eg 10kb

Operator

An operator

RowCondition

A math expression which expands shorthand forms on the lefthand side, eg foo > 1 The shorthand allows us to more easily reach columns inside of the row being passed in

MathExpression

A general math expression, eg the 1 + 2 of = 1 + 2

Trait Implementations

impl Clone for SyntaxShape[src]

impl Copy for SyntaxShape[src]

impl Debug for SyntaxShape[src]

impl<'de> Deserialize<'de> for SyntaxShape[src]

impl Eq for SyntaxShape[src]

impl Hash for SyntaxShape[src]

impl PartialEq<SyntaxShape> for SyntaxShape[src]

impl PrettyDebug for SyntaxShape[src]

fn pretty(&self) -> DebugDocBuilder[src]

Prepare SyntaxShape for pretty-printing

impl Serialize for SyntaxShape[src]

impl StructuralEq for SyntaxShape[src]

impl StructuralPartialEq for SyntaxShape[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PrettyDebugWithSource for T where
    T: PrettyDebug
[src]

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.