Sha256: 6d833a3952f8c525e8e4d0370008797c08bb7844d764d58e4ac31f9adc0adacf
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
use magnus::RArray; use crate::{RbExpr, RbPolarsErr, RbResult}; impl RbExpr { pub fn meta_eq(&self, other: &RbExpr) -> bool { self.inner == other.inner } pub fn meta_pop(&self) -> RArray { RArray::from_iter( self.inner .clone() .meta() .pop() .into_iter() .map(RbExpr::from), ) } pub fn meta_root_names(&self) -> Vec<String> { self.inner .clone() .meta() .root_names() .iter() .map(|name| name.to_string()) .collect() } pub fn meta_output_name(&self) -> RbResult<String> { let name = self .inner .clone() .meta() .output_name() .map_err(RbPolarsErr::from)?; Ok(name.to_string()) } pub fn meta_undo_aliases(&self) -> RbExpr { self.inner.clone().meta().undo_aliases().into() } pub fn meta_has_multiple_outputs(&self) -> bool { self.inner.clone().meta().has_multiple_outputs() } pub fn meta_is_regex_projection(&self) -> bool { self.inner.clone().meta().is_regex_projection() } }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
polars-df-0.8.0 | ext/polars/src/expr/meta.rs |
polars-df-0.7.0 | ext/polars/src/expr/meta.rs |
polars-df-0.6.0 | ext/polars/src/expr/meta.rs |
polars-df-0.5.0 | ext/polars/src/expr/meta.rs |