Cast a single string to boolean with default cast option(safe=true).
(value: &str)
| 428 | |
| 429 | /// Cast a single string to boolean with default cast option(safe=true). |
| 430 | pub fn cast_single_string_to_boolean_default(value: &str) -> Option<bool> { |
| 431 | cast_single_string_to_boolean(value, &CastOptions::default()) |
| 432 | .ok() |
| 433 | .flatten() |
| 434 | } |
| 435 | |
| 436 | pub(crate) fn cast_utf8_to_boolean<OffsetSize>( |
| 437 | from: &dyn Array, |
no test coverage detected