Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
only_or_err in datafusion::optimizer::utils - Rust
[go: Go Back, main page]

pub fn only_or_err<T>(slice: &[T]) -> Result<&T, DataFusionError>
Expand description

Returns the first (and only) element in a slice, or an error

Arguments

  • slice - The slice to extract from

Return value

The first element, or an error