Enum nu_protocol::value::UntaggedValue [−][src]
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
A primitive (or fundamental) type of values
Tuple Fields of Primitive
0: Primitive
A table row
Tuple Fields of Row
0: Dictionary
A full inner (or embedded) table
An error value that represents an error that occurred as the values in the pipeline were built
Tuple Fields of Error
0: ShellError
A block of Nu code, eg { ls | get name ; echo "done" }
with its captured values
Tuple Fields of Block
0: Box<CapturedBlock>
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 filesize
Returns true if this value represents a duration
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 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
pub fn range(
left: (Spanned<Primitive>, RangeInclusion),
right: (Spanned<Primitive>, RangeInclusion)
) -> UntaggedValue
pub fn range(
left: (Spanned<Primitive>, RangeInclusion),
right: (Spanned<Primitive>, RangeInclusion)
) -> UntaggedValue
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Convert a borrowed Value into a borrowed UntaggedValue
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
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
Auto Trait Implementations
impl RefUnwindSafe for UntaggedValue
impl Send for UntaggedValue
impl Sync for UntaggedValue
impl Unpin for UntaggedValue
impl UnwindSafe for UntaggedValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.