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:
Joseph T. Lyons
2020-07-20 13:31:58 -04:00
committed by GitHub
parent 7b1a15b223
commit 6eb2c94209
7 changed files with 201 additions and 7 deletions

View File

@ -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()