Enum nu_protocol::Type [−][src]
pub enum Type {
}Expand description
Representation of for the type of a value in Nu
Variants
A value which has no value
An integer-based value
An big integer-based value
Range(Box<RangeType>)A range between two values
A decimal (floating point) value
A filesize in bytes
A string of text
A line of text (a string with trailing line ending)
A path through a table
A glob pattern (like foo*)
A boolean value
A date value (in UTC)
A data duration value
A filepath value
A binary (non-text) buffer value
Row(Row)A row of data
A full table of data
A block of script (TODO)
An error value (TODO)
Beginning of stream marker (used as bookend markers rather than actual values)
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 Typeimpl UnwindSafe for TypeBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder