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]

Function datafusion::optimizer::utils::only_or_err

source ·
pub fn only_or_err<T>(slice: &[T]) -> Result<&T, DataFusionError>
👎Deprecated since 34.0.0: use datafusion_expr::utils::only_or_err instead
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