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_expr::utils - Rust
[go: Go Back, main page]

Function datafusion_expr::utils::only_or_err

source ·
pub fn only_or_err<T>(slice: &[T]) -> Result<&T>
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