Struct nu_protocol::value::dict::Dictionary
source · [−]Expand description
A dictionary that can hold a mapping from names to Values
Fields
entries: IndexMap<String, Value>
Implementations
Find the matching Value for a given key, if possible. If not, return a Primitive::Nothing
Checks if given key exists
Find the matching Value for a key, if possible
Get a mutable entry that matches a key, if possible
Insert a new key/value pair into the dictionary
Trait Implementations
Returns the “default value” for a type. Read more
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 tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Compare two dictionaries for sort ordering
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
Get a Dictionary ready to be pretty-printed
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
Convert to a dictionary, if possible
type Error = ShellError
type Error = ShellError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.