Enum nu_protocol::Type [−][src]
pub enum Type {
}Expand description
Representation of for the type of a value in Nu
Variants
Expand description
A value which has no value
Expand description
An integer-based value
Range(Box<RangeType>)Expand description
A range between two values
Expand description
A decimal (floating point) value
Expand description
A filesize in bytes
Expand description
A string of text
Expand description
A line of text (a string with trailing line ending)
Expand description
A path through a table
Expand description
A glob pattern (like foo*)
Expand description
A boolean value
Expand description
A date value (in UTC)
Expand description
A data duration value
Expand description
A filepath value
Expand description
A binary (non-text) buffer value
Row(Row)Expand description
A row of data
Expand description
A full table of data
Expand description
A block of script (TODO)
Expand description
An error value (TODO)
Expand description
Beginning of stream marker (used as bookend markers rather than actual values)
Expand description
End of stream marker (used as bookend markers rather than actual values)
Implementations
impl Type[src]
impl Type[src]pub fn from_primitive(primitive: &Primitive) -> Type[src]
pub fn from_primitive(primitive: &Primitive) -> Type[src]Convert a Primitive into its corresponding Type
pub fn from_dictionary(dictionary: &Dictionary) -> Type[src]
pub fn from_dictionary(dictionary: &Dictionary) -> Type[src]Convert a dictionary into its corresponding row Type
pub fn from_table<'a>(table: impl IntoIterator<Item = &'a Value>) -> Type[src]
pub fn from_table<'a>(table: impl IntoIterator<Item = &'a Value>) -> Type[src]Convert a table into its corresponding Type
pub fn from_value<'a>(value: impl Into<&'a UntaggedValue>) -> Type[src]
pub fn from_value<'a>(value: impl Into<&'a UntaggedValue>) -> Type[src]Convert a value into its corresponding Type
Trait Implementations
impl<'de> Deserialize<'de> for Type[src]
impl<'de> Deserialize<'de> for Type[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Ord for Type[src]
impl Ord for Type[src]impl PartialOrd<Type> for Type[src]
impl PartialOrd<Type> for Type[src]fn partial_cmp(&self, other: &Type) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Type) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl PrettyDebug for Type[src]
impl PrettyDebug for Type[src]fn pretty(&self) -> DebugDocBuilder[src]
fn pretty(&self) -> DebugDocBuilder[src]Prepare Type for pretty-printing
fn to_doc(&self) -> DebugDoc[src]
fn pretty_doc(
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>[src]
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
fn pretty_builder(&self) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>[src]
fn display(&self) -> String[src]
fn display(&self) -> String[src]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
fn plain_string(&self, width: usize) -> String[src]
fn colored_string(&self, width: usize) -> String[src]
impl Eq for Type[src]
impl StructuralEq for Type[src]
impl StructuralPartialEq for Type[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> PrettyDebugWithSource for T where
T: PrettyDebug, [src]
impl<T> PrettyDebugWithSource for T where
T: PrettyDebug, [src]pub fn pretty_debug(&self, _source: &str) -> DebugDocBuilder[src]
fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder[src]
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder
fn debug(&self, source: impl Into<Text>) -> String where
Self: Clone, [src]
Self: Clone,
fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self>[src]
impl<T> SpannedItem for T[src]
impl<T> SpannedItem for T[src]impl<T> TaggedItem for T[src]
impl<T> TaggedItem for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,