forked from extern/nushell
ensure Operator::And errors out with incompatible types (#6638)
This commit is contained in:
@ -1176,6 +1176,10 @@ impl Value {
|
||||
matches!(self, Value::Bool { val: true, .. })
|
||||
}
|
||||
|
||||
pub fn is_false(&self) -> bool {
|
||||
matches!(self, Value::Bool { val: false, .. })
|
||||
}
|
||||
|
||||
pub fn columns(&self) -> Vec<String> {
|
||||
match self {
|
||||
Value::Record { cols, .. } => cols.clone(),
|
||||
|
Reference in New Issue
Block a user