Enum nu_protocol::Type
source · [−]pub enum Type {
}
Expand description
Representation of for the type of a value in Nu
Variants
Nothing
A value which has no value
Int
An integer-based value
BigInt
An big integer-based value
Range(Box<RangeType>)
A range between two values
Decimal
A decimal (floating point) value
Filesize
A filesize in bytes
String
A string of text
Line
A line of text (a string with trailing line ending)
ColumnPath
A path through a table
GlobPattern
A glob pattern (like foo*)
Boolean
A boolean value
Date
A date value (in UTC)
Duration
A data duration value
FilePath
A filepath value
Binary
A binary (non-text) buffer value
Row(Row)
A row of data
Table(Vec<Type>)
A full table of data
Block
A block of script (TODO)
Error
An error value (TODO)
BeginningOfStream
Beginning of stream marker (used as bookend markers rather than actual values)
EndOfStream
End of stream marker (used as bookend markers rather than actual values)
Implementations
Convert a Primitive into its corresponding Type
Convert a dictionary into its corresponding row Type
Convert a table into its corresponding Type
Convert a value into its corresponding Type
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
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
Prepare Type for pretty-printing
A convenience method that prints out the document without colors in 70 columns. Generally, you should use plain_string or colored_string if possible, but display() can be useful for trace lines and things like that, where you don’t have control over the terminal. Read more
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.