pub enum UntaggedValue {
    Primitive(Primitive),
    Row(Dictionary),
    Table(Vec<Value>),
    Error(ShellError),
    Block(Box<CapturedBlock>),
}
Expand description

The core structured values that flow through a pipeline

Variants

Primitive(Primitive)

A primitive (or fundamental) type of values

Row(Dictionary)

A table row

Table(Vec<Value>)

A full inner (or embedded) table

Error(ShellError)

An error value that represents an error that occurred as the values in the pipeline were built

Block(Box<CapturedBlock>)

A block of Nu code, eg { ls | get name ; echo "done" } with its captured values

Implementations

Get the corresponding descriptors (column names) associated with this value

Convert this UntaggedValue to a Value with the given Tag

Convert this UntaggedValue into a Value with an empty Tag

Returns true if this value represents a binary

Returns true if this value represents boolean true

Returns true if this value represents a filesize

Returns true if this value represents a duration

Returns true if this value represents a table

Returns true if this value represents a row

Returns true if this value represents a string

Returns true if the value represents something other than Nothing

Returns true if the value represents Nothing

Returns true if the value represents an error

Expect this value to be an error and return it

Expect this value to be a string and return it

Expect this value to be an integer and return it

Helper for creating row values

Helper for creating table values

Helper for creating string values

Helper for creating column-path values

Helper for creating integer values

Helper for creating big integer values

Helper for creating glob pattern values

Helper for creating filepath values

Helper for creating filesize values

Helper for creating decimal values

Helper for creating decimal values

Helper for creating binary (non-text) buffer values

Helper for creating range values

Helper for creating boolean values

Helper for creating date duration values

Helper for creating datatime values

Helper for creating the Nothing value

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Convert a borrowed Value into a borrowed UntaggedValue

Performs the conversion.

Performs the conversion.

Convert a Primitive to an UntaggedValue

Convert an UntaggedValue into a Value with a default tag

Convert a Value into an UntaggedValue

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Get the type name for the UntaggedValue

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Converts a value into a Spanned value

Converts a value into a Spanned value, using an unknown Span

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.