mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:27:44 +02:00
Add flag for case-insensitive sort-by (#2225)
* Add flag for case-insensitive sort-by * Fix test names * Fix documentation comments
This commit is contained in:
@ -85,6 +85,11 @@ impl UntaggedValue {
|
||||
matches!(self, UntaggedValue::Table(_))
|
||||
}
|
||||
|
||||
/// Returns true if this value represents a string
|
||||
pub fn is_string(&self) -> bool {
|
||||
matches!(self, UntaggedValue::Primitive(Primitive::String(_)))
|
||||
}
|
||||
|
||||
/// Returns true if the value represents something other than Nothing
|
||||
pub fn is_some(&self) -> bool {
|
||||
!self.is_none()
|
||||
|
Reference in New Issue
Block a user