Skip to content

Instantly share code, notes, and snippets.

@elyase
Created February 14, 2025 16:07
Show Gist options
  • Save elyase/789b98cac67706a548ce37780216f4a0 to your computer and use it in GitHub Desktop.
Save elyase/789b98cac67706a548ce37780216f4a0 to your computer and use it in GitHub Desktop.
polars_llms.txt
This file has been truncated, but you can view the full file.
# API reference
The API reference contains detailed descriptions of all public functions and objects. It's the best
place to look if you need information on a specific function.
## Python
The Python API reference is built using Sphinx. It's available in
[our docs](https://docs.pola.rs/api/python/stable/reference/index.html).
## Rust
The Rust API reference is built using Cargo. It's available on
[docs.rs](https://docs.rs/polars/latest/polars/).[Skip to content](https://docs.pola.rs/#key-features)
![logo](https://raw.githubusercontent.com/pola-rs/polars-static/master/banner/polars_github_banner.svg)
# Blazingly Fast DataFrame Library
[![Rust docs latest](https://docs.rs/polars/badge.svg)](https://docs.rs/polars/latest/polars/)[![Rust crates Latest Release](https://img.shields.io/crates/v/polars.svg)](https://crates.io/crates/polars)[![PyPI Latest Release](https://img.shields.io/pypi/v/polars.svg)](https://pypi.org/project/polars/)[![DOI Latest Release](https://zenodo.org/badge/DOI/10.5281/zenodo.7697217.svg)](https://doi.org/10.5281/zenodo.7697217)
Polars is a blazingly fast DataFrame library for manipulating structured data. The core is written
in Rust, and available for Python, R and NodeJS.
## Key features
- **Fast**: Written from scratch in Rust, designed close to the machine and without external
dependencies.
- **I/O**: First class support for all common data storage layers: local, cloud storage & databases.
- **Intuitive API**: Write your queries the way they were intended. Polars, internally, will
determine the most efficient way to execute using its query optimizer.
- **Out of Core**: The streaming API allows you to process your results without requiring all your
data to be in memory at the same time.
- **Parallel**: Utilises the power of your machine by dividing the workload among the available CPU
cores without any additional configuration.
- **Vectorized Query Engine**
- **GPU Support**: Optionally run queries on NVIDIA GPUs for maximum performance for in-memory
workloads.
- **[Apache Arrow support](https://arrow.apache.org/)**: Polars can consume and produce Arrow data
often with zero-copy operations. Note that Polars is not built on a Pyarrow/Arrow implementation.
Instead, Polars has its own compute and buffer implementations.
Users new to DataFrames
A DataFrame is a 2-dimensional data structure that is useful for data manipulation and analysis. With labeled axes for rows and columns, each column can contain different data types, making complex data operations such as merging and aggregation much easier. Due to their flexibility and intuitive way of storing and working with data, DataFrames have become increasingly popular in modern data analytics and engineering.
## Philosophy
The goal of Polars is to provide a lightning fast DataFrame library that:
- Utilizes all available cores on your machine.
- Optimizes queries to reduce unneeded work/memory allocations.
- Handles datasets much larger than your available RAM.
- A consistent and predictable API.
- Adheres to a strict schema (data-types should be known before running the query).
Polars is written in Rust which gives it C/C++ performance and allows it to fully control
performance-critical parts in a query engine.
## Example
[Python](https://docs.pola.rs/#__tabbed_1_1)[Rust](https://docs.pola.rs/#__tabbed_1_2)
[`scan_csv`](https://docs.pola.rs/api/python/stable/reference/api/polars.scan_csv.html) · [`filter`](https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.filter.html) · [`group_by`](https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.group_by.html) · [`collect`](https://docs.pola.rs/api/python/stable/reference/lazyframe/api/polars.LazyFrame.collect.html)
```
import polars as pl
q = (
pl.scan_csv("docs/assets/data/iris.csv")
.filter(pl.col("sepal_length") > 5)
.group_by("species")
.agg(pl.all().sum())
)
df = q.collect()
```
[`LazyCsvReader`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyCsvReader.html) · [`filter`](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html#method.filter) · [`group_by`](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html#method.group_by) · [`collect`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html#method.collect) · [Available on feature streaming](https://docs.pola.rs/user-guide/installation/#feature-flags "To use this functionality enable the feature flag streaming") · [Available on feature csv](https://docs.pola.rs/user-guide/installation/#feature-flags "To use this functionality enable the feature flag csv")
```
use polars::prelude::*;
let q = LazyCsvReader::new("docs/assets/data/iris.csv")
.with_has_header(true)
.finish()?
.filter(col("sepal_length").gt(lit(5)))
.group_by(vec![col("species")])
.agg([col("*").sum()]);
let df = q.collect()?;
```
A more extensive introduction can be found in the [next chapter](https://docs.pola.rs/user-guide/getting-started/).
## Community
Polars has a very active community with frequent releases (approximately weekly). Below are some of
the top contributors to the project:
[![ritchie46](https://avatars.githubusercontent.com/u/3023000?v=4&s=40)](https://github.com/ritchie46)[![stinodego](https://avatars.githubusercontent.com/u/3502351?v=4&s=40)](https://github.com/stinodego)[![alexander-beedie](https://avatars.githubusercontent.com/u/2613171?v=4&s=40)](https://github.com/alexander-beedie)[![MarcoGorelli](https://avatars.githubusercontent.com/u/33491632?v=4&s=40)](https://github.com/MarcoGorelli)[![nameexhaustion](https://avatars.githubusercontent.com/u/93244543?v=4&s=40)](https://github.com/nameexhaustion)[![orlp](https://avatars.githubusercontent.com/u/202547?v=4&s=40)](https://github.com/orlp)[![coastalwhite](https://avatars.githubusercontent.com/u/6944009?v=4&s=40)](https://github.com/coastalwhite)[![reswqa](https://avatars.githubusercontent.com/u/19502505?v=4&s=40)](https://github.com/reswqa)[![zundertj](https://avatars.githubusercontent.com/u/11277667?v=4&s=40)](https://github.com/zundertj)[![ghuls](https://avatars.githubusercontent.com/u/1299177?v=4&s=40)](https://github.com/ghuls)[![mcrumiller](https://avatars.githubusercontent.com/u/1896992?v=4&s=40)](https://github.com/mcrumiller)[![universalmind303](https://avatars.githubusercontent.com/u/21327470?v=4&s=40)](https://github.com/universalmind303)[![lukemanley](https://avatars.githubusercontent.com/u/8519523?v=4&s=40)](https://github.com/lukemanley)[![c-peters](https://avatars.githubusercontent.com/u/22658776?v=4&s=40)](https://github.com/c-peters)[![itamarst](https://avatars.githubusercontent.com/u/3266662?v=4&s=40)](https://github.com/itamarst)[![wence-](https://avatars.githubusercontent.com/u/1126981?v=4&s=40)](https://github.com/wence-)[![matteosantama](https://avatars.githubusercontent.com/u/13473688?v=4&s=40)](https://github.com/matteosantama)[![henryharbeck](https://avatars.githubusercontent.com/u/59268910?v=4&s=40)](https://github.com/henryharbeck)[![Dandandan](https://avatars.githubusercontent.com/u/163737?v=4&s=40)](https://github.com/Dandandan)[![eitsupi](https://avatars.githubusercontent.com/u/50911393?v=4&s=40)](https://github.com/eitsupi)[![deanm0000](https://avatars.githubusercontent.com/u/37878412?v=4&s=40)](https://github.com/deanm0000)[![magarick](https://avatars.githubusercontent.com/u/1757124?v=4&s=40)](https://github.com/magarick)[![cmdlineluser](https://avatars.githubusercontent.com/u/99486669?v=4&s=40)](https://github.com/cmdlineluser)[![ion-elgreco](https://avatars.githubusercontent.com/u/15728914?v=4&s=40)](https://github.com/ion-elgreco)[![moritzwilksch](https://avatars.githubusercontent.com/u/58488209?v=4&s=40)](https://github.com/moritzwilksch)[![jorgecarleitao](https://avatars.githubusercontent.com/u/2772607?v=4&s=40)](https://github.com/jorgecarleitao)[![braaannigan](https://avatars.githubusercontent.com/u/10512793?v=4&s=40)](https://github.com/braaannigan)[![mickvangelderen](https://avatars.githubusercontent.com/u/5444990?v=4&s=40)](https://github.com/mickvangelderen)[![r-brink](https://avatars.githubusercontent.com/u/18343213?v=4&s=40)](https://github.com/r-brink)[![rodrigogiraoserrao](https://avatars.githubusercontent.com/u/5621605?v=4&s=40)](https://github.com/rodrigogiraoserrao)[![petrosbar](https://avatars.githubusercontent.com/u/24761419?v=4&s=40)](https://github.com/petrosbar)[![borchero](https://avatars.githubusercontent.com/u/22455425?v=4&s=40)](https://github.com/borchero)[![jonashaag](https://avatars.githubusercontent.com/u/175722?v=4&s=40)](https://github.com/jonashaag)[![marcvanheerden](https://avatars.githubusercontent.com/u/11750833?v=4&s=40)](https://github.com/marcvanheerden)[![cjermain](https://avatars.githubusercontent.com/u/4521567?v=4&s=40)](https://github.com/cjermain)[![josh](https://avatars.githubusercontent.com/u/137?v=4&s=40)](https://github.com/josh)[![Julian-J-S](https://avatars.githubusercontent.com/u/25177421?v=4&s=40)](https://github.com/Julian-J-S)[![barak1412](https://avatars.githubusercontent.com/u/4324219?v=4&s=40)](https://github.com/barak1412)[![cnpryer](https://avatars.githubusercontent.com/u/14341145?v=4&s=40)](https://github.com/cnpryer)[![ryanrussell](https://avatars.githubusercontent.com/u/523300?v=4&s=40)](https://github.com/ryanrussell)[![flisky](https://avatars.githubusercontent.com/u/656711?v=4&s=40)](https://github.com/flisky)[![messense](https://avatars.githubusercontent.com/u/1556054?v=4&s=40)](https://github.com/messense)[![illumination-k](https://avatars.githubusercontent.com/u/43526984?v=4&s=40)](https://github.com/illumination-k)[![thatlittleboy](https://avatars.githubusercontent.com/u/30731072?v=4&s=40)](https://github.com/thatlittleboy)[![marioloko](https://avatars.githubusercontent.com/u/9556431?v=4&s=40)](https://github.com/marioloko)[![jakob-keller](https://avatars.githubusercontent.com/u/57402305?v=4&s=40)](https://github.com/jakob-keller)[![ruihe774](https://avatars.githubusercontent.com/u/118280419?v=4&s=40)](https://github.com/ruihe774)[![Wainberg](https://avatars.githubusercontent.com/u/7513967?v=4&s=40)](https://github.com/Wainberg)[![rben01](https://avatars.githubusercontent.com/u/766670?v=4&s=40)](https://github.com/rben01)
## Contributing
We appreciate all contributions, from reporting bugs to implementing new features. Read our
[contributing guide](https://docs.pola.rs/development/contributing/) to learn more.
## License
This project is licensed under the terms of the
[MIT license](https://github.com/pola-rs/polars/blob/main/LICENSE).[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct AnonymousScanOptionsCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub struct AnonymousScanOptions {
pub skip_rows: Option<usize>,
pub fmt_str: &'static str,
}
```
Available on **crate feature `lazy`** only.
## Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#structfield.skip_rows) `skip_rows: Option<usize>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#structfield.fmt_str) `fmt_str: &'static str`
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#trait-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Clone-for-AnonymousScanOptions)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Debug-for-AnonymousScanOptions)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Default-for-AnonymousScanOptions)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Deserialize%3C'static%3E-for-AnonymousScanOptions)
### impl [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'static> for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'static>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'static>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Hash-for-AnonymousScanOptions)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-PartialEq-for-AnonymousScanOptions)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Serialize-for-AnonymousScanOptions)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Eq-for-AnonymousScanOptions)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-StructuralPartialEq-for-AnonymousScanOptions)
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Freeze-for-AnonymousScanOptions)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-RefUnwindSafe-for-AnonymousScanOptions)
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Send-for-AnonymousScanOptions)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Sync-for-AnonymousScanOptions)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Unpin-for-AnonymousScanOptions)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-UnwindSafe-for-AnonymousScanOptions)
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [AnonymousScanOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html "struct polars::prelude::AnonymousScanOptions")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.AnonymousScanOptions.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[Skip to content](https://docs.pola.rs/development/contributing/ide/#ide-configuration)
# IDE configuration
Using an integrated development environments (IDE) and configuring it properly will help you work on
Polars more effectively. This page contains some recommendations for configuring popular IDEs.
## Visual Studio Code
Make sure to configure VSCode to use the virtual environment created by the Makefile.
### Extensions
The extensions below are recommended.
#### rust-analyzer
If you work on the Rust code at all, you will need the
[rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
extension. This extension provides code completion for the Rust code.
For it to work well for the Polars code base, add the following settings to your
`.vscode/settings.json`:
```
{
"rust-analyzer.cargo.features": "all",
"rust-analyzer.cargo.targetDir": true
}
```
#### Ruff
The [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) extension will
help you conform to the formatting requirements of the Python code. We use both the Ruff linter and
formatter. It is recommended to configure the extension to use the Ruff installed in your
environment. This will make it use the correct Ruff version and configuration.
```
{
"ruff.importStrategy": "fromEnvironment"
}
```
#### CodeLLDB
The [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) extension is
useful for debugging Rust code. You can also debug Rust code called from Python (see section below).
### Debugging
Due to the way that Python and Rust interoperate, debugging the Rust side of development from Python
calls can be difficult. This guide shows how to set up a debugging environment that makes debugging
Rust code called from a Python script painless.
#### Preparation
Start by installing the CodeLLDB extension (see above). Then add the following two configurations to
your `launch.json` file. This file is usually found in the `.vscode` folder of your project root.
See the
[official VSCode documentation](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations)
for more information about the `launch.json` file.
`launch.json`
```
{
"configurations": [\
{\
"name": "Debug Rust/Python",\
"type": "debugpy",\
"request": "launch",\
"program": "${workspaceFolder}/py-polars/debug/launch.py",\
"args": [\
"${file}"\
],\
"console": "internalConsole",\
"justMyCode": true,\
"serverReadyAction": {\
"pattern": "pID = ([0-9]+)",\
"action": "startDebugging",\
"name": "Rust LLDB"\
}\
},\
{\
"name": "Rust LLDB",\
"pid": "0",\
"type": "lldb",\
"request": "attach",\
"program": "${workspaceFolder}/py-polars/.venv/bin/python",\
"stopOnEntry": false,\
"sourceLanguages": [\
"rust"\
],\
"presentation": {\
"hidden": true\
}\
}\
]
}
```
Info
On some systems, the LLDB debugger will not attach unless [ptrace protection](https://linux-audit.com/protect-ptrace-processes-kernel-yama-ptrace_scope) is disabled.
To disable, run the following command:
```
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
```
#### Running the debugger
1. Create a Python script containing Polars code. Ensure that your virtual environment is activated.
2. Set breakpoints in any `.rs` or `.py` file.
3. In the `Run and Debug` panel on the left, select `Debug Rust/Python` from the drop-down menu on
top and click the `Start Debugging` button.
At this point, your debugger should stop on breakpoints in any `.rs` file located within the
codebase.
#### Details
The debugging feature runs via the specially-designed VSCode launch configuration shown above. The
initial Python debugger is launched using a special launch script located at
`py-polars/debug/launch.py` and passes the name of the script to be debugged (the target script) as
an input argument. The launch script determines the process ID, writes this value into the
`launch.json` configuration file, compiles the target script and runs it in the current environment.
At this point, a second (Rust) debugger is attached to the Python debugger. The result is two
simultaneous debuggers operating on the same running instance. Breakpoints in the Python code will
stop on the Python debugger and breakpoints in the Rust code will stop on the Rust debugger.
## JetBrains (PyCharm, RustRover, CLion)
Info
More information needed.[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct TrueTCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/mod.rs.html#62)
```
pub struct TrueT;
```
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Freeze-for-TrueT)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-RefUnwindSafe-for-TrueT)
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Send-for-TrueT)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Sync-for-TrueT)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Unpin-for-TrueT)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-UnwindSafe-for-TrueT)
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [TrueT](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html "struct polars::prelude::TrueT")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.TrueT.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct ListNameSpaceCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub struct ListNameSpace(pub Expr);
```
Available on **crate feature `lazy`** only.
Expand description
Specialized expressions for [`Series`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series") of [`DataType::List`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html#variant.List "variant polars::prelude::DataType::List").
## Tuple Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#structfield.0) `0: Expr`
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-ListNameSpace)
### impl [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
#### pub fn [len](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.len)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Return the number of elements in each list.
Null values are treated like regular elements in this context.
#### pub fn [max](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Compute the maximum of the items in every sublist.
#### pub fn [min](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Compute the minimum of the items in every sublist.
#### pub fn [sum](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.sum)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Compute the sum the items in every sublist.
#### pub fn [mean](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.mean)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Compute the mean of every sublist and return a `Series` of dtype `Float64`
#### pub fn [median](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.median)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
#### pub fn [std](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.std)(self, ddof: [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
#### pub fn [var](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.var)(self, ddof: [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
#### pub fn [sort](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.sort)(self, options: [SortOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SortOptions.html "struct polars::prelude::SortOptions")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Sort every sublist.
#### pub fn [reverse](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.reverse)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Reverse every sublist
#### pub fn [unique](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Keep only the unique values in every sublist.
#### pub fn [unique\_stable](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.unique_stable)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Keep only the unique values in every sublist.
#### pub fn [n\_unique](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.n_unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
#### pub fn [get](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.get)(self, index: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr"), null\_on\_oob: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Get items in every sublist by index.
#### pub fn [first](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.first)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Get first item of every sublist.
#### pub fn [last](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.last)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Get last item of every sublist.
#### pub fn [join](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.join)(self, separator: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr"), ignore\_nulls: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Join all string items in a sublist and place a separator between them.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#error) Error
This errors if inner type of list `!= DataType::String`.
#### pub fn [arg\_min](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.arg_min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Return the index of the minimal value of every sublist
#### pub fn [arg\_max](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.arg_max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Return the index of the maximum value of every sublist
#### pub fn [diff](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.diff)(self, n: [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html), null\_behavior: [NullBehavior](https://docs.pola.rs/api/rust/dev/polars/series/ops/enum.NullBehavior.html "enum polars::series::ops::NullBehavior")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Available on **crate feature `diff`** only.
Diff every sublist.
#### pub fn [shift](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.shift)(self, periods: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Shift every sublist.
#### pub fn [slice](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.slice)(self, offset: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr"), length: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Slice every sublist.
#### pub fn [head](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.head)(self, n: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Get the head of every sublist
#### pub fn [tail](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.tail)(self, n: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Get the tail of every sublist
#### pub fn [to\_array](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.to_array)(self, width: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Available on **crate feature `dtype-array`** only.
Convert a List column into an Array column with the same inner data type.
#### pub fn [contains](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#method.contains) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr") >,
Available on **crate feature `is_in`** only.
Check if the list array contain an element
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/list.rs.html#18) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-IntoListNameSpace-for-ListNameSpace)
### impl [IntoListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.IntoListNameSpace.html "trait polars::prelude::IntoListNameSpace") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/list.rs.html#19) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.into_list_name_space)
#### fn [into\_list\_name\_space](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.IntoListNameSpace.html\#tymethod.into_list_name_space)(self) -> [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/list.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-ListNameSpaceExtension-for-ListNameSpace)
### impl [ListNameSpaceExtension](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.ListNameSpaceExtension.html "trait polars::prelude::ListNameSpaceExtension") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/list.rs.html#153) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.eval)
#### fn [eval](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.ListNameSpaceExtension.html\#method.eval)(self, expr: [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr"), parallel: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
Run any [`Expr`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr") on these lists elements
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Freeze-for-ListNameSpace)
### impl ! [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-RefUnwindSafe-for-ListNameSpace)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Send-for-ListNameSpace)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Sync-for-ListNameSpace)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Unpin-for-ListNameSpace)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-UnwindSafe-for-ListNameSpace)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html "struct polars::prelude::ListNameSpace")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ListNameSpace.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct JoinArgsCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#25)
```
pub struct JoinArgs {
pub how: JoinType,
pub validation: JoinValidation,
pub suffix: Option<PlSmallStr>,
pub slice: Option<(i64, usize)>,
pub join_nulls: bool,
pub coalesce: JoinCoalesce,
pub maintain_order: MaintainOrderJoin,
}
```
Available on **crate feature `lazy`** only.
## Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.how) `how: JoinType`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.validation) `validation: JoinValidation`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.suffix) `suffix: Option<PlSmallStr>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.slice) `slice: Option<(i64, usize)>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.join_nulls) `join_nulls: bool`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.coalesce) `coalesce: JoinCoalesce`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#structfield.maintain_order) `maintain_order: MaintainOrderJoin`
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#35) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-JoinArgs)
### impl [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#36)
#### pub fn [should\_coalesce](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#method.should_coalesce)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#117) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-JoinArgs-1)
### impl [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#118)
#### pub fn [new](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#method.new)(how: [JoinType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.JoinType.html "enum polars::prelude::JoinType")) -\> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#130)
#### pub fn [with\_coalesce](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#method.with_coalesce)(self, coalesce: [JoinCoalesce](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.JoinCoalesce.html "enum polars::prelude::JoinCoalesce")) -\> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#135)
#### pub fn [with\_suffix](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#method.with_suffix)(self, suffix: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >) -\> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#140)
#### pub fn [suffix](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#method.suffix)(&self) -> & [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Clone-for-JoinArgs)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Debug-for-JoinArgs)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Default-for-JoinArgs)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#24) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Deserialize%3C'de%3E-for-JoinArgs)
### impl<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#24) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#146) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-From%3CJoinType%3E-for-JoinArgs)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [JoinType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.JoinType.html "enum polars::prelude::JoinType") \> for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#147) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [JoinType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.JoinType.html "enum polars::prelude::JoinType")) -\> [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Hash-for-JoinArgs)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-PartialEq-for-JoinArgs)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#24) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Serialize-for-JoinArgs)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#24) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Eq-for-JoinArgs)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/args.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-StructuralPartialEq-for-JoinArgs)
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Freeze-for-JoinArgs)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-RefUnwindSafe-for-JoinArgs)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Send-for-JoinArgs)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Sync-for-JoinArgs)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Unpin-for-JoinArgs)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-UnwindSafe-for-JoinArgs)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [JoinArgs](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html "struct polars::prelude::JoinArgs")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.JoinArgs.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Module replaceCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_time/lib.rs.html#17)
Available on **crate feature `temporal` and (crate features `dtype-date` or `dtype-datetime`)** only.
## Functions [§](https://docs.pola.rs/api/rust/dev/polars/prelude/replace/index.html\#functions)
- [replace\_date](https://docs.pola.rs/api/rust/dev/polars/prelude/replace/fn.replace_date.html "fn polars::prelude::replace::replace_date") `dtype-date`
Replace specific time component of a `DateChunked` with a specified value.
- [replace\_datetime](https://docs.pola.rs/api/rust/dev/polars/prelude/replace/fn.replace_datetime.html "fn polars::prelude::replace::replace_datetime") `dtype-datetime`
Replace specific time component of a `DatetimeChunked` with a specified value.[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Trait NamedFromOwnedCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#20)
```
pub trait NamedFromOwned<T> {
// Required method
fn from_vec(name: PlSmallStr, _: T) -> Self;
}
```
## Required Methods [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html\#required-methods)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#22)
#### fn [from\_vec](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html\#tymethod.from_vec)(name: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"), \_: T) -> Self
Initialize by name and values.
## Dyn Compatibility [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html\#dyn-compatibility)
This trait is **not** [dyn compatible](https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety).
_In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe._
## Implementors [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html\#implementors)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#49) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cf32%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#50) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cf64%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#36) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Ci8%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [i8](https://doc.rust-lang.org/nightly/std/primitive.i8.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#38) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Ci16%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [i16](https://doc.rust-lang.org/nightly/std/primitive.i16.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#39) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Ci32%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#40) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Ci64%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#42) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Ci128%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [i128](https://doc.rust-lang.org/nightly/std/primitive.i128.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#44) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cu8%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#46) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cu16%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#47) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cu32%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/named_from.rs.html#48) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html#impl-NamedFromOwned%3CVec%3Cu64%3E%3E-for-Series)
### impl [NamedFromOwned](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NamedFromOwned.html "trait polars::prelude::NamedFromOwned") < [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >\> for [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series")[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct FieldCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#13)
```
pub struct Field {
pub name: PlSmallStr,
pub dtype: DataType,
}
```
Expand description
Characterizes the name and the [`DataType`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType") of a column.
## Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#structfield.name) `name: PlSmallStr`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#structfield.dtype) `dtype: DataType`
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#26) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Field)
### impl [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#38)
#### pub fn [new](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.new)(name: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"), dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Creates a new `Field`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example) Example
```
let f1 = Field::new("Fruit name".into(), DataType::String);
let f2 = Field::new("Lawful".into(), DataType::Boolean);
let f2 = Field::new("Departure".into(), DataType::Time);
```
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#53)
#### pub fn [name](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.name)(&self) -> & [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Returns a reference to the `Field` name.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example-1) Example
```
let f = Field::new("Year".into(), DataType::Int32);
assert_eq!(f.name(), "Year");
```
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#68)
#### pub fn [dtype](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.dtype)(&self) -> & [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
Returns a reference to the `Field` datatype.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example-2) Example
```
let f = Field::new("Birthday".into(), DataType::Date);
assert_eq!(f.dtype(), &DataType::Date);
```
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#83)
#### pub fn [coerce](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.coerce)(&mut self, dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType"))
Sets the `Field` datatype.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example-3) Example
```
let mut f = Field::new("Temperature".into(), DataType::Int32);
f.coerce(DataType::Float32);
assert_eq!(f, Field::new("Temperature".into(), DataType::Float32));
```
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#98)
#### pub fn [set\_name](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.set_name)(&mut self, name: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"))
Sets the `Field` name.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example-4) Example
```
let mut f = Field::new("Atomic number".into(), DataType::UInt32);
f.set_name("Proton".into());
assert_eq!(f, Field::new("Proton".into(), DataType::UInt32));
```
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#103)
#### pub fn [with\_name](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.with_name)(self, name: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Returns this `Field`, renamed.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#119)
#### pub fn [to\_arrow](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#method.to_arrow)(&self, compat\_level: [CompatLevel](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.CompatLevel.html "struct polars::prelude::CompatLevel")) -\> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ArrowField.html "struct polars::prelude::ArrowField")
Converts the `Field` to an `arrow::datatypes::Field`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#example-5) Example
```
let f = Field::new("Value".into(), DataType::Int64);
let af = arrow::datatypes::Field::new("Value".into(), arrow::datatypes::ArrowDataType::Int64, true);
assert_eq!(f.to_arrow(CompatLevel::newest()), af);
```
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#124) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-AsRef%3CDataType%3E-for-Field)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType") \> for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#125) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.as_ref)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> & [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
Converts this type into a shared reference of the (usually inferred) input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Clone-for-Field)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Debug-for-Field)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#11) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Deserialize%3C'de%3E-for-Field)
### impl<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#11) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/frame/row/mod.rs.html#234) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-From%3C%26AnyValue%3C'a%3E%3E-for-Field)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>> for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/frame/row/mod.rs.html#235) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>) -> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#240) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-From%3C%26ArrowField%3E-for-Field)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ArrowField.html "struct polars::prelude::ArrowField") \> for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#241) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(f: & [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ArrowField.html "struct polars::prelude::ArrowField")) -\> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Hash-for-Field)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-PartialEq-for-Field)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#11) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Serialize-for-Field)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#11) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Eq-for-Field)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/field.rs.html#8) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-StructuralPartialEq-for-Field)
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Freeze-for-Field)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-RefUnwindSafe-for-Field)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Send-for-Field)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Sync-for-Field)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Unpin-for-Field)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-UnwindSafe-for-Field)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.from-2)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T# Crate polars\_coreCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/lib.rs.html#1-85)
## Re-exports [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#reexports)
- `pub use datatypes::SchemaExtPl;`
- `pub use hashing::IdBuildHasher;`
## Modules [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#modules)
- [chunked\_array](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/index.html "mod polars_core::chunked_array")
The typed heart of every Series column.
- [config](https://docs.pola.rs/api/rust/dev/polars_core/config/index.html "mod polars_core::config")
- [datatypes](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/index.html "mod polars_core::datatypes")
Data types supported by Polars.
- [error](https://docs.pola.rs/api/rust/dev/polars_core/error/index.html "mod polars_core::error")
- [fmt](https://docs.pola.rs/api/rust/dev/polars_core/fmt/index.html "mod polars_core::fmt")
- [frame](https://docs.pola.rs/api/rust/dev/polars_core/frame/index.html "mod polars_core::frame")
DataFrame module.
- [functions](https://docs.pola.rs/api/rust/dev/polars_core/functions/index.html "mod polars_core::functions")
Functions
- [hashing](https://docs.pola.rs/api/rust/dev/polars_core/hashing/index.html "mod polars_core::hashing")
- [prelude](https://docs.pola.rs/api/rust/dev/polars_core/prelude/index.html "mod polars_core::prelude")
Everything you need to get started with Polars.
- [random](https://docs.pola.rs/api/rust/dev/polars_core/random/index.html "mod polars_core::random") `random`
- [scalar](https://docs.pola.rs/api/rust/dev/polars_core/scalar/index.html "mod polars_core::scalar")
- [schema](https://docs.pola.rs/api/rust/dev/polars_core/schema/index.html "mod polars_core::schema")
- [serde](https://docs.pola.rs/api/rust/dev/polars_core/serde/index.html "mod polars_core::serde") `serde`
- [series](https://docs.pola.rs/api/rust/dev/polars_core/series/index.html "mod polars_core::series")
Type agnostic columnar data structure.
- [testing](https://docs.pola.rs/api/rust/dev/polars_core/testing/index.html "mod polars_core::testing")
Testing utilities.
- [utils](https://docs.pola.rs/api/rust/dev/polars_core/utils/index.html "mod polars_core::utils")
## Macros [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#macros)
- [apply\_method\_all\_arrow\_series](https://docs.pola.rs/api/rust/dev/polars_core/macro.apply_method_all_arrow_series.html "macro polars_core::apply_method_all_arrow_series")
- [apply\_method\_physical\_integer](https://docs.pola.rs/api/rust/dev/polars_core/macro.apply_method_physical_integer.html "macro polars_core::apply_method_physical_integer")
- [apply\_method\_physical\_numeric](https://docs.pola.rs/api/rust/dev/polars_core/macro.apply_method_physical_numeric.html "macro polars_core::apply_method_physical_numeric")
- [assert\_df\_eq](https://docs.pola.rs/api/rust/dev/polars_core/macro.assert_df_eq.html "macro polars_core::assert_df_eq")
Asserts that two expressions of type [`DataFrame`](https://docs.pola.rs/api/rust/dev/polars_core/frame/struct.DataFrame.html "struct polars_core::frame::DataFrame") are equal according to [`DataFrame::equals`](https://docs.pola.rs/api/rust/dev/polars_core/frame/struct.DataFrame.html#method.equals "method polars_core::frame::DataFrame::equals")
at runtime.
- [df](https://docs.pola.rs/api/rust/dev/polars_core/macro.df.html "macro polars_core::df")
- [downcast\_as\_macro\_arg\_physical](https://docs.pola.rs/api/rust/dev/polars_core/macro.downcast_as_macro_arg_physical.html "macro polars_core::downcast_as_macro_arg_physical")
Apply a macro on the Downcasted ChunkedArrays of DataTypes that are logical numerics.
So no logical.
- [downcast\_as\_macro\_arg\_physical\_mut](https://docs.pola.rs/api/rust/dev/polars_core/macro.downcast_as_macro_arg_physical_mut.html "macro polars_core::downcast_as_macro_arg_physical_mut")
Apply a macro on the Downcasted ChunkedArrays of DataTypes that are logical numerics.
So no logical.
- [match\_arrow\_dtype\_apply\_macro\_ca](https://docs.pola.rs/api/rust/dev/polars_core/macro.match_arrow_dtype_apply_macro_ca.html "macro polars_core::match_arrow_dtype_apply_macro_ca")
Apply a macro on the Downcasted ChunkedArrays
- [match\_dtype\_to\_logical\_apply\_macro](https://docs.pola.rs/api/rust/dev/polars_core/macro.match_dtype_to_logical_apply_macro.html "macro polars_core::match_dtype_to_logical_apply_macro")
Apply a macro on the Series
- [match\_dtype\_to\_physical\_apply\_macro](https://docs.pola.rs/api/rust/dev/polars_core/macro.match_dtype_to_physical_apply_macro.html "macro polars_core::match_dtype_to_physical_apply_macro")
Apply a macro on the Series
- [with\_match\_physical\_float\_polars\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_float_polars_type.html "macro polars_core::with_match_physical_float_polars_type")
- [with\_match\_physical\_float\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_float_type.html "macro polars_core::with_match_physical_float_type")
- [with\_match\_physical\_integer\_polars\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_integer_polars_type.html "macro polars_core::with_match_physical_integer_polars_type")
- [with\_match\_physical\_integer\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_integer_type.html "macro polars_core::with_match_physical_integer_type")
- [with\_match\_physical\_numeric\_polars\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_numeric_polars_type.html "macro polars_core::with_match_physical_numeric_polars_type")
- [with\_match\_physical\_numeric\_type](https://docs.pola.rs/api/rust/dev/polars_core/macro.with_match_physical_numeric_type.html "macro polars_core::with_match_physical_numeric_type")
## Structs [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#structs)
- [StringCacheHolder](https://docs.pola.rs/api/rust/dev/polars_core/struct.StringCacheHolder.html "struct polars_core::StringCacheHolder") `dtype-categorical`
Enable the global string cache as long as the object is alive ( [RAII](https://en.wikipedia.org/wiki/Resource_acquisition_is_initialization)).
## Statics [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#statics)
- [POOL](https://docs.pola.rs/api/rust/dev/polars_core/static.POOL.html "static polars_core::POOL") Non- `target_family="wasm"`
- [PROCESS\_ID](https://docs.pola.rs/api/rust/dev/polars_core/static.PROCESS_ID.html "static polars_core::PROCESS_ID")
- [SINGLE\_LOCK](https://docs.pola.rs/api/rust/dev/polars_core/static.SINGLE_LOCK.html "static polars_core::SINGLE_LOCK")
## Functions [§](https://docs.pola.rs/api/rust/dev/polars_core/index.html\#functions)
- [disable\_string\_cache](https://docs.pola.rs/api/rust/dev/polars_core/fn.disable_string_cache.html "fn polars_core::disable_string_cache") `dtype-categorical`
Disable and clear the global string cache.
- [enable\_string\_cache](https://docs.pola.rs/api/rust/dev/polars_core/fn.enable_string_cache.html "fn polars_core::enable_string_cache") `dtype-categorical`
Enable the global string cache.
- [using\_string\_cache](https://docs.pola.rs/api/rust/dev/polars_core/fn.using_string_cache.html "fn polars_core::using_string_cache") `dtype-categorical`
Check whether the global string cache is enabled.[polars\_lazy](https://docs.pola.rs/api/rust/dev/polars_lazy/index.html):: [dsl](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/index.html)
# Enum ExprCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub enum Expr {
Show 28 variants Alias(Arc<Expr>, PlSmallStr),
Column(PlSmallStr),
Columns(Arc<[PlSmallStr]>),
DtypeColumn(Vec<DataType>),
IndexColumn(Arc<[i64]>),
Literal(LiteralValue),
BinaryExpr {
left: Arc<Expr>,
op: Operator,
right: Arc<Expr>,
},
Cast {
expr: Arc<Expr>,
dtype: DataType,
options: CastOptions,
},
Sort {
expr: Arc<Expr>,
options: SortOptions,
},
Gather {
expr: Arc<Expr>,
idx: Arc<Expr>,
returns_scalar: bool,
},
SortBy {
expr: Arc<Expr>,
by: Vec<Expr>,
sort_options: SortMultipleOptions,
},
Agg(AggExpr),
Ternary {
predicate: Arc<Expr>,
truthy: Arc<Expr>,
falsy: Arc<Expr>,
},
Function {
input: Vec<Expr>,
function: FunctionExpr,
options: FunctionOptions,
},
Explode(Arc<Expr>),
Filter {
input: Arc<Expr>,
by: Arc<Expr>,
},
Window {
function: Arc<Expr>,
partition_by: Vec<Expr>,
order_by: Option<(Arc<Expr>, SortOptions)>,
options: WindowType,
},
Wildcard,
Slice {
input: Arc<Expr>,
offset: Arc<Expr>,
length: Arc<Expr>,
},
Exclude(Arc<Expr>, Vec<Excluded>),
KeepName(Arc<Expr>),
Len,
Nth(i64),
RenameAlias {
function: SpecialEq<Arc<dyn RenameAliasFn>>,
expr: Arc<Expr>,
},
Field(Arc<[PlSmallStr]>),
AnonymousFunction {
input: Vec<Expr>,
function: LazySerde<SpecialEq<Arc<dyn ColumnsUdf>>>,
output_type: SpecialEq<Arc<dyn FunctionOutputField>>,
options: FunctionOptions,
},
SubPlan(SpecialEq<Arc<DslPlan>>, Vec<String>),
Selector(Selector),
}
```
Expand description
Expressions that can be used in various contexts.
Queries consist of multiple expressions.
When using the polars lazy API, don’t construct an `Expr` directly; instead, create one using
the functions in the `polars_lazy::dsl` module. See that module’s docs for more info.
## Variants [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#variants)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Alias)
### Alias( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr"))
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Column)
### Column( [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr"))
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Columns)
### Columns( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <\[ [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr")\]>)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.DtypeColumn)
### DtypeColumn( [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType") >)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.IndexColumn)
### IndexColumn( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <\[ [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html)\]>)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Literal)
### Literal( [LiteralValue](https://docs.pola.rs/api/rust/dev/polars_lazy/prelude/enum.LiteralValue.html "enum polars_lazy::prelude::LiteralValue"))
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.BinaryExpr)
### BinaryExpr
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.BinaryExpr.field.left) `left: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.BinaryExpr.field.op) `op: Operator`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.BinaryExpr.field.right) `right: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Cast)
### Cast
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Cast.field.expr) `expr: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Cast.field.dtype) `dtype: DataType`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Cast.field.options) `options: CastOptions`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Sort)
### Sort
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Sort.field.expr) `expr: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Sort.field.options) `options: SortOptions`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Gather)
### Gather
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Gather.field.expr) `expr: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Gather.field.idx) `idx: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Gather.field.returns_scalar) `returns_scalar: bool`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.SortBy)
### SortBy
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.SortBy.field.expr) `expr: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.SortBy.field.by) `by: Vec<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.SortBy.field.sort_options) `sort_options: SortMultipleOptions`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Agg)
### Agg( [AggExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.AggExpr.html "enum polars_lazy::dsl::AggExpr"))
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Ternary)
### Ternary
A ternary operation
if true then “foo” else “bar”
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Ternary.field.predicate) `predicate: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Ternary.field.truthy) `truthy: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Ternary.field.falsy) `falsy: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Function)
### Function
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Function.field.input) `input: Vec<Expr>`
function arguments
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Function.field.function) `function: FunctionExpr`
function to apply
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Function.field.options) `options: FunctionOptions`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Explode)
### Explode( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Filter)
### Filter
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Filter.field.input) `input: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Filter.field.by) `by: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Window)
### Window
Polars flavored window functions.
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Window.field.function) `function: Arc<Expr>`
Also has the input. i.e. avg(“foo”)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Window.field.partition_by) `partition_by: Vec<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Window.field.order_by) `order_by: Option<(Arc<Expr>, SortOptions)>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Window.field.options) `options: WindowType`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Wildcard)
### Wildcard
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Slice)
### Slice
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Slice.field.input) `input: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Slice.field.offset) `offset: Arc<Expr>`
length is not yet known so we accept negative offsets
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Slice.field.length) `length: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Exclude)
### Exclude( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [Excluded](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Excluded.html "enum polars_lazy::dsl::Excluded") >)
Can be used in a select statement to exclude a column from selection
TODO: See if we can replace `Vec<Excluded>` with `Arc<Excluded>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.KeepName)
### KeepName( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >)
Set root name as Alias
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Len)
### Len
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Nth)
### Nth( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html))
Take the nth column in the `DataFrame`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.RenameAlias)
### RenameAlias
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.RenameAlias.field.function) `function: SpecialEq<Arc<dyn RenameAliasFn>>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.RenameAlias.field.expr) `expr: Arc<Expr>`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Field)
### Field( [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <\[ [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr")\]>)
Available on **crate feature `dtype-struct`** only.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.AnonymousFunction)
### AnonymousFunction
#### Fields
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.AnonymousFunction.field.input) `input: Vec<Expr>`
function arguments
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.AnonymousFunction.field.function) `function: LazySerde<SpecialEq<Arc<dyn ColumnsUdf>>>`
function to apply
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.AnonymousFunction.field.output_type) `output_type: SpecialEq<Arc<dyn FunctionOutputField>>`
output dtype of the function
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.AnonymousFunction.field.options) `options: FunctionOptions`
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.SubPlan)
### SubPlan( [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") < [DslPlan](https://docs.pola.rs/api/rust/dev/polars_lazy/prelude/enum.DslPlan.html "enum polars_lazy::prelude::DslPlan") >>, [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") >)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#variant.Selector)
### Selector( [Selector](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Selector.html "enum polars_lazy::dsl::Selector"))
Expressions in this node should only be expanding
e.g.
`Expr::Columns` `Expr::Dtypes` `Expr::Wildcard` `Expr::Exclude`
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#implementations)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [floor\_div](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.floor_div)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Floor divide `self` by `rhs`.
#### pub fn [pow](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.pow) <E>(self, exponent: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Raise expression to the power `exponent`
#### pub fn [sqrt](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sqrt)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Compute the square root of the given expression
#### pub fn [cbrt](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cbrt)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Compute the cube root of the given expression
#### pub fn [cos](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cos)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the cosine of the given expression
#### pub fn [cot](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cot)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the cotangent of the given expression
#### pub fn [sin](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sin)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the sine of the given expression
#### pub fn [tan](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.tan)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the tangent of the given expression
#### pub fn [arccos](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arccos)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse cosine of the given expression
#### pub fn [arcsin](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arcsin)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse sine of the given expression
#### pub fn [arctan](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arctan)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse tangent of the given expression
#### pub fn [arctan2](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arctan2)(self, x: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse tangent of the given expression, with the angle expressed as the argument of a complex number
#### pub fn [cosh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cosh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the hyperbolic cosine of the given expression
#### pub fn [sinh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sinh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the hyperbolic sine of the given expression
#### pub fn [tanh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.tanh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the hyperbolic tangent of the given expression
#### pub fn [arccosh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arccosh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse hyperbolic cosine of the given expression
#### pub fn [arcsinh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arcsinh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse hyperbolic sine of the given expression
#### pub fn [arctanh](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arctanh)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Compute the inverse hyperbolic tangent of the given expression
#### pub fn [degrees](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.degrees)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Convert from radians to degrees
#### pub fn [radians](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.radians)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `trigonometry`** only.
Convert from degrees to radians
#### pub fn [sign](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sign)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `sign`** only.
Compute the sign of the given expression
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-1)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [bitwise\_count\_ones](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_count_ones)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number of set bits.
#### pub fn [bitwise\_count\_zeros](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_count_zeros)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number of unset bits.
#### pub fn [bitwise\_leading\_ones](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_leading_ones)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number most-significant set bits before seeing an unset bit.
#### pub fn [bitwise\_leading\_zeros](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_leading_zeros)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number most-significant unset bits before seeing an set bit.
#### pub fn [bitwise\_trailing\_ones](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_trailing_ones)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number least-significant set bits before seeing an unset bit.
#### pub fn [bitwise\_trailing\_zeros](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_trailing_zeros)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Evaluate the number least-significant unset bits before seeing an set bit.
#### pub fn [bitwise\_and](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_and)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Perform an aggregation of bitwise ANDs
#### pub fn [bitwise\_or](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_or)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Perform an aggregation of bitwise ORs
#### pub fn [bitwise\_xor](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bitwise_xor)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Perform an aggregation of bitwise XORs
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-2)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [to\_field](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.to_field)( &self, schema: &Schema< [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType") >, ctxt: Context, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Field](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/field/struct.Field.html "struct polars_core::datatypes::field::Field"), PolarsError>
Get Field result of the expression. The schema is the input data.
#### pub fn [extract\_usize](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.extract_usize)(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), PolarsError>
Extract a constant usize from an expression.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-3)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [map\_python](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map_python)(self, func: [PythonUdfExpression](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/python_dsl/struct.PythonUdfExpression.html "struct polars_lazy::dsl::python_dsl::PythonUdfExpression"), agg\_list: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-4)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [shuffle](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.shuffle)(self, seed: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [sample\_n](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sample_n)( self, n: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), with\_replacement: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), shuffle: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), seed: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [sample\_frac](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sample_frac)( self, frac: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), with\_replacement: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), shuffle: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), seed: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-5)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [std](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.std)(self, ddof: [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Standard deviation of the values of the Series.
#### pub fn [var](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.var)(self, ddof: [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Variance of the values of the Series.
#### pub fn [min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to minimal value.
#### pub fn [max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to maximum value.
#### pub fn [nan\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.nan_min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to minimal value.
#### pub fn [nan\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.nan_max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to maximum value.
#### pub fn [mean](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.mean)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to the mean value.
#### pub fn [median](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.median)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to the median value.
#### pub fn [sum](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sum)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reduce groups to the sum of all the values.
#### pub fn [hist](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.hist)( self, bins: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, bin\_count: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >, include\_category: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), include\_breakpoint: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `hist`** only.
Compute the histogram of a dataset.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-6)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [eq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.eq) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Compare `Expr` with other `Expr` on equality.
#### pub fn [eq\_missing](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.eq_missing) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Compare `Expr` with other `Expr` on equality where `None == None`.
#### pub fn [neq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.neq) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Compare `Expr` with other `Expr` on non-equality.
#### pub fn [neq\_missing](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.neq_missing) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Compare `Expr` with other `Expr` on non-equality where `None == None`.
#### pub fn [lt](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.lt) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Check if `Expr` < `Expr`.
#### pub fn [gt](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.gt) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Check if `Expr` \> `Expr`.
#### pub fn [gt\_eq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.gt_eq) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Check if `Expr` >= `Expr`.
#### pub fn [lt\_eq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.lt_eq) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Check if `Expr` <= `Expr`.
#### pub fn [not](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.not)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Negate `Expr`.
#### pub fn [alias](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.alias) <S>(self, name: S) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >,
Rename Column.
#### pub fn [is\_null](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_null)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Run is\_null operation on `Expr`.
#### pub fn [is\_not\_null](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_not_null)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Run is\_not\_null operation on `Expr`.
#### pub fn [drop\_nulls](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.drop_nulls)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Drop null values.
#### pub fn [drop\_nans](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.drop_nans)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Drop NaN values.
#### pub fn [n\_unique](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.n_unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the number of unique values in the groups.
#### pub fn [first](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.first)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the first value in the group.
#### pub fn [last](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.last)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the last value in the group.
#### pub fn [implode](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.implode)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
GroupBy the group to a Series.
#### pub fn [quantile](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.quantile)(self, quantile: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), method: QuantileMethod) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Compute the quantile per group.
#### pub fn [agg\_groups](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.agg_groups)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the group indexes of the group by operation.
#### pub fn [flatten](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.flatten)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Alias for `explode`.
#### pub fn [explode](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.explode)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Explode the String/List column.
#### pub fn [slice](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.slice) <E, F>(self, offset: E, length: F) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, F: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Slice the Series.
`offset` may be negative.
#### pub fn [append](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.append) <E>(self, other: E, upcast: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Append expressions. This is done by adding the chunks of `other` to this [`Series`](https://docs.pola.rs/api/rust/dev/polars_core/series/struct.Series.html "struct polars_core::series::Series").
#### pub fn [head](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.head)(self, length: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the first `n` elements of the Expr result.
#### pub fn [tail](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.tail)(self, length: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the last `n` elements of the Expr result.
#### pub fn [unique](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get unique values of this expression.
#### pub fn [unique\_stable](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.unique_stable)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get unique values of this expression, while maintaining order.
This requires more work than [`Expr::unique`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.unique "method polars_lazy::dsl::Expr::unique").
#### pub fn [arg\_unique](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arg_unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the first index of unique values of this expression.
#### pub fn [arg\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arg_min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the index value that has the minimum value.
#### pub fn [arg\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arg_max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the index value that has the maximum value.
#### pub fn [arg\_sort](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arg_sort)(self, sort\_options: [SortOptions](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/sort/options/struct.SortOptions.html "struct polars_core::chunked_array::ops::sort::options::SortOptions")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the index values that would sort this expression.
#### pub fn [index\_of](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.index_of) <E>(self, element: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `index_of`** only.
Find the index of a value.
#### pub fn [search\_sorted](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.search_sorted) <E>(self, element: E, side: [SearchSortedSide](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/search_sorted/enum.SearchSortedSide.html "enum polars_core::chunked_array::ops::search_sorted::SearchSortedSide")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `search_sorted`** only.
Find indices where elements should be inserted to maintain order.
#### pub fn [strict\_cast](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.strict_cast)(self, dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Cast expression to another data type.
Throws an error if conversion had overflows.
Returns an Error if cast is invalid on rows after predicates are pushed down.
#### pub fn [cast](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cast)(self, dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Cast expression to another data type.
#### pub fn [cast\_with\_options](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cast_with_options)( self, dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType"), cast\_options: [CastOptions](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/cast/enum.CastOptions.html "enum polars_core::chunked_array::cast::CastOptions"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Cast expression to another data type.
#### pub fn [gather](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.gather) <E>(self, idx: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Take the values by idx.
#### pub fn [get](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.get) <E>(self, idx: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Take the values by a single index.
#### pub fn [sort](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sort)(self, options: [SortOptions](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/sort/options/struct.SortOptions.html "struct polars_core::chunked_array::ops::sort::options::SortOptions")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Sort with given options.
##### [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#example) Example
```
let lf = df! {
"a" => [Some(5), Some(4), Some(3), Some(2), None]
}?
.lazy();
let sorted = lf
.select(
vec![col("a").sort(SortOptions::default())],
)
.collect()?;
assert_eq!(
sorted,
df! {
"a" => [None, Some(2), Some(3), Some(4), Some(5)]
}?
);
```
See [`SortOptions`](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/sort/options/struct.SortOptions.html "struct polars_core::chunked_array::ops::sort::options::SortOptions") for more options.
#### pub fn [top\_k](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.top_k)(self, k: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `top_k`** only.
Returns the `k` largest elements.
This has time complexity `O(n + k log(n))`.
#### pub fn [top\_k\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.top_k_by) <K, E, IE>(self, k: K, by: E, descending: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where K: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, E: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [\[IE\]](https://doc.rust-lang.org/nightly/std/primitive.slice.html) >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> \+ [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Available on **crate feature `top_k`** only.
Returns the `k` largest rows by given column.
For single column, use [`Expr::top_k`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.top_k "method polars_lazy::dsl::Expr::top_k").
#### pub fn [bottom\_k](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bottom_k)(self, k: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `top_k`** only.
Returns the `k` smallest elements.
This has time complexity `O(n + k log(n))`.
#### pub fn [bottom\_k\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.bottom_k_by) <K, E, IE>(self, k: K, by: E, descending: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where K: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, E: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [\[IE\]](https://doc.rust-lang.org/nightly/std/primitive.slice.html) >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> \+ [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Available on **crate feature `top_k`** only.
Returns the `k` smallest rows by given column.
For single column, use [`Expr::bottom_k`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.bottom_k "method polars_lazy::dsl::Expr::bottom_k").
#### pub fn [reverse](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.reverse)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Reverse column
#### pub fn [map](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map) <F>( self, function: F, output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")( [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
Apply a function/closure once the logical plan get executed.
This function is very similar to [`Expr::apply`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply "method polars_lazy::dsl::Expr::apply"), but differs in how it handles aggregations.
- `map` should be used for operations that are independent of groups, e.g. `multiply * 2`, or `raise to the power`
- `apply` should be used for operations that work on a group of data. e.g. `sum`, `count`, etc.
It is the responsibility of the caller that the schema is correct by giving
the correct output\_type. If None given the output type of the input expr is used.
#### pub fn [map\_many](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map_many) <F>( self, function: F, arguments: &\[ [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")\], output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&mut \[ [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")\]) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
Apply a function/closure once the logical plan get executed with many arguments.
See the [`Expr::map`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.map "method polars_lazy::dsl::Expr::map") function for the differences between [`map`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.map "method polars_lazy::dsl::Expr::map") and [`apply`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply "method polars_lazy::dsl::Expr::apply").
#### pub fn [map\_list](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map_list) <F>( self, function: F, output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")( [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
Apply a function/closure once the logical plan get executed.
This function is very similar to [apply](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply "method polars_lazy::dsl::Expr::apply"), but differs in how it handles aggregations.
- `map` should be used for operations that are independent of groups, e.g. `multiply * 2`, or `raise to the power`
- `apply` should be used for operations that work on a group of data. e.g. `sum`, `count`, etc.
- `map_list` should be used when the function expects a list aggregated series.
#### pub fn [function\_with\_options](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.function_with_options) <F>( self, function: F, output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, options: FunctionOptions, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")( [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
A function that cannot be expressed with `map` or `apply` and requires extra settings.
#### pub fn [apply](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.apply) <F>( self, function: F, output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")( [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
Apply a function/closure over the groups. This should only be used in a group\_by aggregation.
It is the responsibility of the caller that the schema is correct by giving
the correct output\_type. If None given the output type of the input expr is used.
This difference with [map](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.map "method polars_lazy::dsl::Expr::map") is that `apply` will create a separate `Series` per group.
- `map` should be used for operations that are independent of groups, e.g. `multiply * 2`, or `raise to the power`
- `apply` should be used for operations that work on a group of data. e.g. `sum`, `count`, etc.
#### pub fn [apply\_many](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.apply_many) <F>( self, function: F, arguments: &\[ [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")\], output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&mut \[ [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column")\]) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Column](https://docs.pola.rs/api/rust/dev/polars_core/frame/column/enum.Column.html "enum polars_core::frame::column::Column") >, PolarsError> + 'static + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
Apply a function/closure over the groups with many arguments. This should only be used in a group\_by aggregation.
See the [`Expr::apply`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply "method polars_lazy::dsl::Expr::apply") function for the differences between [`map`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.map "method polars_lazy::dsl::Expr::map") and [`apply`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply "method polars_lazy::dsl::Expr::apply").
#### pub fn [apply\_many\_private](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.apply_many_private)( self, function\_expr: [FunctionExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.FunctionExpr.html "enum polars_lazy::dsl::FunctionExpr"), arguments: &\[ [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")\], returns\_scalar: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), cast\_to\_supertypes: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [map\_many\_private](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map_many_private)( self, function\_expr: [FunctionExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.FunctionExpr.html "enum polars_lazy::dsl::FunctionExpr"), arguments: &\[ [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")\], returns\_scalar: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), cast\_to\_supertypes: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [SuperTypeOptions](https://docs.pola.rs/api/rust/dev/polars_core/utils/supertype/struct.SuperTypeOptions.html "struct polars_core::utils::supertype::SuperTypeOptions") >, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [is\_finite](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_finite)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get mask of finite values if dtype is Float.
#### pub fn [is\_infinite](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_infinite)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get mask of infinite values if dtype is Float.
#### pub fn [is\_nan](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_nan)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get mask of NaN values if dtype is Float.
#### pub fn [is\_not\_nan](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_not_nan)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get inverse mask of NaN values if dtype is Float.
#### pub fn [shift](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.shift)(self, n: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Shift the values in the array by some period. See [the eager implementation](https://docs.pola.rs/api/rust/dev/polars_core/series/series_trait/trait.SeriesTrait.html#tymethod.shift "method polars_core::series::series_trait::SeriesTrait::shift").
#### pub fn [shift\_and\_fill](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.shift_and_fill) <E, IE>(self, n: E, fill\_value: IE) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Shift the values in the array by some period and fill the resulting empty values.
#### pub fn [cum\_count](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cum_count)(self, reverse: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cum_agg`** only.
Cumulatively count values from 0 to len.
#### pub fn [cum\_sum](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cum_sum)(self, reverse: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cum_agg`** only.
Get an array with the cumulative sum computed at every element.
#### pub fn [cum\_prod](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cum_prod)(self, reverse: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cum_agg`** only.
Get an array with the cumulative product computed at every element.
#### pub fn [cum\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cum_min)(self, reverse: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cum_agg`** only.
Get an array with the cumulative min computed at every element.
#### pub fn [cum\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cum_max)(self, reverse: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cum_agg`** only.
Get an array with the cumulative max computed at every element.
#### pub fn [product](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.product)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the product aggregation of an expression.
#### pub fn [backward\_fill](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.backward_fill)(self, limit: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Fill missing value with next non-null.
#### pub fn [forward\_fill](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.forward_fill)(self, limit: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Fill missing value with previous non-null.
#### pub fn [round](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.round)(self, decimals: [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Round underlying floating point array to given decimal numbers.
#### pub fn [round\_sig\_figs](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.round_sig_figs)(self, digits: [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Round to a number of significant figures.
#### pub fn [floor](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.floor)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Floor underlying floating point array to the lowest integers smaller or equal to the float value.
#### pub fn [pi](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.pi)() -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Constant Pi
#### pub fn [ceil](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.ceil)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Ceil underlying floating point array to the highest integers smaller or equal to the float value.
#### pub fn [clip](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.clip)(self, min: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), max: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Clip underlying values to a set boundary.
#### pub fn [clip\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.clip_max)(self, max: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Clip underlying values to a set boundary.
#### pub fn [clip\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.clip_min)(self, min: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `round_series`** only.
Clip underlying values to a set boundary.
#### pub fn [abs](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.abs)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `abs`** only.
Convert all values to their absolute/positive value.
#### pub fn [over](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.over) <E, IE>(self, partition\_by: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [\[IE\]](https://doc.rust-lang.org/nightly/std/primitive.slice.html) >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> \+ [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Apply window function over a subgroup.
This is similar to a group\_by + aggregation + self join.
Or similar to [window functions in Postgres](https://www.postgresql.org/docs/9.1/tutorial-window.html).
##### [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#example-1) Example
```
#[macro_use] extern crate polars_core;
use polars_core::prelude::*;
use polars_lazy::prelude::*;
fn example() -> PolarsResult<()> {
let df = df! {
"groups" => &[1, 1, 2, 2, 1, 2, 3, 3, 1],
"values" => &[1, 2, 3, 4, 5, 6, 7, 8, 8]
}?;
let out = df
.lazy()
.select(&[\
col("groups"),\
sum("values").over([col("groups")]),\
])
.collect()?;
println!("{}", &out);
Ok(())
}
```
Outputs:
```
╭────────┬────────╮
│ groups ┆ values │
│ --- ┆ --- │
│ i32 ┆ i32 │
╞════════╪════════╡
│ 1 ┆ 16 │
│ 1 ┆ 16 │
│ 2 ┆ 13 │
│ 2 ┆ 13 │
│ … ┆ … │
│ 1 ┆ 16 │
│ 2 ┆ 13 │
│ 3 ┆ 15 │
│ 3 ┆ 15 │
│ 1 ┆ 16 │
╰────────┴────────╯
```
#### pub fn [over\_with\_options](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.over_with_options) <E, IE>( self, partition\_by: E, order\_by: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <(E, [SortOptions](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/sort/options/struct.SortOptions.html "struct polars_core::chunked_array::ops::sort::options::SortOptions"))>, options: [WindowMapping](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.WindowMapping.html "enum polars_lazy::dsl::WindowMapping"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [\[IE\]](https://doc.rust-lang.org/nightly/std/primitive.slice.html) >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> \+ [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
#### pub fn [rolling](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling)(self, options: [RollingGroupOptions](https://docs.pola.rs/api/rust/dev/polars_lazy/prelude/struct.RollingGroupOptions.html "struct polars_lazy::prelude::RollingGroupOptions")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `dynamic_group_by`** only.
#### pub fn [fill\_null](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.fill_null) <E>(self, fill\_value: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Replace the null values by a value.
#### pub fn [fill\_null\_with\_strategy](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.fill_null_with_strategy)(self, strategy: [FillNullStrategy](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/enum.FillNullStrategy.html "enum polars_core::chunked_array::ops::FillNullStrategy")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [fill\_nan](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.fill_nan) <E>(self, fill\_value: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Replace the floating point `NaN` values by a value.
#### pub fn [count](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.count)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Count the values of the Series
or
Get counts of the group by operation.
#### pub fn [len](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.len)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [is\_duplicated](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_duplicated)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `is_unique`** only.
Get a mask of duplicated values.
#### pub fn [is\_between](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_between) <E>(self, lower: E, upper: E, closed: [ClosedInterval](https://docs.pola.rs/api/rust/dev/polars_ops/series/ops/linear_space/enum.ClosedInterval.html "enum polars_ops::series::ops::linear_space::ClosedInterval")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `is_between`** only.
#### pub fn [is\_unique](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `is_unique`** only.
Get a mask of unique values.
#### pub fn [approx\_n\_unique](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.approx_n_unique)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `approx_unique`** only.
Get the approximate count of unique values.
#### pub fn [and](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.and) <E>(self, expr: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Bitwise “and” operation.
#### pub fn [xor](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.xor) <E>(self, expr: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Bitwise “xor” operation.
#### pub fn [or](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.or) <E>(self, expr: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Bitwise “or” operation.
#### pub fn [logical\_or](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.logical_or) <E>(self, expr: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Logical “or” operation.
#### pub fn [logical\_and](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.logical_and) <E>(self, expr: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Logical “and” operation.
#### pub fn [filter](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.filter) <E>(self, predicate: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Filter a single column.
Should be used in aggregation context. If you want to filter on a
DataFrame level, use `LazyFrame::filter`.
#### pub fn [is\_in](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_in) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `is_in`** only.
Check if the values of the left expression are in the lists of the right expr.
#### pub fn [sort\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.sort_by) <E, IE>(self, by: E, sort\_options: [SortMultipleOptions](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/sort/options/struct.SortMultipleOptions.html "struct polars_core::chunked_array::ops::sort::options::SortMultipleOptions")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [\[IE\]](https://doc.rust-lang.org/nightly/std/primitive.slice.html) >, IE: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> \+ [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Sort this column by the ordering of another column evaluated from given expr.
Can also be used in a group\_by context to sort the groups.
##### [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#example-2) Example
```
let lf = df! {
"a" => [1, 2, 3, 4, 5],
"b" => [5, 4, 3, 2, 1]
}?.lazy();
let sorted = lf
.select(
vec![col("a").sort_by(col("b"), SortOptions::default())],
)
.collect()?;
assert_eq!(
sorted,
df! { "a" => [5, 4, 3, 2, 1] }?
);
```
#### pub fn [repeat\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.repeat_by) <E>(self, by: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `repeat_by`** only.
Repeat the column `n` times, where `n` is determined by the values in `by`.
This yields an `Expr` of dtype `List`.
#### pub fn [is\_first\_distinct](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_first_distinct)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `is_first_distinct`** only.
Get a mask of the first unique value.
#### pub fn [is\_last\_distinct](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.is_last_distinct)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `is_last_distinct`** only.
Get a mask of the last unique value.
#### pub fn [dot](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.dot) <E>(self, other: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Compute the dot/inner product between two expressions.
#### pub fn [mode](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.mode)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `mode`** only.
Compute the mode(s) of this column. This is the most occurring value.
#### pub fn [exclude](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.exclude)(self, columns: impl [IntoVec](https://docs.pola.rs/api/rust/dev/polars_core/utils/trait.IntoVec.html "trait polars_core::utils::IntoVec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Exclude a column from a wildcard/regex selection.
You may also use regexes in the exclude as long as they start with `^` and end with `$`.
#### pub fn [exclude\_dtype](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.exclude_dtype) <D>(self, dtypes: D) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where D: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") <\[ [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType")\]>,
#### pub fn [interpolate](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.interpolate)(self, method: [InterpolationMethod](https://docs.pola.rs/api/rust/dev/polars_ops/series/ops/interpolation/interpolate/enum.InterpolationMethod.html "enum polars_ops::series::ops::interpolation::interpolate::InterpolationMethod")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `interpolate`** only.
Fill null values using interpolation.
#### pub fn [interpolate\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.interpolate_by)(self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `interpolate_by`** only.
Fill null values using interpolation.
#### pub fn [rolling\_min\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_min_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling minimum based on another column.
#### pub fn [rolling\_max\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_max_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling maximum based on another column.
#### pub fn [rolling\_mean\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_mean_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling mean based on another column.
#### pub fn [rolling\_sum\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_sum_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling sum based on another column.
#### pub fn [rolling\_quantile\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_quantile_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), method: QuantileMethod, quantile: [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling quantile based on another column.
#### pub fn [rolling\_var\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_var_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling variance based on another column.
#### pub fn [rolling\_std\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_std_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling std-dev based on another column.
#### pub fn [rolling\_median\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_median_by)( self, by: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), options: [RollingOptionsDynamicWindow](https://docs.pola.rs/api/rust/dev/polars_time/chunkedarray/rolling_window/struct.RollingOptionsDynamicWindow.html "struct polars_time::chunkedarray::rolling_window::RollingOptionsDynamicWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window_by`** only.
Apply a rolling median based on another column.
#### pub fn [rolling\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_min)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling minimum.
See: \[ `RollingAgg::rolling_min`\]
#### pub fn [rolling\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_max)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling maximum.
See: \[ `RollingAgg::rolling_max`\]
#### pub fn [rolling\_mean](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_mean)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling mean.
See: \[ `RollingAgg::rolling_mean`\]
#### pub fn [rolling\_sum](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_sum)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling sum.
See: \[ `RollingAgg::rolling_sum`\]
#### pub fn [rolling\_median](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_median)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling median.
See: \[ `RollingAgg::rolling_median`\]
#### pub fn [rolling\_quantile](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_quantile)( self, method: QuantileMethod, quantile: [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html), options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling quantile.
See: \[ `RollingAgg::rolling_quantile`\]
#### pub fn [rolling\_var](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_var)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling variance.
#### pub fn [rolling\_std](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_std)(self, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a rolling std-dev.
#### pub fn [rolling\_skew](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_skew)(self, window\_size: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), bias: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate features `rolling_window` and `moment`** only.
Apply a rolling skew.
#### pub fn [rolling\_map](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_map)( self, f: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(& [Series](https://docs.pola.rs/api/rust/dev/polars_core/series/struct.Series.html "struct polars_core::series::Series")) -\> [Series](https://docs.pola.rs/api/rust/dev/polars_core/series/struct.Series.html "struct polars_core::series::Series") \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") >, output\_type: [SpecialEq](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.SpecialEq.html "struct polars_lazy::dsl::SpecialEq") < [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.FunctionOutputField.html "trait polars_lazy::dsl::FunctionOutputField") >>, options: [RollingOptionsFixedWindow](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/ops/rolling_window/struct.RollingOptionsFixedWindow.html "struct polars_core::chunked_array::ops::rolling_window::RollingOptionsFixedWindow"), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rolling_window`** only.
Apply a custom function over a rolling/ moving window of the array.
This has quite some dynamic dispatch, so prefer rolling\_min, max, mean, sum over this.
#### pub fn [rolling\_map\_float](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rolling_map_float) <F>(self, window\_size: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), f: F) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: 'static + [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")(&mut [ChunkedArray](https://docs.pola.rs/api/rust/dev/polars_core/chunked_array/struct.ChunkedArray.html "struct polars_core::chunked_array::ChunkedArray") < [Float64Type](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/struct.Float64Type.html "struct polars_core::datatypes::Float64Type") >) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) \> \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") \+ [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy"),
Available on **crate feature `rolling_window`** only.
Apply a custom function over a rolling/ moving window of the array.
Prefer this over rolling\_apply in case of floating point numbers as this is faster.
This has quite some dynamic dispatch, so prefer rolling\_min, max, mean, sum over this.
#### pub fn [peak\_min](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.peak_min)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `peaks`** only.
#### pub fn [peak\_max](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.peak_max)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `peaks`** only.
#### pub fn [rank](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rank)(self, options: [RankOptions](https://docs.pola.rs/api/rust/dev/polars_lazy/prelude/struct.RankOptions.html "struct polars_lazy::prelude::RankOptions"), seed: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rank`** only.
Assign ranks to data, dealing with ties appropriately.
#### pub fn [replace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.replace) <E>(self, old: E, new: E) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `replace`** only.
Replace the given values with other values.
#### pub fn [replace\_strict](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.replace_strict) <E>( self, old: E, new: E, default: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <E>, return\_dtype: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [DataType](https://docs.pola.rs/api/rust/dev/polars_core/datatypes/dtype/enum.DataType.html "enum polars_core::datatypes::dtype::DataType") >, ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >,
Available on **crate feature `replace`** only.
Replace the given values with other values.
#### pub fn [cut](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cut)( self, breaks: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) >, labels: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <impl [IntoVec](https://docs.pola.rs/api/rust/dev/polars_core/utils/trait.IntoVec.html "trait polars_core::utils::IntoVec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >>, left\_closed: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), include\_breaks: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cutqcut`** only.
Bin continuous values into discrete categories.
#### pub fn [qcut](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.qcut)( self, probs: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) >, labels: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <impl [IntoVec](https://docs.pola.rs/api/rust/dev/polars_core/utils/trait.IntoVec.html "trait polars_core::utils::IntoVec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >>, left\_closed: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), allow\_duplicates: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), include\_breaks: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cutqcut`** only.
Bin continuous values into discrete categories based on their quantiles.
#### pub fn [qcut\_uniform](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.qcut_uniform)( self, n\_bins: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), labels: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <impl [IntoVec](https://docs.pola.rs/api/rust/dev/polars_core/utils/trait.IntoVec.html "trait polars_core::utils::IntoVec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >>, left\_closed: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), allow\_duplicates: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), include\_breaks: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `cutqcut`** only.
Bin continuous values into discrete categories using uniform quantile probabilities.
#### pub fn [rle](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rle)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rle`** only.
Get the lengths of runs of identical values.
#### pub fn [rle\_id](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.rle_id)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `rle`** only.
Similar to `rle`, but maps values to run IDs.
#### pub fn [diff](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.diff)(self, n: [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html), null\_behavior: [NullBehavior](https://docs.pola.rs/api/rust/dev/polars_core/series/ops/enum.NullBehavior.html "enum polars_core::series::ops::NullBehavior")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `diff`** only.
Calculate the n-th discrete difference between values.
#### pub fn [pct\_change](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.pct_change)(self, n: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `pct_change`** only.
Computes percentage change between values.
#### pub fn [skew](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.skew)(self, bias: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `moment`** only.
Compute the sample skewness of a data set.
For normally distributed data, the skewness should be about zero. For
uni-modal continuous distributions, a skewness value greater than zero means
that there is more weight in the right tail of the distribution. The
function `skewtest` can be used to determine if the skewness value
is close enough to zero, statistically speaking.
see: [scipy](https://github.com/scipy/scipy/blob/47bb6febaa10658c72962b9615d5d5aa2513fa3a/scipy/stats/stats.py#L1024)
#### pub fn [kurtosis](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.kurtosis)(self, fisher: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), bias: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `moment`** only.
Compute the kurtosis (Fisher or Pearson).
Kurtosis is the fourth central moment divided by the square of the
variance. If Fisher’s definition is used, then 3.0 is subtracted from
the result to give 0.0 for a normal distribution.
If bias is False then the kurtosis is calculated using k statistics to
eliminate bias coming from biased moment estimators.
#### pub fn [upper\_bound](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.upper_bound)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get maximal value that could be hold by this dtype.
#### pub fn [lower\_bound](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.lower_bound)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get minimal value that could be hold by this dtype.
#### pub fn [reshape](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.reshape)(self, dimensions: &\[ [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html)\]) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `dtype-array`** only.
#### pub fn [ewm\_mean](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.ewm_mean)(self, options: EWMOptions) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `ewma`** only.
Calculate the exponentially-weighted moving average.
#### pub fn [ewm\_mean\_by](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.ewm_mean_by)(self, times: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), half\_life: [Duration](https://docs.pola.rs/api/rust/dev/polars_lazy/prelude/struct.Duration.html "struct polars_lazy::prelude::Duration")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `ewma_by`** only.
Calculate the exponentially-weighted moving average by a time column.
#### pub fn [ewm\_std](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.ewm_std)(self, options: EWMOptions) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `ewma`** only.
Calculate the exponentially-weighted moving standard deviation.
#### pub fn [ewm\_var](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.ewm_var)(self, options: EWMOptions) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `ewma`** only.
Calculate the exponentially-weighted moving variance.
#### pub fn [any](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.any)(self, ignore\_nulls: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Returns whether any of the values in the column are `true`.
If `ignore_nulls` is `False`, [Kleene logic](https://en.wikipedia.org/wiki/Three-valued_logic) is used to deal with nulls:
if the column contains any null values and no `true` values, the output
is null.
#### pub fn [all](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.all)(self, ignore\_nulls: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Returns whether all values in the column are `true`.
If `ignore_nulls` is `False`, [Kleene logic](https://en.wikipedia.org/wiki/Three-valued_logic) is used to deal with nulls:
if the column contains any null values and no `false` values, the output
is null.
#### pub fn [shrink\_dtype](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.shrink_dtype)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Shrink numeric columns to the minimal required datatype
needed to fit the extrema of this [`Series`](https://docs.pola.rs/api/rust/dev/polars_core/series/struct.Series.html "struct polars_core::series::Series").
This can be used to reduce memory pressure.
#### pub fn [value\_counts](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.value_counts)( self, sort: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), parallel: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), name: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), normalize: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html), ) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `dtype-struct`** only.
Count all unique values and create a struct mapping value to count.
(Note that it is better to turn parallel off in the aggregation context).
The name of the struct field with the counts is given by the parameter `name`.
#### pub fn [unique\_counts](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.unique_counts)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `unique_counts`** only.
Returns a count of the unique values in the order of appearance.
This method differs from [`Expr::value_counts`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.value_counts "method polars_lazy::dsl::Expr::value_counts") in that it does not return the
values, only the counts and might be faster.
#### pub fn [log](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.log)(self, base: [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `log`** only.
Compute the logarithm to a given base.
#### pub fn [log1p](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.log1p)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `log`** only.
Compute the natural logarithm of all elements plus one in the input array.
#### pub fn [exp](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.exp)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `log`** only.
Calculate the exponential of all elements in the input array.
#### pub fn [entropy](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.entropy)(self, base: [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html), normalize: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `log`** only.
Compute the entropy as `-sum(pk * log(pk)`.
where `pk` are discrete probabilities.
#### pub fn [null\_count](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.null_count)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Get the null count of the column/group.
#### pub fn [set\_sorted\_flag](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.set_sorted_flag)(self, sorted: [IsSorted](https://docs.pola.rs/api/rust/dev/polars_core/series/series_trait/enum.IsSorted.html "enum polars_core::series::series_trait::IsSorted")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Set this `Series` as `sorted` so that downstream code can use
fast paths for sorted arrays.
##### [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#warning) Warning
This can lead to incorrect results if this `Series` is not sorted!!
Use with care!
#### pub fn [hash](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.hash)(self, k0: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html), k1: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html), k2: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html), k3: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `row_hash`** only.
Compute the hash of every element.
#### pub fn [to\_physical](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.to_physical)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [gather\_every](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.gather_every)(self, n: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), offset: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [reinterpret](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.reinterpret)(self, signed: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate feature `reinterpret`** only.
#### pub fn [extend\_constant](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.extend_constant)(self, value: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), n: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [str](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.str)(self) -> [StringNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/string/struct.StringNameSpace.html "struct polars_lazy::dsl::string::StringNameSpace")
Available on **crate feature `strings`** only.
Get the [`string::StringNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/string/struct.StringNameSpace.html "struct polars_lazy::dsl::string::StringNameSpace")
#### pub fn [binary](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.binary)(self) -> [BinaryNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/binary/struct.BinaryNameSpace.html "struct polars_lazy::dsl::binary::BinaryNameSpace")
Get the [`binary::BinaryNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/binary/struct.BinaryNameSpace.html "struct polars_lazy::dsl::binary::BinaryNameSpace")
#### pub fn [dt](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.dt)(self) -> [DateLikeNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/dt/struct.DateLikeNameSpace.html "struct polars_lazy::dsl::dt::DateLikeNameSpace")
Available on **crate feature `temporal`** only.
Get the [`dt::DateLikeNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/dt/struct.DateLikeNameSpace.html "struct polars_lazy::dsl::dt::DateLikeNameSpace")
#### pub fn [list](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.list)(self) -> [ListNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ListNameSpace.html "struct polars_lazy::dsl::ListNameSpace")
Get the [`list::ListNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ListNameSpace.html "struct polars_lazy::dsl::ListNameSpace")
#### pub fn [name](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.name)(self) -> [ExprNameNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ExprNameNameSpace.html "struct polars_lazy::dsl::ExprNameNameSpace")
Get the [`name::ExprNameNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ExprNameNameSpace.html "struct polars_lazy::dsl::ExprNameNameSpace")
#### pub fn [arr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.arr)(self) -> [ArrayNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ArrayNameSpace.html "struct polars_lazy::dsl::ArrayNameSpace")
Available on **crate feature `dtype-array`** only.
Get the [`array::ArrayNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.ArrayNameSpace.html "struct polars_lazy::dsl::ArrayNameSpace").
#### pub fn [cat](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.cat)(self) -> [CategoricalNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.CategoricalNameSpace.html "struct polars_lazy::dsl::CategoricalNameSpace")
Available on **crate feature `dtype-categorical`** only.
Get the [`CategoricalNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.CategoricalNameSpace.html "struct polars_lazy::dsl::CategoricalNameSpace").
#### pub fn [struct\_](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.struct_)(self) -> [StructNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.StructNameSpace.html "struct polars_lazy::dsl::StructNameSpace")
Available on **crate feature `dtype-struct`** only.
Get the [`struct_::StructNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.StructNameSpace.html "struct polars_lazy::dsl::StructNameSpace").
#### pub fn [meta](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.meta)(self) -> [MetaNameSpace](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.MetaNameSpace.html "struct polars_lazy::dsl::MetaNameSpace")
Available on **crate feature `meta`** only.
Get the [`meta::MetaNameSpace`](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/struct.MetaNameSpace.html "struct polars_lazy::dsl::MetaNameSpace")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Expr-7)
### impl [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
#### pub fn [nodes](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.nodes) <'a>(&'a self, container: &mut [UnitVec](https://docs.pola.rs/api/rust/dev/polars_utils/idx_vec/struct.UnitVec.html "struct polars_utils::idx_vec::UnitVec") <&'a [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >)
#### pub fn [nodes\_owned](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.nodes_owned)(self, container: &mut [UnitVec](https://docs.pola.rs/api/rust/dev/polars_utils/idx_vec/struct.UnitVec.html "struct polars_utils::idx_vec::UnitVec") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") >)
#### pub fn [map\_expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.map_expr) <F>(self, f: F) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") where F: [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")( [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"),
#### pub fn [try\_map\_expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#method.try_map_expr) <F>(self, f: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), PolarsError> where F: [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")( [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), PolarsError>,
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#trait-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Add-for-Expr)
### impl [Add](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html "trait core::ops::arith::Add") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `+` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.add)
#### fn [add](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html\#tymethod.add)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Add](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html "trait core::ops::arith::Add") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html\#associatedtype.Output "type core::ops::arith::Add::Output")
Performs the `+` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-AsRef%3CExpr%3E-for-AggExpr)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> for [AggExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.AggExpr.html "enum polars_lazy::dsl::AggExpr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.as_ref)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> & [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts this type into a shared reference of the (usually inferred) input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Clone-for-Expr)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Debug-for-Expr)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Default-for-Expr)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Deserialize%3C'de%3E-for-Expr)
### impl<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Display-for-Expr)
### impl [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.fmt-1)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Div-for-Expr)
### impl [Div](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html "trait core::ops::arith::Div") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output-2)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `/` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.div)
#### fn [div](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html\#tymethod.div)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Div](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html "trait core::ops::arith::Div") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html\#associatedtype.Output "type core::ops::arith::Div::Output")
Performs the `/` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html#tymethod.div)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/eval.rs.html#131) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-ExprEvalExtension-for-Expr)
### impl [ExprEvalExtension](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.ExprEvalExtension.html "trait polars_lazy::dsl::ExprEvalExtension") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Available on **crate features `cumulative_eval` or `list_eval`** only.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/dsl/eval.rs.html#46-128) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.cumulative_eval)
#### fn [cumulative\_eval](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.ExprEvalExtension.html\#method.cumulative_eval)(self, expr: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), min\_periods: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), parallel: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Run an expression over a sliding window that increases `1` slot every iteration. [Read more](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/trait.ExprEvalExtension.html#method.cumulative_eval)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3C%26str%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(s: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3CAggExpr%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [AggExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.AggExpr.html "enum polars_lazy::dsl::AggExpr") \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(agg: [AggExpr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.AggExpr.html "enum polars_lazy::dsl::AggExpr")) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3CExpr%3E-for-Selector)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") \> for [Selector](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Selector.html "enum polars_lazy::dsl::Selector")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-13)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [Selector](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Selector.html "enum polars_lazy::dsl::Selector")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cbool%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-12)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cf32%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-2)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cf64%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-3)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Ci16%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [i16](https://doc.rust-lang.org/nightly/std/primitive.i16.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-5)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [i16](https://doc.rust-lang.org/nightly/std/primitive.i16.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Ci32%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-6)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Ci64%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-7)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Ci8%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [i8](https://doc.rust-lang.org/nightly/std/primitive.i8.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-4)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [i8](https://doc.rust-lang.org/nightly/std/primitive.i8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cu16%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-9)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cu32%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-10)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cu64%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-11)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3Cu8%3E-for-Expr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html) \> for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-8)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)) -\> [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Hash-for-Expr)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.hash-1)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <H>(&self, state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-IntoIterator-for-%26Expr)
### impl<'a> [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") for &'a [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Item)
#### type [Item](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#associatedtype.Item) = &'a [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The type of the elements being iterated over.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.IntoIter)
#### type [IntoIter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#associatedtype.IntoIter) = ExprIter<'a>
Which kind of iterator are we turning this into?
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.into_iter)
#### fn [into\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#tymethod.into_iter)(self) -> <&'a [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") >:: [IntoIter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#associatedtype.IntoIter "type core::iter::traits::collect::IntoIterator::IntoIter")
Creates an iterator from a value. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Mul-for-Expr)
### impl [Mul](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html "trait core::ops::arith::Mul") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output-3)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `*` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.mul)
#### fn [mul](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html\#tymethod.mul)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Mul](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html "trait core::ops::arith::Mul") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html\#associatedtype.Output "type core::ops::arith::Mul::Output")
Performs the `*` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Neg-for-Expr)
### impl [Neg](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html "trait core::ops::arith::Neg") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output-5)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `-` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.neg)
#### fn [neg](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html\#tymethod.neg)(self) -> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Neg](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html "trait core::ops::arith::Neg") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html\#associatedtype.Output "type core::ops::arith::Neg::Output")
Performs the unary `-` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html#tymethod.neg)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-PartialEq-for-Expr)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.eq-1)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Rem-for-Expr)
### impl [Rem](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html "trait core::ops::arith::Rem") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output-4)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `%` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.rem)
#### fn [rem](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html\#tymethod.rem)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Rem](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html "trait core::ops::arith::Rem") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html\#associatedtype.Output "type core::ops::arith::Rem::Output")
Performs the `%` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html#tymethod.rem)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Serialize-for-Expr)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Sub-for-Expr)
### impl [Sub](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html "trait core::ops::arith::Sub") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Output-1)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html\#associatedtype.Output) = [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
The resulting type after applying the `-` operator.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.sub)
#### fn [sub](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html\#tymethod.sub)(self, rhs: [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")) -\> < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as [Sub](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html "trait core::ops::arith::Sub") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html\#associatedtype.Output "type core::ops::arith::Sub::Output")
Performs the `-` operation. [Read more](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-TreeWalker-for-Expr)
### impl TreeWalker for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Arena)
#### type Arena = [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.apply_children)
#### fn apply\_children<F>( &self, op: [&mut F](https://doc.rust-lang.org/nightly/std/primitive.reference.html), arena: &< [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as TreeWalker>::Arena, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <VisitRecursion, PolarsError> where F: [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")(& [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), &< [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as TreeWalker>::Arena) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <VisitRecursion, PolarsError>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.map_children)
#### fn map\_children<F>( self, f: [&mut F](https://doc.rust-lang.org/nightly/std/primitive.reference.html), \_arena: &mut < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as TreeWalker>::Arena, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), PolarsError> where F: [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")( [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), &mut < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr") as TreeWalker>::Arena) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr"), PolarsError>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.visit)
#### fn visit<V>( &self, visitor: [&mut V](https://doc.rust-lang.org/nightly/std/primitive.reference.html), arena: &Self::Arena, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <VisitRecursion, PolarsError> where V: Visitor<Node = Self, Arena = Self::Arena>,
Walks all nodes in depth-first-order.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.rewrite)
#### fn rewrite<R>( self, rewriter: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html), arena: &mut Self::Arena, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <Self, PolarsError> where R: RewritingVisitor<Node = Self, Arena = Self::Arena>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Eq-for-Expr)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-StructuralPartialEq-for-Expr)
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Freeze-for-Expr)
### impl ! [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-RefUnwindSafe-for-Expr)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Send-for-Expr)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Sync-for-Expr)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Unpin-for-Expr)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-UnwindSafe-for-Expr)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Expr](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html "enum polars_lazy::dsl::Expr")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.from-14)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self>
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-ToCompactString-for-T)
### impl<T> ToCompactString for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display"),
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.try_to_compact_string)
#### fn try\_to\_compact\_string(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <CompactString, ToCompactStringError>
Fallible version of \[ `ToCompactString::to_compact_string()`\] Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.to_compact_string)
#### fn to\_compact\_string(&self) -> CompactString
Converts the given value to a \[ `CompactString`\]. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2677) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-ToString-for-T)
### impl<T> [ToString](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html "trait alloc::string::ToString") for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2679) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.to_string)
#### fn [to\_string](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html\#tymethod.to_string)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Converts the given value to a `String`. [Read more](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T
[Source](https://docs.rs/num-traits/0.2/src/num_traits/lib.rs.html#110-115) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-NumOps%3CRhs,+Output%3E-for-T)
### impl<T, Rhs, Output> [NumOps](https://docs.rs/num-traits/0.2/num_traits/trait.NumOps.html "trait num_traits::NumOps") <Rhs, Output> for T where T: [Sub](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html "trait core::ops::arith::Sub") <Rhs, Output = Output> + [Mul](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html "trait core::ops::arith::Mul") <Rhs, Output = Output> + [Div](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html "trait core::ops::arith::Div") <Rhs, Output = Output> + [Add](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html "trait core::ops::arith::Add") <Rhs, Output = Output> + [Rem](https://doc.rust-lang.org/nightly/core/ops/arith/trait.Rem.html "trait core::ops::arith::Rem") <Rhs, Output = Output>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#impl-Ungil-for-T)
### impl<T> Ungil for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Trait AsofJoinCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/asof/mod.rs.html#263)
```
pub trait AsofJoin: IntoDf { }
```
Available on **crate feature `polars-ops`** only.
## Implementors [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.AsofJoin.html\#implementors)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_ops/frame/join/asof/mod.rs.html#358) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.AsofJoin.html#impl-AsofJoin-for-DataFrame)
### impl [AsofJoin](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.AsofJoin.html "trait polars::prelude::AsofJoin") for [DataFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.DataFrame.html "struct polars::prelude::DataFrame")[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct ScanArgsParquetCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/parquet.rs.html#11)
```
pub struct ScanArgsParquet {Show 13 fields
pub n_rows: Option<usize>,
pub parallel: ParallelStrategy,
pub row_index: Option<RowIndex>,
pub cloud_options: Option<CloudOptions>,
pub hive_options: HiveOptions,
pub use_statistics: bool,
pub schema: Option<Arc<Schema<DataType>>>,
pub low_memory: bool,
pub rechunk: bool,
pub cache: bool,
pub glob: bool,
pub include_file_paths: Option<PlSmallStr>,
pub allow_missing_columns: bool,
}
```
Available on **crate feature `lazy`** only.
## Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.n_rows) `n_rows: Option<usize>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.parallel) `parallel: ParallelStrategy`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.row_index) `row_index: Option<RowIndex>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.cloud_options) `cloud_options: Option<CloudOptions>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.hive_options) `hive_options: HiveOptions`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.use_statistics) `use_statistics: bool`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.schema) `schema: Option<Arc<Schema<DataType>>>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.low_memory) `low_memory: bool`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.rechunk) `rechunk: bool`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.cache) `cache: bool`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.glob) `glob: bool`
Expand path given via globbing rules.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.include_file_paths) `include_file_paths: Option<PlSmallStr>`[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#structfield.allow_missing_columns) `allow_missing_columns: bool`
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/parquet.rs.html#10) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Clone-for-ScanArgsParquet)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/parquet.rs.html#10) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/parquet.rs.html#28) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Default-for-ScanArgsParquet)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/parquet.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Freeze-for-ScanArgsParquet)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-RefUnwindSafe-for-ScanArgsParquet)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Send-for-ScanArgsParquet)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Sync-for-ScanArgsParquet)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Unpin-for-ScanArgsParquet)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-UnwindSafe-for-ScanArgsParquet)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [ScanArgsParquet](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html "struct polars::prelude::ScanArgsParquet")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ScanArgsParquet.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[Skip to content](https://docs.pola.rs/user-guide/expressions/#expressions)
# Expressions
We
[introduced the concept of “expressions” in a previous section](https://docs.pola.rs/user-guide/concepts/expressions-and-contexts/#expressions).
In this section we will focus on exploring the types of expressions that Polars offers. Each section
gives an overview of what they do and provides additional examples.
- Essentials:
- [Basic operations](https://docs.pola.rs/user-guide/expressions/basic-operations/) – how to do basic operations on dataframe columns, like arithmetic calculations, comparisons, and other common, general-purpose operations
- [Expression expansion](https://docs.pola.rs/user-guide/expressions/expression-expansion/) – what is expression expansion and how to use it
- [Casting](https://docs.pola.rs/user-guide/expressions/casting/) – how to convert / cast values to different data types
- How to work with specific types of data or data type namespaces:
- [Strings](https://docs.pola.rs/user-guide/expressions/strings/) – how to work with strings and the namespace `str`
- [Lists and arrays](https://docs.pola.rs/user-guide/expressions/lists-and-arrays/) – the differences between the data types `List` and `Array`, when to use them, and how to use them
- [Categorical data and enums](https://docs.pola.rs/user-guide/expressions/categorical-data-and-enums/) – the differences between the data types `Categorical` and `Enum`, when to use them, and how to use them
- [Structs](https://docs.pola.rs/user-guide/expressions/structs/) – when to use the data type `Struct` and how to use it
- [Missing data](https://docs.pola.rs/user-guide/expressions/missing-data/) – how to work with missing data and how to fill missing data
- Types of operations:
- [Aggregation](https://docs.pola.rs/user-guide/expressions/aggregation/) – how to work with aggregating contexts like `group_by`
- [Window functions](https://docs.pola.rs/user-guide/expressions/window-functions/) – how to apply window functions over columns in a dataframe
- [Folds](https://docs.pola.rs/user-guide/expressions/folds/) – how to perform arbitrary computations horizontally across columns
- [User-defined Python functions](https://docs.pola.rs/user-guide/expressions/user-defined-python-functions/) – how to apply user-defined Python functions to dataframe columns or to column values
- [Numpy functions](https://docs.pola.rs/user-guide/expressions/numpy-functions/) – how to use NumPy native functions on Polars dataframes and series[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Enum WindowTypeCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub enum WindowType {
Over(WindowMapping),
Rolling(RollingGroupOptions),
}
```
Available on **crate feature `lazy`** only.
## Variants [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#variants)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#variant.Over)
### Over( [WindowMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowMapping.html "enum polars::prelude::WindowMapping"))
Explode the aggregated list and just do a hstack instead of a join
this requires the groups to be sorted to make any sense
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#variant.Rolling)
### Rolling( [RollingGroupOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.RollingGroupOptions.html "struct polars::prelude::RollingGroupOptions"))
Available on **crate feature `dynamic_group_by`** only.
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#trait-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Clone-for-WindowType)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Debug-for-WindowType)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Default-for-WindowType)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Deserialize%3C'de%3E-for-WindowType)
### impl<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-From%3CWindowMapping%3E-for-WindowType)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [WindowMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowMapping.html "enum polars::prelude::WindowMapping") \> for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [WindowMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowMapping.html "enum polars::prelude::WindowMapping")) -\> [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Hash-for-WindowType)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-PartialEq-for-WindowType)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Serialize-for-WindowType)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Eq-for-WindowType)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-StructuralPartialEq-for-WindowType)
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Freeze-for-WindowType)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-RefUnwindSafe-for-WindowType)
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Send-for-WindowType)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Sync-for-WindowType)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Unpin-for-WindowType)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-UnwindSafe-for-WindowType)
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [WindowType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html "enum polars::prelude::WindowType")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.WindowType.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct PlSmallStrCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#21)
```
pub struct PlSmallStr(/* private fields */);
```
Expand description
String type that inlines small strings.
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#23) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-PlSmallStr)
### impl [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#24)
#### pub const [EMPTY](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#associatedconstant.EMPTY): [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#25)
#### pub const [EMPTY\_REF](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#associatedconstant.EMPTY_REF): &'static [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#28)
#### pub const fn [from\_static](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.from_static)(s: &'static [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#34)
#### pub fn [from\_str](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.from_str)(s: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#39)
#### pub fn [from\_string](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.from_string)(s: [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#44)
#### pub fn [as\_str](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_str)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#49)
#### pub fn [as\_mut\_str](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_mut_str)(&mut self) -> &mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#54)
#### pub fn [into\_string](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.into_string)(self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
## Methods from [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") <Target = [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) > [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#deref-methods-str)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#140)
#### pub fn [len](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.len)(&self) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Returns the length of `self`.
This length is in bytes, not [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s or graphemes. In other words,
it might not be what a human considers the length of the string.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples) Examples
```
let len = "foo".len();
assert_eq!(3, len);
assert_eq!("ƒoo".len(), 4); // fancy f!
assert_eq!("ƒoo".chars().count(), 3);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#159)
#### pub fn [is\_empty](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.is_empty)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Returns `true` if `self` has a length of zero bytes.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-1) Examples
```
let s = "";
assert!(s.is_empty());
let s = "not empty";
assert!(!s.is_empty());
```
1.9.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#190)
#### pub fn [is\_char\_boundary](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.is_char_boundary)(&self, index: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks that `index`-th byte is the first byte in a UTF-8 code point
sequence or the end of the string.
The start and end of the string (when `index == self.len()`) are
considered to be boundaries.
Returns `false` if `index` is greater than `self.len()`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-2) Examples
```
let s = "Löwe 老虎 Léopard";
assert!(s.is_char_boundary(0));
// start of `老`
assert!(s.is_char_boundary(6));
assert!(s.is_char_boundary(s.len()));
// second byte of `ö`
assert!(!s.is_char_boundary(2));
// third byte of `老`
assert!(!s.is_char_boundary(8));
```
[Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#239)
#### pub fn [floor\_char\_boundary](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.floor_char_boundary)(&self, index: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
🔬This is a nightly-only experimental API. ( `round_char_boundary`)
Finds the closest `x` not exceeding `index` where [`is_char_boundary(x)`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary "method str::is_char_boundary") is `true`.
This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t
exceed a given number of bytes. Note that this is done purely at the character level
and can still visually split graphemes, even though the underlying characters aren’t
split. For example, the emoji 🧑‍🔬 (scientist) could be split so that the string only
includes 🧑 (person) instead.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-3) Examples
```
#![feature(round_char_boundary)]
let s = "❤️🧡💛💚💙💜";
assert_eq!(s.len(), 26);
assert!(!s.is_char_boundary(13));
let closest = s.floor_char_boundary(13);
assert_eq!(closest, 10);
assert_eq!(&s[..closest], "❤️🧡");
```
[Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#277)
#### pub fn [ceil\_char\_boundary](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.ceil_char_boundary)(&self, index: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
🔬This is a nightly-only experimental API. ( `round_char_boundary`)
Finds the closest `x` not below `index` where [`is_char_boundary(x)`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary "method str::is_char_boundary") is `true`.
If `index` is greater than the length of the string, this returns the length of the string.
This method is the natural complement to [`floor_char_boundary`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.floor_char_boundary "method str::floor_char_boundary"). See that method
for more details.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-4) Examples
```
#![feature(round_char_boundary)]
let s = "❤️🧡💛💚💙💜";
assert_eq!(s.len(), 26);
assert!(!s.is_char_boundary(13));
let closest = s.ceil_char_boundary(13);
assert_eq!(closest, 14);
assert_eq!(&s[..closest], "❤️🧡💛");
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#303)
#### pub fn [as\_bytes](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_bytes)(&self) -> &\[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\] [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#)
Converts a string slice to a byte slice. To convert the byte slice back
into a string slice, use the [`from_utf8`](https://doc.rust-lang.org/nightly/core/str/converts/fn.from_utf8.html "fn core::str::converts::from_utf8") function.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-5) Examples
```
let bytes = "bors".as_bytes();
assert_eq!(b"bors", bytes);
```
1.20.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#348)
#### pub unsafe fn [as\_bytes\_mut](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_bytes_mut)(&mut self) -> &mut \[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\] [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#)
Converts a mutable string slice to a mutable byte slice.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#safety) Safety
The caller must ensure that the content of the slice is valid UTF-8
before the borrow ends and the underlying `str` is used.
Use of a `str` whose contents are not valid UTF-8 is undefined behavior.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-6) Examples
Basic usage:
```
let mut s = String::from("Hello");
let bytes = unsafe { s.as_bytes_mut() };
assert_eq!(b"Hello", bytes);
```
Mutability:
```
let mut s = String::from("🗻∈🌏");
unsafe {
let bytes = s.as_bytes_mut();
bytes[0] = 0xF0;
bytes[1] = 0x9F;
bytes[2] = 0x8D;
bytes[3] = 0x94;
}
assert_eq!("🍔∈🌏", s);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#379)
#### pub fn [as\_ptr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_ptr)(&self) -> [\*const](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)
Converts a string slice to a raw pointer.
As string slices are a slice of bytes, the raw pointer points to a
[`u8`](https://doc.rust-lang.org/nightly/std/primitive.u8.html "primitive u8"). This pointer will be pointing to the first byte of the string
slice.
The caller must ensure that the returned pointer is never written to.
If you need to mutate the contents of the string slice, use [`as_mut_ptr`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.as_mut_ptr "method str::as_mut_ptr").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-7) Examples
```
let s = "Hello";
let ptr = s.as_ptr();
```
1.36.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#397)
#### pub fn [as\_mut\_ptr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_mut_ptr)(&mut self) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)
Converts a mutable string slice to a raw pointer.
As string slices are a slice of bytes, the raw pointer points to a
[`u8`](https://doc.rust-lang.org/nightly/std/primitive.u8.html "primitive u8"). This pointer will be pointing to the first byte of the string
slice.
It is your responsibility to make sure that the string slice only gets
modified in a way that it remains valid UTF-8.
1.20.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#422)
#### pub fn [get](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.get) <I>(&self, i: I) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&<I as [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>:: [Output](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html\#associatedtype.Output "type core::slice::index::SliceIndex::Output") > where I: [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >,
Returns a subslice of `str`.
This is the non-panicking alternative to indexing the `str`. Returns
[`None`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.None "variant core::option::Option::None") whenever equivalent indexing operation would panic.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-8) Examples
```
let v = String::from("🗻∈🌏");
assert_eq!(Some("🗻"), v.get(0..4));
// indices not on UTF-8 sequence boundaries
assert!(v.get(1..).is_none());
assert!(v.get(..8).is_none());
// out of bounds
assert!(v.get(..42).is_none());
```
1.20.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#454)
#### pub fn [get\_mut](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.get_mut) <I>( &mut self, i: I, ) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&mut <I as [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>:: [Output](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html\#associatedtype.Output "type core::slice::index::SliceIndex::Output") > where I: [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >,
Returns a mutable subslice of `str`.
This is the non-panicking alternative to indexing the `str`. Returns
[`None`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.None "variant core::option::Option::None") whenever equivalent indexing operation would panic.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-9) Examples
```
let mut v = String::from("hello");
// correct length
assert!(v.get_mut(0..5).is_some());
// out of bounds
assert!(v.get_mut(..42).is_none());
assert_eq!(Some("he"), v.get_mut(0..2).map(|v| &*v));
assert_eq!("hello", v);
{
let s = v.get_mut(0..2);
let s = s.map(|s| {
s.make_ascii_uppercase();
&*s
});
assert_eq!(Some("HE"), s);
}
assert_eq!("HEllo", v);
```
1.20.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#486)
#### pub unsafe fn [get\_unchecked](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.get_unchecked) <I>(&self, i: I) -> &<I as [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>:: [Output](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html\#associatedtype.Output "type core::slice::index::SliceIndex::Output") where I: [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >,
Returns an unchecked subslice of `str`.
This is the unchecked alternative to indexing the `str`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#safety-1) Safety
Callers of this function are responsible that these preconditions are
satisfied:
- The starting index must not exceed the ending index;
- Indexes must be within bounds of the original slice;
- Indexes must lie on UTF-8 sequence boundaries.
Failing that, the returned string slice may reference invalid memory or
violate the invariants communicated by the `str` type.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-10) Examples
```
let v = "🗻∈🌏";
unsafe {
assert_eq!("🗻", v.get_unchecked(0..4));
assert_eq!("∈", v.get_unchecked(4..7));
assert_eq!("🌏", v.get_unchecked(7..11));
}
```
1.20.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#521)
#### pub unsafe fn [get\_unchecked\_mut](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.get_unchecked_mut) <I>( &mut self, i: I, ) -\> &mut <I as [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>:: [Output](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html\#associatedtype.Output "type core::slice::index::SliceIndex::Output") where I: [SliceIndex](https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html "trait core::slice::index::SliceIndex") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >,
Returns a mutable, unchecked subslice of `str`.
This is the unchecked alternative to indexing the `str`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#safety-2) Safety
Callers of this function are responsible that these preconditions are
satisfied:
- The starting index must not exceed the ending index;
- Indexes must be within bounds of the original slice;
- Indexes must lie on UTF-8 sequence boundaries.
Failing that, the returned string slice may reference invalid memory or
violate the invariants communicated by the `str` type.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-11) Examples
```
let mut v = String::from("🗻∈🌏");
unsafe {
assert_eq!("🗻", v.get_unchecked_mut(0..4));
assert_eq!("∈", v.get_unchecked_mut(4..7));
assert_eq!("🌏", v.get_unchecked_mut(7..11));
}
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#572)
#### pub unsafe fn [slice\_unchecked](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.slice_unchecked)(&self, begin: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), end: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
👎Deprecated since 1.29.0: use `get_unchecked(begin..end)` instead
Creates a string slice from another string slice, bypassing safety
checks.
This is generally not recommended, use with caution! For a safe
alternative see [`str`](https://doc.rust-lang.org/nightly/std/primitive.str.html "primitive str") and [`Index`](https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html "trait core::ops::index::Index").
This new slice goes from `begin` to `end`, including `begin` but
excluding `end`.
To get a mutable string slice instead, see the
[`slice_mut_unchecked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked "method str::slice_mut_unchecked") method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#safety-3) Safety
Callers of this function are responsible that three preconditions are
satisfied:
- `begin` must not exceed `end`.
- `begin` and `end` must be byte positions within the string slice.
- `begin` and `end` must lie on UTF-8 sequence boundaries.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-12) Examples
```
let s = "Löwe 老虎 Léopard";
unsafe {
assert_eq!("Löwe 老虎 Léopard", s.slice_unchecked(0, 21));
}
let s = "Hello, world!";
unsafe {
assert_eq!("world", s.slice_unchecked(7, 12));
}
```
1.5.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#606)
#### pub unsafe fn [slice\_mut\_unchecked](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.slice_mut_unchecked)( &mut self, begin: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), end: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), ) -\> &mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
👎Deprecated since 1.29.0: use `get_unchecked_mut(begin..end)` instead
Creates a string slice from another string slice, bypassing safety
checks.
This is generally not recommended, use with caution! For a safe
alternative see [`str`](https://doc.rust-lang.org/nightly/std/primitive.str.html "primitive str") and [`IndexMut`](https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html "trait core::ops::index::IndexMut").
This new slice goes from `begin` to `end`, including `begin` but
excluding `end`.
To get an immutable string slice instead, see the
[`slice_unchecked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_unchecked "method str::slice_unchecked") method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#safety-4) Safety
Callers of this function are responsible that three preconditions are
satisfied:
- `begin` must not exceed `end`.
- `begin` and `end` must be byte positions within the string slice.
- `begin` and `end` must lie on UTF-8 sequence boundaries.
1.4.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#646)
#### pub fn [split\_at](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_at)(&self, mid: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> (& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))
Divides one string slice into two at an index.
The argument, `mid`, should be a byte offset from the start of the
string. It must also be on the boundary of a UTF-8 code point.
The two slices returned go from the start of the string slice to `mid`,
and from `mid` to the end of the string slice.
To get mutable string slices instead, see the [`split_at_mut`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut "method str::split_at_mut")
method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#panics) Panics
Panics if `mid` is not on a UTF-8 code point boundary, or if it is past
the end of the last code point of the string slice. For a non-panicking
alternative see [`split_at_checked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_checked "method str::split_at_checked").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-13) Examples
```
let s = "Per Martin-Löf";
let (first, last) = s.split_at(3);
assert_eq!("Per", first);
assert_eq!(" Martin-Löf", last);
```
1.4.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#687)
#### pub fn [split\_at\_mut](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_at_mut)(&mut self, mid: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> (&mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), &mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))
Divides one mutable string slice into two at an index.
The argument, `mid`, should be a byte offset from the start of the
string. It must also be on the boundary of a UTF-8 code point.
The two slices returned go from the start of the string slice to `mid`,
and from `mid` to the end of the string slice.
To get immutable string slices instead, see the [`split_at`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at "method str::split_at") method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#panics-1) Panics
Panics if `mid` is not on a UTF-8 code point boundary, or if it is past
the end of the last code point of the string slice. For a non-panicking
alternative see [`split_at_mut_checked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut_checked "method str::split_at_mut_checked").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-14) Examples
```
let mut s = "Per Martin-Löf".to_string();
{
let (first, last) = s.split_at_mut(3);
first.make_ascii_uppercase();
assert_eq!("PER", first);
assert_eq!(" Martin-Löf", last);
}
assert_eq!("PER Martin-Löf", s);
```
1.80.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#727)
#### pub fn [split\_at\_checked](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_at_checked)(&self, mid: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <(& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))>
Divides one string slice into two at an index.
The argument, `mid`, should be a valid byte offset from the start of the
string. It must also be on the boundary of a UTF-8 code point. The
method returns `None` if that’s not the case.
The two slices returned go from the start of the string slice to `mid`,
and from `mid` to the end of the string slice.
To get mutable string slices instead, see the [`split_at_mut_checked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut_checked "method str::split_at_mut_checked")
method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-15) Examples
```
let s = "Per Martin-Löf";
let (first, last) = s.split_at_checked(3).unwrap();
assert_eq!("Per", first);
assert_eq!(" Martin-Löf", last);
assert_eq!(None, s.split_at_checked(13)); // Inside “ö”
assert_eq!(None, s.split_at_checked(16)); // Beyond the string length
```
1.80.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#768)
#### pub fn [split\_at\_mut\_checked](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_at_mut_checked)( &mut self, mid: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), ) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <(&mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), &mut [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))>
Divides one mutable string slice into two at an index.
The argument, `mid`, should be a valid byte offset from the start of the
string. It must also be on the boundary of a UTF-8 code point. The
method returns `None` if that’s not the case.
The two slices returned go from the start of the string slice to `mid`,
and from `mid` to the end of the string slice.
To get immutable string slices instead, see the [`split_at_checked`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_checked "method str::split_at_checked") method.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-16) Examples
```
let mut s = "Per Martin-Löf".to_string();
if let Some((first, last)) = s.split_at_mut_checked(3) {
first.make_ascii_uppercase();
assert_eq!("PER", first);
assert_eq!(" Martin-Löf", last);
}
assert_eq!("PER Martin-Löf", s);
assert_eq!(None, s.split_at_mut_checked(13)); // Inside “ö”
assert_eq!(None, s.split_at_mut_checked(16)); // Beyond the string length
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#864)
#### pub fn [chars](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.chars)(&self) -> [Chars](https://doc.rust-lang.org/nightly/core/str/iter/struct.Chars.html "struct core::str::iter::Chars") <'\_>
Returns an iterator over the [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s of a string slice.
As a string slice consists of valid UTF-8, we can iterate through a
string slice by [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"). This method returns such an iterator.
It’s important to remember that [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") represents a Unicode Scalar
Value, and might not match your idea of what a ‘character’ is. Iteration
over grapheme clusters may be what you actually want. This functionality
is not provided by Rust’s standard library, check crates.io instead.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-17) Examples
Basic usage:
```
let word = "goodbye";
let count = word.chars().count();
assert_eq!(7, count);
let mut chars = word.chars();
assert_eq!(Some('g'), chars.next());
assert_eq!(Some('o'), chars.next());
assert_eq!(Some('o'), chars.next());
assert_eq!(Some('d'), chars.next());
assert_eq!(Some('b'), chars.next());
assert_eq!(Some('y'), chars.next());
assert_eq!(Some('e'), chars.next());
assert_eq!(None, chars.next());
```
Remember, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s might not match your intuition about characters:
```
let y = "y̆";
let mut chars = y.chars();
assert_eq!(Some('y'), chars.next()); // not 'y̆'
assert_eq!(Some('\u{0306}'), chars.next());
assert_eq!(None, chars.next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#921)
#### pub fn [char\_indices](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.char_indices)(&self) -> [CharIndices](https://doc.rust-lang.org/nightly/core/str/iter/struct.CharIndices.html "struct core::str::iter::CharIndices") <'\_>
Returns an iterator over the [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s of a string slice, and their
positions.
As a string slice consists of valid UTF-8, we can iterate through a
string slice by [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"). This method returns an iterator of both
these [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, as well as their byte positions.
The iterator yields tuples. The position is first, the [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") is
second.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-18) Examples
Basic usage:
```
let word = "goodbye";
let count = word.char_indices().count();
assert_eq!(7, count);
let mut char_indices = word.char_indices();
assert_eq!(Some((0, 'g')), char_indices.next());
assert_eq!(Some((1, 'o')), char_indices.next());
assert_eq!(Some((2, 'o')), char_indices.next());
assert_eq!(Some((3, 'd')), char_indices.next());
assert_eq!(Some((4, 'b')), char_indices.next());
assert_eq!(Some((5, 'y')), char_indices.next());
assert_eq!(Some((6, 'e')), char_indices.next());
assert_eq!(None, char_indices.next());
```
Remember, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s might not match your intuition about characters:
```
let yes = "y̆es";
let mut char_indices = yes.char_indices();
assert_eq!(Some((0, 'y')), char_indices.next()); // not (0, 'y̆')
assert_eq!(Some((1, '\u{0306}')), char_indices.next());
// note the 3 here - the previous character took up two bytes
assert_eq!(Some((3, 'e')), char_indices.next());
assert_eq!(Some((4, 's')), char_indices.next());
assert_eq!(None, char_indices.next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#944)
#### pub fn [bytes](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.bytes)(&self) -> [Bytes](https://doc.rust-lang.org/nightly/core/str/iter/struct.Bytes.html "struct core::str::iter::Bytes") <'\_>
Returns an iterator over the bytes of a string slice.
As a string slice consists of a sequence of bytes, we can iterate
through a string slice by byte. This method returns such an iterator.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-19) Examples
```
let mut bytes = "bors".bytes();
assert_eq!(Some(b'b'), bytes.next());
assert_eq!(Some(b'o'), bytes.next());
assert_eq!(Some(b'r'), bytes.next());
assert_eq!(Some(b's'), bytes.next());
assert_eq!(None, bytes.next());
```
1.1.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#996)
#### pub fn [split\_whitespace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_whitespace)(&self) -> [SplitWhitespace](https://doc.rust-lang.org/nightly/core/str/iter/struct.SplitWhitespace.html "struct core::str::iter::SplitWhitespace") <'\_>
Splits a string slice by whitespace.
The iterator returned will return string slices that are sub-slices of
the original string slice, separated by any amount of whitespace.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`. If you only want to split on ASCII whitespace
instead, use [`split_ascii_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_ascii_whitespace "method str::split_ascii_whitespace").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-20) Examples
Basic usage:
```
let mut iter = "A few words".split_whitespace();
assert_eq!(Some("A"), iter.next());
assert_eq!(Some("few"), iter.next());
assert_eq!(Some("words"), iter.next());
assert_eq!(None, iter.next());
```
All kinds of whitespace are considered:
```
let mut iter = " Mary had\ta\u{2009}little \n\t lamb".split_whitespace();
assert_eq!(Some("Mary"), iter.next());
assert_eq!(Some("had"), iter.next());
assert_eq!(Some("a"), iter.next());
assert_eq!(Some("little"), iter.next());
assert_eq!(Some("lamb"), iter.next());
assert_eq!(None, iter.next());
```
If the string is empty or all whitespace, the iterator yields no string slices:
```
assert_eq!("".split_whitespace().next(), None);
assert_eq!(" ".split_whitespace().next(), None);
```
1.34.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1045)
#### pub fn [split\_ascii\_whitespace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_ascii_whitespace)(&self) -> [SplitAsciiWhitespace](https://doc.rust-lang.org/nightly/core/str/iter/struct.SplitAsciiWhitespace.html "struct core::str::iter::SplitAsciiWhitespace") <'\_>
Splits a string slice by ASCII whitespace.
The iterator returned will return string slices that are sub-slices of
the original string slice, separated by any amount of ASCII whitespace.
To split by Unicode `Whitespace` instead, use [`split_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace "method str::split_whitespace").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-21) Examples
Basic usage:
```
let mut iter = "A few words".split_ascii_whitespace();
assert_eq!(Some("A"), iter.next());
assert_eq!(Some("few"), iter.next());
assert_eq!(Some("words"), iter.next());
assert_eq!(None, iter.next());
```
All kinds of ASCII whitespace are considered:
```
let mut iter = " Mary had\ta little \n\t lamb".split_ascii_whitespace();
assert_eq!(Some("Mary"), iter.next());
assert_eq!(Some("had"), iter.next());
assert_eq!(Some("a"), iter.next());
assert_eq!(Some("little"), iter.next());
assert_eq!(Some("lamb"), iter.next());
assert_eq!(None, iter.next());
```
If the string is empty or all ASCII whitespace, the iterator yields no string slices:
```
assert_eq!("".split_ascii_whitespace().next(), None);
assert_eq!(" ".split_ascii_whitespace().next(), None);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1098)
#### pub fn [lines](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.lines)(&self) -> [Lines](https://doc.rust-lang.org/nightly/core/str/iter/struct.Lines.html "struct core::str::iter::Lines") <'\_>
Returns an iterator over the lines of a string, as string slices.
Lines are split at line endings that are either newlines ( `\n`) or
sequences of a carriage return followed by a line feed ( `\r\n`).
Line terminators are not included in the lines returned by the iterator.
Note that any carriage return ( `\r`) not immediately followed by a
line feed ( `\n`) does not split a line. These carriage returns are
thereby included in the produced lines.
The final line ending is optional. A string that ends with a final line
ending will return the same lines as an otherwise identical string
without a final line ending.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-22) Examples
Basic usage:
```
let text = "foo\r\nbar\n\nbaz\r";
let mut lines = text.lines();
assert_eq!(Some("foo"), lines.next());
assert_eq!(Some("bar"), lines.next());
assert_eq!(Some(""), lines.next());
// Trailing carriage return is included in the last line
assert_eq!(Some("baz\r"), lines.next());
assert_eq!(None, lines.next());
```
The final line does not require any ending:
```
let text = "foo\nbar\n\r\nbaz";
let mut lines = text.lines();
assert_eq!(Some("foo"), lines.next());
assert_eq!(Some("bar"), lines.next());
assert_eq!(Some(""), lines.next());
assert_eq!(Some("baz"), lines.next());
assert_eq!(None, lines.next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1107)
#### pub fn [lines\_any](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.lines_any)(&self) -> [LinesAny](https://doc.rust-lang.org/nightly/core/str/iter/struct.LinesAny.html "struct core::str::iter::LinesAny") <'\_>
👎Deprecated since 1.4.0: use lines() instead now
Returns an iterator over the lines of a string.
1.8.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1126)
#### pub fn [encode\_utf16](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.encode_utf16)(&self) -> [EncodeUtf16](https://doc.rust-lang.org/nightly/core/str/iter/struct.EncodeUtf16.html "struct core::str::iter::EncodeUtf16") <'\_>
Returns an iterator of `u16` over the string encoded as UTF-16.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-23) Examples
```
let text = "Zażółć gęślą jaźń";
let utf8_len = text.len();
let utf16_len = text.encode_utf16().count();
assert!(utf16_len <= utf8_len);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1151)
#### pub fn [contains](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.contains) <P>(&self, pat: P) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns `true` if the given pattern matches a sub-slice of
this string slice.
Returns `false` if it does not.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-24) Examples
```
let bananas = "bananas";
assert!(bananas.contains("nana"));
assert!(!bananas.contains("apples"));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1189)
#### pub fn [starts\_with](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.starts_with) <P>(&self, pat: P) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns `true` if the given pattern matches a prefix of this
string slice.
Returns `false` if it does not.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, in which case this function will return true if
the `&str` is a prefix of this string slice.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can also be a [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
These will only be checked against the first character of this string slice.
Look at the second example below regarding behavior for slices of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-25) Examples
```
let bananas = "bananas";
assert!(bananas.starts_with("bana"));
assert!(!bananas.starts_with("nana"));
```
```
let bananas = "bananas";
// Note that both of these assert successfully.
assert!(bananas.starts_with(&['b', 'a', 'n', 'a']));
assert!(bananas.starts_with(&['a', 'b', 'c', 'd']));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1214-1216)
#### pub fn [ends\_with](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.ends_with) <P>(&self, pat: P) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns `true` if the given pattern matches a suffix of this
string slice.
Returns `false` if it does not.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-26) Examples
```
let bananas = "bananas";
assert!(bananas.ends_with("anas"));
assert!(!bananas.ends_with("nana"));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1265)
#### pub fn [find](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.find) <P>(&self, pat: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) > where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns the byte index of the first character of this string slice that
matches the pattern.
Returns [`None`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.None "variant core::option::Option::None") if the pattern doesn’t match.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-27) Examples
Simple patterns:
```
let s = "Löwe 老虎 Léopard Gepardi";
assert_eq!(s.find('L'), Some(0));
assert_eq!(s.find('é'), Some(14));
assert_eq!(s.find("pard"), Some(17));
```
More complex patterns using point-free style and closures:
```
let s = "Löwe 老虎 Léopard";
assert_eq!(s.find(char::is_whitespace), Some(5));
assert_eq!(s.find(char::is_lowercase), Some(1));
assert_eq!(s.find(|c: char| c.is_whitespace() || c.is_lowercase()), Some(1));
assert_eq!(s.find(|c: char| (c < 'o') && (c > 'a')), Some(4));
```
Not finding the pattern:
```
let s = "Löwe 老虎 Léopard";
let x: &[_] = &['1', '2'];
assert_eq!(s.find(x), None);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1311-1313)
#### pub fn [rfind](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rfind) <P>(&self, pat: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) > where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns the byte index for the first character of the last match of the pattern in
this string slice.
Returns [`None`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.None "variant core::option::Option::None") if the pattern doesn’t match.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-28) Examples
Simple patterns:
```
let s = "Löwe 老虎 Léopard Gepardi";
assert_eq!(s.rfind('L'), Some(13));
assert_eq!(s.rfind('é'), Some(14));
assert_eq!(s.rfind("pard"), Some(24));
```
More complex patterns with closures:
```
let s = "Löwe 老虎 Léopard";
assert_eq!(s.rfind(char::is_whitespace), Some(12));
assert_eq!(s.rfind(char::is_lowercase), Some(20));
```
Not finding the pattern:
```
let s = "Löwe 老虎 Léopard";
let x: &[_] = &['1', '2'];
assert_eq!(s.rfind(x), None);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1433)
#### pub fn [split](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split) <P>(&self, pat: P) -> [Split](https://doc.rust-lang.org/nightly/core/str/iter/struct.Split.html "struct core::str::iter::Split") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over substrings of this string slice, separated by
characters matched by a pattern.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior) Iterator behavior
The returned iterator will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if the pattern
allows a reverse search and forward/reverse search yields the same
elements. This is true for, e.g., [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), but not for `&str`.
If the pattern allows a reverse search but its results might differ
from a forward search, the [`rsplit`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rsplit "method str::rsplit") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-29) Examples
Simple patterns:
```
let v: Vec<&str> = "Mary had a little lamb".split(' ').collect();
assert_eq!(v, ["Mary", "had", "a", "little", "lamb"]);
let v: Vec<&str> = "".split('X').collect();
assert_eq!(v, [""]);
let v: Vec<&str> = "lionXXtigerXleopard".split('X').collect();
assert_eq!(v, ["lion", "", "tiger", "leopard"]);
let v: Vec<&str> = "lion::tiger::leopard".split("::").collect();
assert_eq!(v, ["lion", "tiger", "leopard"]);
let v: Vec<&str> = "abc1def2ghi".split(char::is_numeric).collect();
assert_eq!(v, ["abc", "def", "ghi"]);
let v: Vec<&str> = "lionXtigerXleopard".split(char::is_uppercase).collect();
assert_eq!(v, ["lion", "tiger", "leopard"]);
```
If the pattern is a slice of chars, split on each occurrence of any of the characters:
```
let v: Vec<&str> = "2020-11-03 23:59".split(&['-', ' ', ':', '@'][..]).collect();
assert_eq!(v, ["2020", "11", "03", "23", "59"]);
```
A more complex pattern, using a closure:
```
let v: Vec<&str> = "abc1defXghi".split(|c| c == '1' || c == 'X').collect();
assert_eq!(v, ["abc", "def", "ghi"]);
```
If a string contains multiple contiguous separators, you will end up
with empty strings in the output:
```
let x = "||||a||b|c".to_string();
let d: Vec<_> = x.split('|').collect();
assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);
```
Contiguous separators are separated by the empty string.
```
let x = "(///)".to_string();
let d: Vec<_> = x.split('/').collect();
assert_eq!(d, &["(", "", "", ")"]);
```
Separators at the start or end of a string are neighbored
by empty strings.
```
let d: Vec<_> = "010".split("0").collect();
assert_eq!(d, &["", "1", ""]);
```
When the empty string is used as a separator, it separates
every character in the string, along with the beginning
and end of the string.
```
let f: Vec<_> = "rust".split("").collect();
assert_eq!(f, &["", "r", "u", "s", "t", ""]);
```
Contiguous separators can lead to possibly surprising behavior
when whitespace is used as the separator. This code is correct:
```
let x = " a b c".to_string();
let d: Vec<_> = x.split(' ').collect();
assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);
```
It does _not_ give you:
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html# "This example is not tested")
```
assert_eq!(d, &["a", "b", "c"]);
```
Use [`split_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace "method str::split_whitespace") for this behavior.
1.51.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1474)
#### pub fn [split\_inclusive](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_inclusive) <P>(&self, pat: P) -> [SplitInclusive](https://doc.rust-lang.org/nightly/core/str/iter/struct.SplitInclusive.html "struct core::str::iter::SplitInclusive") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over substrings of this string slice, separated by
characters matched by a pattern.
Differs from the iterator produced by `split` in that `split_inclusive`
leaves the matched part as the terminator of the substring.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-30) Examples
```
let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
.split_inclusive('\n').collect();
assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb."]);
```
If the last element of the string is matched,
that element will be considered the terminator of the preceding substring.
That substring will be the last item returned by the iterator.
```
let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
.split_inclusive('\n').collect();
assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1529-1531)
#### pub fn [rsplit](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rsplit) <P>(&self, pat: P) -> [RSplit](https://doc.rust-lang.org/nightly/core/str/iter/struct.RSplit.html "struct core::str::iter::RSplit") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns an iterator over substrings of the given string slice, separated
by characters matched by a pattern and yielded in reverse order.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-1) Iterator behavior
The returned iterator requires that the pattern supports a reverse
search, and it will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if a forward/reverse
search yields the same elements.
For iterating from the front, the [`split`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split "method str::split") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-31) Examples
Simple patterns:
```
let v: Vec<&str> = "Mary had a little lamb".rsplit(' ').collect();
assert_eq!(v, ["lamb", "little", "a", "had", "Mary"]);
let v: Vec<&str> = "".rsplit('X').collect();
assert_eq!(v, [""]);
let v: Vec<&str> = "lionXXtigerXleopard".rsplit('X').collect();
assert_eq!(v, ["leopard", "tiger", "", "lion"]);
let v: Vec<&str> = "lion::tiger::leopard".rsplit("::").collect();
assert_eq!(v, ["leopard", "tiger", "lion"]);
```
A more complex pattern, using a closure:
```
let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
assert_eq!(v, ["ghi", "def", "abc"]);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1578)
#### pub fn [split\_terminator](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_terminator) <P>(&self, pat: P) -> [SplitTerminator](https://doc.rust-lang.org/nightly/core/str/iter/struct.SplitTerminator.html "struct core::str::iter::SplitTerminator") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over substrings of the given string slice, separated
by characters matched by a pattern.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
Equivalent to [`split`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split "method str::split"), except that the trailing substring
is skipped if empty.
This method can be used for string data that is _terminated_,
rather than _separated_ by a pattern.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-2) Iterator behavior
The returned iterator will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if the pattern
allows a reverse search and forward/reverse search yields the same
elements. This is true for, e.g., [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), but not for `&str`.
If the pattern allows a reverse search but its results might differ
from a forward search, the [`rsplit_terminator`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rsplit_terminator "method str::rsplit_terminator") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-32) Examples
```
let v: Vec<&str> = "A.B.".split_terminator('.').collect();
assert_eq!(v, ["A", "B"]);
let v: Vec<&str> = "A..B..".split_terminator(".").collect();
assert_eq!(v, ["A", "", "B", ""]);
let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect();
assert_eq!(v, ["A", "B", "C", "D"]);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1624-1626)
#### pub fn [rsplit\_terminator](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rsplit_terminator) <P>(&self, pat: P) -> [RSplitTerminator](https://doc.rust-lang.org/nightly/core/str/iter/struct.RSplitTerminator.html "struct core::str::iter::RSplitTerminator") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns an iterator over substrings of `self`, separated by characters
matched by a pattern and yielded in reverse order.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
Equivalent to [`split`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split "method str::split"), except that the trailing substring is
skipped if empty.
This method can be used for string data that is _terminated_,
rather than _separated_ by a pattern.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-3) Iterator behavior
The returned iterator requires that the pattern supports a
reverse search, and it will be double ended if a forward/reverse
search yields the same elements.
For iterating from the front, the [`split_terminator`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_terminator "method str::split_terminator") method can be
used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-33) Examples
```
let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
assert_eq!(v, ["B", "A"]);
let v: Vec<&str> = "A..B..".rsplit_terminator(".").collect();
assert_eq!(v, ["", "B", "", "A"]);
let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect();
assert_eq!(v, ["D", "C", "B", "A"]);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1679)
#### pub fn [splitn](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.splitn) <P>(&self, n: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), pat: P) -> [SplitN](https://doc.rust-lang.org/nightly/core/str/iter/struct.SplitN.html "struct core::str::iter::SplitN") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over substrings of the given string slice, separated
by a pattern, restricted to returning at most `n` items.
If `n` substrings are returned, the last substring (the `n` th substring)
will contain the remainder of the string.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-4) Iterator behavior
The returned iterator will not be double ended, because it is
not efficient to support.
If the pattern allows a reverse search, the [`rsplitn`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rsplitn "method str::rsplitn") method can be
used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-34) Examples
Simple patterns:
```
let v: Vec<&str> = "Mary had a little lambda".splitn(3, ' ').collect();
assert_eq!(v, ["Mary", "had", "a little lambda"]);
let v: Vec<&str> = "lionXXtigerXleopard".splitn(3, "X").collect();
assert_eq!(v, ["lion", "", "tigerXleopard"]);
let v: Vec<&str> = "abcXdef".splitn(1, 'X').collect();
assert_eq!(v, ["abcXdef"]);
let v: Vec<&str> = "".splitn(1, 'X').collect();
assert_eq!(v, [""]);
```
A more complex pattern, using a closure:
```
let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
assert_eq!(v, ["abc", "defXghi"]);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1728-1730)
#### pub fn [rsplitn](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rsplitn) <P>(&self, n: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), pat: P) -> [RSplitN](https://doc.rust-lang.org/nightly/core/str/iter/struct.RSplitN.html "struct core::str::iter::RSplitN") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns an iterator over substrings of this string slice, separated by a
pattern, starting from the end of the string, restricted to returning at
most `n` items.
If `n` substrings are returned, the last substring (the `n` th substring)
will contain the remainder of the string.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-5) Iterator behavior
The returned iterator will not be double ended, because it is not
efficient to support.
For splitting from the front, the [`splitn`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.splitn "method str::splitn") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-35) Examples
Simple patterns:
```
let v: Vec<&str> = "Mary had a little lamb".rsplitn(3, ' ').collect();
assert_eq!(v, ["lamb", "little", "Mary had a"]);
let v: Vec<&str> = "lionXXtigerXleopard".rsplitn(3, 'X').collect();
assert_eq!(v, ["leopard", "tiger", "lionX"]);
let v: Vec<&str> = "lion::tiger::leopard".rsplitn(2, "::").collect();
assert_eq!(v, ["leopard", "lion::tiger"]);
```
A more complex pattern, using a closure:
```
let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
assert_eq!(v, ["ghi", "abc1def"]);
```
1.52.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1748)
#### pub fn [split\_once](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.split_once) <P>(&self, delimiter: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <(& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Splits the string on the first occurrence of the specified delimiter and
returns prefix before delimiter and suffix after delimiter.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-36) Examples
```
assert_eq!("cfg".split_once('='), None);
assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
```
1.52.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1766-1768)
#### pub fn [rsplit\_once](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rsplit_once) <P>(&self, delimiter: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <(& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Splits the string on the last occurrence of the specified delimiter and
returns prefix before delimiter and suffix after delimiter.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-37) Examples
```
assert_eq!("cfg".rsplit_once('='), None);
assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
```
1.2.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1806)
#### pub fn [matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.matches) <P>(&self, pat: P) -> [Matches](https://doc.rust-lang.org/nightly/core/str/iter/struct.Matches.html "struct core::str::iter::Matches") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over the disjoint matches of a pattern within the
given string slice.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-6) Iterator behavior
The returned iterator will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if the pattern
allows a reverse search and forward/reverse search yields the same
elements. This is true for, e.g., [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), but not for `&str`.
If the pattern allows a reverse search but its results might differ
from a forward search, the [`rmatches`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches "method str::rmatches") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-38) Examples
```
let v: Vec<&str> = "abcXXXabcYYYabc".matches("abc").collect();
assert_eq!(v, ["abc", "abc", "abc"]);
let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect();
assert_eq!(v, ["1", "2", "3"]);
```
1.2.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1840-1842)
#### pub fn [rmatches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rmatches) <P>(&self, pat: P) -> [RMatches](https://doc.rust-lang.org/nightly/core/str/iter/struct.RMatches.html "struct core::str::iter::RMatches") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns an iterator over the disjoint matches of a pattern within this
string slice, yielded in reverse order.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-7) Iterator behavior
The returned iterator requires that the pattern supports a reverse
search, and it will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if a forward/reverse
search yields the same elements.
For iterating from the front, the [`matches`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches "method str::matches") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-39) Examples
```
let v: Vec<&str> = "abcXXXabcYYYabc".rmatches("abc").collect();
assert_eq!(v, ["abc", "abc", "abc"]);
let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect();
assert_eq!(v, ["3", "2", "1"]);
```
1.5.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1884)
#### pub fn [match\_indices](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.match_indices) <P>(&self, pat: P) -> [MatchIndices](https://doc.rust-lang.org/nightly/core/str/iter/struct.MatchIndices.html "struct core::str::iter::MatchIndices") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns an iterator over the disjoint matches of a pattern within this string
slice as well as the index that the match starts at.
For matches of `pat` within `self` that overlap, only the indices
corresponding to the first match are returned.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-8) Iterator behavior
The returned iterator will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if the pattern
allows a reverse search and forward/reverse search yields the same
elements. This is true for, e.g., [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), but not for `&str`.
If the pattern allows a reverse search but its results might differ
from a forward search, the [`rmatch_indices`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices "method str::rmatch_indices") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-40) Examples
```
let v: Vec<_> = "abcXXXabcYYYabc".match_indices("abc").collect();
assert_eq!(v, [(0, "abc"), (6, "abc"), (12, "abc")]);
let v: Vec<_> = "1abcabc2".match_indices("abc").collect();
assert_eq!(v, [(1, "abc"), (4, "abc")]);
let v: Vec<_> = "ababa".match_indices("aba").collect();
assert_eq!(v, [(0, "aba")]); // only the first `aba`
```
1.5.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1924-1926)
#### pub fn [rmatch\_indices](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.rmatch_indices) <P>(&self, pat: P) -> [RMatchIndices](https://doc.rust-lang.org/nightly/core/str/iter/struct.RMatchIndices.html "struct core::str::iter::RMatchIndices") <'\_, P> where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns an iterator over the disjoint matches of a pattern within `self`,
yielded in reverse order along with the index of the match.
For matches of `pat` within `self` that overlap, only the indices
corresponding to the last match are returned.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#iterator-behavior-9) Iterator behavior
The returned iterator requires that the pattern supports a reverse
search, and it will be a [`DoubleEndedIterator`](https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html "trait core::iter::traits::double_ended::DoubleEndedIterator") if a forward/reverse
search yields the same elements.
For iterating from the front, the [`match_indices`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices "method str::match_indices") method can be used.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-41) Examples
```
let v: Vec<_> = "abcXXXabcYYYabc".rmatch_indices("abc").collect();
assert_eq!(v, [(12, "abc"), (6, "abc"), (0, "abc")]);
let v: Vec<_> = "1abcabc2".rmatch_indices("abc").collect();
assert_eq!(v, [(4, "abc"), (1, "abc")]);
let v: Vec<_> = "ababa".rmatch_indices("aba").collect();
assert_eq!(v, [(2, "aba")]); // only the last `aba`
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1948)
#### pub fn [trim](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with leading and trailing whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`, which includes newlines.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-42) Examples
```
let s = "\n Hello\tworld\t\n";
assert_eq!("Hello\tworld", s.trim());
```
1.30.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#1987)
#### pub fn [trim\_start](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_start)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with leading whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`, which includes newlines.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality) Text directionality
A string is a sequence of bytes. `start` in this context means the first
position of that byte string; for a left-to-right language like English or
Russian, this will be left side, and for right-to-left languages like
Arabic or Hebrew, this will be the right side.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-43) Examples
Basic usage:
```
let s = "\n Hello\tworld\t\n";
assert_eq!("Hello\tworld\t\n", s.trim_start());
```
Directionality:
```
let s = " English ";
assert!(Some('E') == s.trim_start().chars().next());
let s = " עברית ";
assert!(Some('ע') == s.trim_start().chars().next());
```
1.30.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2026)
#### pub fn [trim\_end](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_end)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with trailing whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`, which includes newlines.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-1) Text directionality
A string is a sequence of bytes. `end` in this context means the last
position of that byte string; for a left-to-right language like English or
Russian, this will be right side, and for right-to-left languages like
Arabic or Hebrew, this will be the left side.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-44) Examples
Basic usage:
```
let s = "\n Hello\tworld\t\n";
assert_eq!("\n Hello\tworld", s.trim_end());
```
Directionality:
```
let s = " English ";
assert!(Some('h') == s.trim_end().chars().rev().next());
let s = " עברית ";
assert!(Some('ת') == s.trim_end().chars().rev().next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2066)
#### pub fn [trim\_left](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_left)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
👎Deprecated since 1.33.0: superseded by `trim_start`
Returns a string slice with leading whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-2) Text directionality
A string is a sequence of bytes. ‘Left’ in this context means the first
position of that byte string; for a language like Arabic or Hebrew
which are ‘right to left’ rather than ‘left to right’, this will be
the _right_ side, not the left.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-45) Examples
Basic usage:
```
let s = " Hello\tworld\t";
assert_eq!("Hello\tworld\t", s.trim_left());
```
Directionality:
```
let s = " English";
assert!(Some('E') == s.trim_left().chars().next());
let s = " עברית";
assert!(Some('ע') == s.trim_left().chars().next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2106)
#### pub fn [trim\_right](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_right)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
👎Deprecated since 1.33.0: superseded by `trim_end`
Returns a string slice with trailing whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived
Core Property `White_Space`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-3) Text directionality
A string is a sequence of bytes. ‘Right’ in this context means the last
position of that byte string; for a language like Arabic or Hebrew
which are ‘right to left’ rather than ‘left to right’, this will be
the _left_ side, not the right.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-46) Examples
Basic usage:
```
let s = " Hello\tworld\t";
assert_eq!(" Hello\tworld", s.trim_right());
```
Directionality:
```
let s = "English ";
assert!(Some('h') == s.trim_right().chars().rev().next());
let s = "עברית ";
assert!(Some('ת') == s.trim_right().chars().rev().next());
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2139-2141)
#### pub fn [trim\_matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_matches) <P>(&self, pat: P) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [DoubleEndedSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.DoubleEndedSearcher.html "trait core::str::pattern::DoubleEndedSearcher") <'a>,
Returns a string slice with all prefixes and suffixes that match a
pattern repeatedly removed.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a function
or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-47) Examples
Simple patterns:
```
assert_eq!("11foo1bar11".trim_matches('1'), "foo1bar");
assert_eq!("123foo1bar123".trim_matches(char::is_numeric), "foo1bar");
let x: &[_] = &['1', '2'];
assert_eq!("12foo1bar12".trim_matches(x), "foo1bar");
```
A more complex pattern, using a closure:
```
assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
```
1.30.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2186)
#### pub fn [trim\_start\_matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_start_matches) <P>(&self, pat: P) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns a string slice with all prefixes that match a pattern
repeatedly removed.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-4) Text directionality
A string is a sequence of bytes. `start` in this context means the first
position of that byte string; for a left-to-right language like English or
Russian, this will be left side, and for right-to-left languages like
Arabic or Hebrew, this will be the right side.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-48) Examples
```
assert_eq!("11foo1bar11".trim_start_matches('1'), "foo1bar11");
assert_eq!("123foo1bar123".trim_start_matches(char::is_numeric), "foo1bar123");
let x: &[_] = &['1', '2'];
assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
```
1.45.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2220)
#### pub fn [strip\_prefix](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.strip_prefix) <P>(&self, prefix: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) > where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Returns a string slice with the prefix removed.
If the string starts with the pattern `prefix`, returns the substring after the prefix,
wrapped in `Some`. Unlike [`trim_start_matches`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches "method str::trim_start_matches"), this method removes the prefix exactly once.
If the string does not start with `prefix`, returns `None`.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-49) Examples
```
assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
assert_eq!("foo:bar".strip_prefix("bar"), None);
assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
```
1.45.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2248-2250)
#### pub fn [strip\_suffix](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.strip_suffix) <P>(&self, suffix: P) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) > where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns a string slice with the suffix removed.
If the string ends with the pattern `suffix`, returns the substring before the suffix,
wrapped in `Some`. Unlike [`trim_end_matches`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches "method str::trim_end_matches"), this method removes the suffix exactly once.
If the string does not end with `suffix`, returns `None`.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-50) Examples
```
assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
assert_eq!("bar:foo".strip_suffix("bar"), None);
assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
```
1.30.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2291-2293)
#### pub fn [trim\_end\_matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_end_matches) <P>(&self, pat: P) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
Returns a string slice with all suffixes that match a pattern
repeatedly removed.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-5) Text directionality
A string is a sequence of bytes. `end` in this context means the last
position of that byte string; for a left-to-right language like English or
Russian, this will be right side, and for right-to-left languages like
Arabic or Hebrew, this will be the left side.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-51) Examples
Simple patterns:
```
assert_eq!("11foo1bar11".trim_end_matches('1'), "11foo1bar");
assert_eq!("123foo1bar123".trim_end_matches(char::is_numeric), "123foo1bar");
let x: &[_] = &['1', '2'];
assert_eq!("12foo1bar12".trim_end_matches(x), "12foo1bar");
```
A more complex pattern, using a closure:
```
assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2335)
#### pub fn [trim\_left\_matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_left_matches) <P>(&self, pat: P) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
👎Deprecated since 1.33.0: superseded by `trim_start_matches`
Returns a string slice with all prefixes that match a pattern
repeatedly removed.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-6) Text directionality
A string is a sequence of bytes. ‘Left’ in this context means the first
position of that byte string; for a language like Arabic or Hebrew
which are ‘right to left’ rather than ‘left to right’, this will be
the _right_ side, not the left.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-52) Examples
```
assert_eq!("11foo1bar11".trim_left_matches('1'), "foo1bar11");
assert_eq!("123foo1bar123".trim_left_matches(char::is_numeric), "foo1bar123");
let x: &[_] = &['1', '2'];
assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2378-2380)
#### pub fn [trim\_right\_matches](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_right_matches) <P>(&self, pat: P) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"), <P as [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern") >:: [Searcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html\#associatedtype.Searcher "type core::str::pattern::Pattern::Searcher") <'a>: for<'a> [ReverseSearcher](https://doc.rust-lang.org/nightly/core/str/pattern/trait.ReverseSearcher.html "trait core::str::pattern::ReverseSearcher") <'a>,
👎Deprecated since 1.33.0: superseded by `trim_end_matches`
Returns a string slice with all suffixes that match a pattern
repeatedly removed.
The [pattern](https://doc.rust-lang.org/nightly/core/str/pattern/index.html "mod core::str::pattern") can be a `&str`, [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char"), a slice of [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") s, or a
function or closure that determines if a character matches.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#text-directionality-7) Text directionality
A string is a sequence of bytes. ‘Right’ in this context means the last
position of that byte string; for a language like Arabic or Hebrew
which are ‘right to left’ rather than ‘left to right’, this will be
the _left_ side, not the right.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-53) Examples
Simple patterns:
```
assert_eq!("11foo1bar11".trim_right_matches('1'), "11foo1bar");
assert_eq!("123foo1bar123".trim_right_matches(char::is_numeric), "123foo1bar");
let x: &[_] = &['1', '2'];
assert_eq!("12foo1bar12".trim_right_matches(x), "12foo1bar");
```
A more complex pattern, using a closure:
```
assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2430)
#### pub fn [parse](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.parse) <F>(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <F, <F as [FromStr](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html "trait core::str::traits::FromStr") >:: [Err](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html\#associatedtype.Err "type core::str::traits::FromStr::Err") > where F: [FromStr](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html "trait core::str::traits::FromStr"),
Parses this string slice into another type.
Because `parse` is so general, it can cause problems with type
inference. As such, `parse` is one of the few times you’ll see
the syntax affectionately known as the ‘turbofish’: `::<>`. This
helps the inference algorithm understand specifically which type
you’re trying to parse into.
`parse` can parse into any type that implements the [`FromStr`](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html "trait core::str::traits::FromStr") trait.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#errors) Errors
Will return [`Err`](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html#associatedtype.Err "associated type core::str::traits::FromStr::Err") if it’s not possible to parse this string slice into
the desired type.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-54) Examples
Basic usage:
```
let four: u32 = "4".parse().unwrap();
assert_eq!(4, four);
```
Using the ‘turbofish’ instead of annotating `four`:
```
let four = "4".parse::<u32>();
assert_eq!(Ok(4), four);
```
Failing to parse:
```
let nope = "j".parse::<u32>();
assert!(nope.is_err());
```
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2449)
#### pub fn [is\_ascii](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.is_ascii)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if all characters in this string are within the ASCII range.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-55) Examples
```
let ascii = "hello!\n";
let non_ascii = "Grüße, Jürgen ❤";
assert!(ascii.is_ascii());
assert!(!non_ascii.is_ascii());
```
[Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2461)
#### pub fn [as\_ascii](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_ascii)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&\[ [AsciiChar](https://doc.rust-lang.org/nightly/core/ascii/ascii_char/enum.AsciiChar.html "enum core::ascii::ascii_char::AsciiChar")\]>
🔬This is a nightly-only experimental API. ( `ascii_char`)
If this string slice [`is_ascii`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_ascii "method str::is_ascii"), returns it as a slice
of [ASCII characters](https://doc.rust-lang.org/nightly/core/ascii/ascii_char/enum.AsciiChar.html "enum core::ascii::ascii_char::AsciiChar"), otherwise returns `None`.
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2482)
#### pub fn [eq\_ignore\_ascii\_case](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.eq_ignore_ascii_case)(&self, other: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks that two strings are an ASCII case-insensitive match.
Same as `to_ascii_lowercase(a) == to_ascii_lowercase(b)`,
but without allocating and copying temporaries.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-56) Examples
```
assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
```
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2508)
#### pub fn [make\_ascii\_uppercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.make_ascii_uppercase)(&mut self)
Converts this string to its ASCII upper case equivalent in-place.
ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’,
but non-ASCII letters are unchanged.
To return a new uppercased value without modifying the existing one, use
[`to_ascii_uppercase()`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_ascii_uppercase).
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-57) Examples
```
let mut s = String::from("Grüße, Jürgen ❤");
s.make_ascii_uppercase();
assert_eq!("GRüßE, JüRGEN ❤", s);
```
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2536)
#### pub fn [make\_ascii\_lowercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.make_ascii_lowercase)(&mut self)
Converts this string to its ASCII lower case equivalent in-place.
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To return a new lowercased value without modifying the existing one, use
[`to_ascii_lowercase()`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_ascii_lowercase).
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-58) Examples
```
let mut s = String::from("GRÜßE, JÜRGEN ❤");
s.make_ascii_lowercase();
assert_eq!("grÜße, jÜrgen ❤", s);
```
1.80.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2561)
#### pub fn [trim\_ascii\_start](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_ascii_start)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with leading ASCII whitespace removed.
‘Whitespace’ refers to the definition used by
[`u8::is_ascii_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.u8.html#method.is_ascii_whitespace "method u8::is_ascii_whitespace").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-59) Examples
```
assert_eq!(" \t \u{3000}hello world\n".trim_ascii_start(), "\u{3000}hello world\n");
assert_eq!(" ".trim_ascii_start(), "");
assert_eq!("".trim_ascii_start(), "");
```
1.80.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2586)
#### pub fn [trim\_ascii\_end](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_ascii_end)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with trailing ASCII whitespace removed.
‘Whitespace’ refers to the definition used by
[`u8::is_ascii_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.u8.html#method.is_ascii_whitespace "method u8::is_ascii_whitespace").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-60) Examples
```
assert_eq!("\r hello world\u{3000}\n ".trim_ascii_end(), "\r hello world\u{3000}");
assert_eq!(" ".trim_ascii_end(), "");
assert_eq!("".trim_ascii_end(), "");
```
1.80.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2612)
#### pub fn [trim\_ascii](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.trim_ascii)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Returns a string slice with leading and trailing ASCII whitespace
removed.
‘Whitespace’ refers to the definition used by
[`u8::is_ascii_whitespace`](https://doc.rust-lang.org/nightly/std/primitive.u8.html#method.is_ascii_whitespace "method u8::is_ascii_whitespace").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-61) Examples
```
assert_eq!("\r hello world\n ".trim_ascii(), "hello world");
assert_eq!(" ".trim_ascii(), "");
assert_eq!("".trim_ascii(), "");
```
1.34.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2655)
#### pub fn [escape\_debug](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.escape_debug)(&self) -> [EscapeDebug](https://doc.rust-lang.org/nightly/core/str/iter/struct.EscapeDebug.html "struct core::str::iter::EscapeDebug") <'\_>
Returns an iterator that escapes each char in `self` with [`char::escape_debug`](https://doc.rust-lang.org/nightly/std/primitive.char.html#method.escape_debug "method char::escape_debug").
Note: only extended grapheme codepoints that begin the string will be
escaped.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-62) Examples
As an iterator:
```
for c in "❤\n!".escape_debug() {
print!("{c}");
}
println!();
```
Using `println!` directly:
```
println!("{}", "❤\n!".escape_debug());
```
Both are equivalent to:
```
println!("❤\\n!");
```
Using `to_string`:
```
assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
```
1.34.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2701)
#### pub fn [escape\_default](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.escape_default)(&self) -> [EscapeDefault](https://doc.rust-lang.org/nightly/core/str/iter/struct.EscapeDefault.html "struct core::str::iter::EscapeDefault") <'\_>
Returns an iterator that escapes each char in `self` with [`char::escape_default`](https://doc.rust-lang.org/nightly/std/primitive.char.html#method.escape_default "method char::escape_default").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-63) Examples
As an iterator:
```
for c in "❤\n!".escape_default() {
print!("{c}");
}
println!();
```
Using `println!` directly:
```
println!("{}", "❤\n!".escape_default());
```
Both are equivalent to:
```
println!("\\u{{2764}}\\n!");
```
Using `to_string`:
```
assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
```
1.34.0 · [Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2739)
#### pub fn [escape\_unicode](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.escape_unicode)(&self) -> [EscapeUnicode](https://doc.rust-lang.org/nightly/core/str/iter/struct.EscapeUnicode.html "struct core::str::iter::EscapeUnicode") <'\_>
Returns an iterator that escapes each char in `self` with [`char::escape_unicode`](https://doc.rust-lang.org/nightly/std/primitive.char.html#method.escape_unicode "method char::escape_unicode").
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-64) Examples
As an iterator:
```
for c in "❤\n!".escape_unicode() {
print!("{c}");
}
println!();
```
Using `println!` directly:
```
println!("{}", "❤\n!".escape_unicode());
```
Both are equivalent to:
```
println!("\\u{{2764}}\\u{{a}}\\u{{21}}");
```
Using `to_string`:
```
assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
```
[Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2772)
#### pub fn [substr\_range](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.substr_range)(&self, substr: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Range](https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html "struct core::ops::range::Range") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >>
🔬This is a nightly-only experimental API. ( `substr_range`)
Returns the range that a substring points to.
Returns `None` if `substr` does not point within `self`.
Unlike [`str::find`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.find "method str::find"), **this does not search through the string**.
Instead, it uses pointer arithmetic to find where in the string
`substr` is derived from.
This is useful for extending [`str::split`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split "method str::split") and similar methods.
Note that this method may return false positives (typically either
`Some(0..0)` or `Some(self.len()..self.len())`) if `substr` is a
zero-length `str` that points at the beginning or end of another,
independent, `str`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-65) Examples
```
#![feature(substr_range)]
let data = "a, b, b, a";
let mut iter = data.split(", ").map(|s| data.substr_range(s).unwrap());
assert_eq!(iter.next(), Some(0..1));
assert_eq!(iter.next(), Some(3..4));
assert_eq!(iter.next(), Some(6..7));
assert_eq!(iter.next(), Some(9..10));
```
[Source](https://doc.rust-lang.org/nightly/src/core/str/mod.rs.html#2783)
#### pub fn [as\_str](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.as_str-1)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
🔬This is a nightly-only experimental API. ( `str_as_str`)
Returns the same string as a string slice `&str`.
This method is redundant when used directly on `&str`, but
it helps dereferencing other string-like types to string slices,
for example references to `Box<str>` or `Arc<str>`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#271)
#### pub fn [replace](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.replace) <P>(&self, from: P, to: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Available on **non- `no_global_oom_handling`** only.
Replaces all matches of a pattern with another string.
`replace` creates a new [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"), and copies the data from this string slice into it.
While doing so, it attempts to find matches of a pattern. If it finds any, it
replaces them with the replacement string slice.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-66) Examples
Basic usage:
```
let s = "this is old";
assert_eq!("this is new", s.replace("old", "new"));
assert_eq!("than an old", s.replace("is", "an"));
```
When the pattern doesn’t match, it returns this string slice as [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"):
```
let s = "this is old";
assert_eq!(s, s.replace("cookie monster", "little lamb"));
```
1.16.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#327)
#### pub fn [replacen](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.replacen) <P>(&self, pat: P, to: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html), count: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") where P: [Pattern](https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html "trait core::str::pattern::Pattern"),
Available on **non- `no_global_oom_handling`** only.
Replaces first N matches of a pattern with another string.
`replacen` creates a new [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"), and copies the data from this string slice into it.
While doing so, it attempts to find matches of a pattern. If it finds any, it
replaces them with the replacement string slice at most `count` times.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-67) Examples
Basic usage:
```
let s = "foo foo 123 foo";
assert_eq!("new new 123 foo", s.replacen("foo", "new", 2));
assert_eq!("faa fao 123 foo", s.replacen('o', "a", 3));
assert_eq!("foo foo new23 foo", s.replacen(char::is_numeric, "new", 1));
```
When the pattern doesn’t match, it returns this string slice as [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"):
```
let s = "this is old";
assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
```
1.2.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#384)
#### pub fn [to\_lowercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.to_lowercase)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Available on **non- `no_global_oom_handling`** only.
Returns the lowercase equivalent of this string slice, as a new [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String").
‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property
`Lowercase`.
Since some characters can expand into multiple characters when changing
the case, this function returns a [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") instead of modifying the
parameter in-place.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-68) Examples
Basic usage:
```
let s = "HELLO";
assert_eq!("hello", s.to_lowercase());
```
A tricky example, with sigma:
```
let sigma = "Σ";
assert_eq!("σ", sigma.to_lowercase());
// but at the end of a word, it's ς, not σ:
let odysseus = "ὈΔΥΣΣΕΎΣ";
assert_eq!("ὀδυσσεύς", odysseus.to_lowercase());
```
Languages without case are not changed:
```
let new_year = "农历新年";
assert_eq!(new_year, new_year.to_lowercase());
```
1.2.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#471)
#### pub fn [to\_uppercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.to_uppercase)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Available on **non- `no_global_oom_handling`** only.
Returns the uppercase equivalent of this string slice, as a new [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String").
‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property
`Uppercase`.
Since some characters can expand into multiple characters when changing
the case, this function returns a [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") instead of modifying the
parameter in-place.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-69) Examples
Basic usage:
```
let s = "hello";
assert_eq!("HELLO", s.to_uppercase());
```
Scripts without case are not changed:
```
let new_year = "农历新年";
assert_eq!(new_year, new_year.to_uppercase());
```
One character can become multiple:
```
let s = "tschüß";
assert_eq!("TSCHÜSS", s.to_uppercase());
```
1.16.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#535)
#### pub fn [repeat](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.repeat)(&self, n: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Available on **non- `no_global_oom_handling`** only.
Creates a new [`String`](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") by repeating a string `n` times.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#panics-2) Panics
This function will panic if the capacity would overflow.
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-70) Examples
Basic usage:
```
assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));
```
A panic upon overflow:
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html# "This example panics")
```
// this will panic at runtime
let huge = "0123456789abcdef".repeat(usize::MAX);
```
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#565)
#### pub fn [to\_ascii\_uppercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.to_ascii_uppercase)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Available on **non- `no_global_oom_handling`** only.
Returns a copy of this string where each character is mapped to its
ASCII upper case equivalent.
ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’,
but non-ASCII letters are unchanged.
To uppercase the value in-place, use [`make_ascii_uppercase`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.make_ascii_uppercase "method str::make_ascii_uppercase").
To uppercase ASCII characters in addition to non-ASCII characters, use
[`to_uppercase`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_uppercase).
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-71) Examples
```
let s = "Grüße, Jürgen ❤";
assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
```
1.23.0 · [Source](https://doc.rust-lang.org/nightly/src/alloc/str.rs.html#597)
#### pub fn [to\_ascii\_lowercase](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#method.to_ascii_lowercase)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Available on **non- `no_global_oom_handling`** only.
Returns a copy of this string where each character is mapped to its
ASCII lower case equivalent.
ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’,
but non-ASCII letters are unchanged.
To lowercase the value in-place, use [`make_ascii_lowercase`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.make_ascii_lowercase "method str::make_ascii_lowercase").
To lowercase ASCII characters in addition to non-ASCII characters, use
[`to_lowercase`](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_lowercase).
##### [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#examples-72) Examples
```
let s = "Grüße, Jürgen ❤";
assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
```
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#107) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-AsRef%3C%5Bu8%5D%3E-for-PlSmallStr)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") <\[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\]\> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#109) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.as_ref-2)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> &\[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\] [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#)
Converts this type into a shared reference of the (usually inferred) input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#114) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-AsRef%3COsStr%3E-for-PlSmallStr)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [OsStr](https://doc.rust-lang.org/nightly/std/ffi/os_str/struct.OsStr.html "struct std::ffi::os_str::OsStr") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#116) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.as_ref-3)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> & [OsStr](https://doc.rust-lang.org/nightly/std/ffi/os_str/struct.OsStr.html "struct std::ffi::os_str::OsStr")
Converts this type into a shared reference of the (usually inferred) input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#100) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-AsRef%3CPath%3E-for-PlSmallStr)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [Path](https://doc.rust-lang.org/nightly/std/path/struct.Path.html "struct std::path::Path") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#102) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.as_ref-1)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> & [Path](https://doc.rust-lang.org/nightly/std/path/struct.Path.html "struct std::path::Path")
Converts this type into a shared reference of the (usually inferred) input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#68) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-AsRef%3Cstr%3E-for-PlSmallStr)
### impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#70) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.as_ref)
#### fn [as\_ref](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html\#tymethod.as_ref)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Converts this type into a shared reference of the (usually inferred) input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Borrow%3Cstr%3E-for-PlSmallStr)
### impl [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#93) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Clone-for-PlSmallStr)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#256) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Debug-for-PlSmallStr)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#258) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#59) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Default-for-PlSmallStr)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#61) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#75) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Deref-for-PlSmallStr)
### impl [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#76) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Target)
#### type [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target) = [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
The resulting type after dereferencing.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#79) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.deref)
#### fn [deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#tymethod.deref)(&self) -> &< [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") as [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") >:: [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target "type core::ops::deref::Deref::Target")
Dereferences the value.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-DerefMut-for-PlSmallStr)
### impl [DerefMut](https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html "trait core::ops::deref::DerefMut") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.deref_mut)
#### fn [deref\_mut](https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html\#tymethod.deref_mut)(&mut self) -> &mut < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") as [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") >:: [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target "type core::ops::deref::Deref::Target")
Mutably dereferences the value.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#18) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Deserialize%3C'de%3E-for-PlSmallStr)
### impl<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#18) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <\_\_D>( \_\_deserializer: \_\_D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"), <\_\_D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where \_\_D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#263) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Display-for-PlSmallStr)
### impl [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#265) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.fmt-1)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#137) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3C%26String%3E-for-PlSmallStr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-3)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: & [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#123) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3C%26str%3E-for-PlSmallStr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#125) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#144) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3CCompactString%3E-for-PlSmallStr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <CompactString> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#146) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-4)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: CompactString) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/scalar/from.rs.html#18-32) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3CPlSmallStr%3E-for-Scalar)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for [Scalar](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Scalar.html "struct polars::prelude::Scalar")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/scalar/from.rs.html#18-32) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(v: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [Scalar](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Scalar.html "struct polars::prelude::Scalar")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3CPlSmallStr%3E-for-Selector)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for [Selector](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Selector.html "enum polars::prelude::Selector")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-5)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [Selector](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Selector.html "enum polars::prelude::Selector")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#130) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3CString%3E-for-PlSmallStr)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#132) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-2)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")) -\> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#160) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3C%26PlSmallStr%3E-for-PlSmallStr)
### impl<'a> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") <&'a [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#162) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-1)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <T>(iter: T) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where T: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = &'a [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3C%26char%3E-for-PlSmallStr)
### impl<'a> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") <&'a [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#176) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-3)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = &'a [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#181) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3C%26str%3E-for-PlSmallStr)
### impl<'a> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") <&'a [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#183) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-4)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = &'a [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3CBox%3Cstr%3E%3E-for-PlSmallStr)
### impl [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >\> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-6)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#202) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3CCow%3C'a,+str%3E%3E-for-PlSmallStr)
### impl<'a> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow") <'a, [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >\> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#204) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-7)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow") <'a, [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#153) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3CPlSmallStr%3E-for-PlSmallStr)
### impl [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#155) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <T>(iter: T) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where T: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#188) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3CString%3E-for-PlSmallStr)
### impl [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#190) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-5)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#167) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-FromIterator%3Cchar%3E-for-PlSmallStr)
### impl [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) \> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#169) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from_iter-2)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) >,
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Hash-for-PlSmallStr)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Literal-for-PlSmallStr)
### impl [Literal](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.Literal.html "trait polars::prelude::Literal") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.lit)
#### fn [lit](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.Literal.html\#tymethod.lit)(self) -> [Expr](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html "enum polars::prelude::Expr")
[Literal](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.Expr.html#variant.Literal "variant polars::prelude::Expr::Literal") expression.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Ord-for-PlSmallStr)
### impl [Ord](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html "trait core::cmp::Ord") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.cmp)
#### fn [cmp](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#tymethod.cmp)(&self, other: & [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering")
This method returns an [`Ordering`](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering") between `self` and `other`. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp)
1.21.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#980-982) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.max)
#### fn [max](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.max)(self, other: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Compares and returns the maximum of two values. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max)
1.21.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1001-1003) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.min)
#### fn [min](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.min)(self, other: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Compares and returns the minimum of two values. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min)
1.50.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1027-1029) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.clamp)
#### fn [clamp](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.clamp)(self, min: Self, max: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Restrict a value to a certain interval. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#221) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-PartialEq%3CPlSmallStr%3E-for-%26str)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#223) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.eq-1)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.ne-1)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#211-213) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-PartialEq%3CT%3E-for-PlSmallStr)
### impl<T> [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") <T> for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") where T: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#216) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-PartialOrd-for-PlSmallStr)
### impl [PartialOrd](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html "trait core::cmp::PartialOrd") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.partial_cmp)
#### fn [partial\_cmp](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#tymethod.partial_cmp)(&self, other: & [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering") >
This method returns an ordering between `self` and `other` values if one exists. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1335) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.lt)
#### fn [lt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.lt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than (for `self` and `other`) and is used by the `<` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1353) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.le)
#### fn [le](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.le)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than or equal to (for `self` and `other`) and is used by the
`<=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1371) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.gt)
#### fn [gt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.gt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than (for `self` and `other`) and is used by the `>`
operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1389) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.ge)
#### fn [ge](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.ge)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than or equal to (for `self` and `other`) and is used by
the `>=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#18) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Serialize-for-PlSmallStr)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#18) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <\_\_S>( &self, \_\_serializer: \_\_S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <\_\_S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where \_\_S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#237) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Write-for-PlSmallStr)
### impl [Write](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html "trait core::fmt::Write") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#239) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.write_char)
#### fn [write\_char](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html\#method.write_char)(&mut self, c: [char](https://doc.rust-lang.org/nightly/std/primitive.char.html)) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Writes a [`char`](https://doc.rust-lang.org/nightly/std/primitive.char.html "primitive char") into this writer, returning whether the write succeeded. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html#method.write_char)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#244) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.write_fmt)
#### fn [write\_fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html\#method.write_fmt)(&mut self, args: [Arguments](https://doc.rust-lang.org/nightly/core/fmt/struct.Arguments.html "struct core::fmt::Arguments") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Glue for usage of the [`write!`](https://doc.rust-lang.org/nightly/core/macro.write.html "macro core::write") macro with implementors of this trait. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html#method.write_fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#249) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.write_str)
#### fn [write\_str](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html\#tymethod.write_str)(&mut self, s: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Writes a string slice into this writer, returning whether the write
succeeded. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html#tymethod.write_str)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/pl_str.rs.html#15) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Eq-for-PlSmallStr)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Freeze-for-PlSmallStr)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-RefUnwindSafe-for-PlSmallStr)
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Send-for-PlSmallStr)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Sync-for-PlSmallStr)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Unpin-for-PlSmallStr)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-UnwindSafe-for-PlSmallStr)
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.borrow-1)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Comparable%3CK%3E-for-Q)
### impl<Q, K> Comparable<K> for Q where Q: [Ord](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html "trait core::cmp::Ord") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.compare)
#### fn compare(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering")
Compare self to `key` and return their ordering.
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.from-6)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/utils/mod.rs.html#1074-1077) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-IntoVec%3CPlSmallStr%3E-for-I)
### impl<I, S> [IntoVec](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.IntoVec.html "trait polars::prelude::IntoVec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") \> for I where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = S>, S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >,
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/utils/mod.rs.html#1079) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.into_vec)
#### fn [into\_vec](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.IntoVec.html\#tymethod.into_vec)(self) -> [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.deref-1)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.deref_mut-1)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/ops/deref.rs.html#418-420) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-Receiver-for-P)
### impl<P, T> [Receiver](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Receiver.html "trait core::ops::deref::Receiver") for P where P: [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") <Target = T> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/ops/deref.rs.html#422) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Target-1)
#### type [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Receiver.html\#associatedtype.Target) = T
🔬This is a nightly-only experimental API. ( `arbitrary_self_types`)
The target type on which the method may be called.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-ToCompactString-for-T)
### impl<T> ToCompactString for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.try_to_compact_string)
#### fn try\_to\_compact\_string(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <CompactString, ToCompactStringError>
Fallible version of \[ `ToCompactString::to_compact_string()`\] Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_compact_string)
#### fn to\_compact\_string(&self) -> CompactString
Converts the given value to a \[ `CompactString`\]. Read more
[Source](https://docs.rs/hex/0.4.3/src/hex/lib.rs.html#137) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-ToHex-for-T)
### impl<T> [ToHex](https://docs.rs/hex/0.4.3/hex/trait.ToHex.html "trait hex::ToHex") for T where T: [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") <\[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\]>,
[Source](https://docs.rs/hex/0.4.3/src/hex/lib.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.encode_hex)
#### fn [encode\_hex](https://docs.rs/hex/0.4.3/hex/trait.ToHex.html\#tymethod.encode_hex) <U>(&self) -> U where U: [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) >,
Encode the hex strict representing `self` into the result. Lower case
letters are used (e.g. `f9b4ca`)
[Source](https://docs.rs/hex/0.4.3/src/hex/lib.rs.html#142) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.encode_hex_upper)
#### fn [encode\_hex\_upper](https://docs.rs/hex/0.4.3/hex/trait.ToHex.html\#tymethod.encode_hex_upper) <U>(&self) -> U where U: [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) >,
Encode the hex strict representing `self` into the result. Upper case
letters are used (e.g. `F9B4CA`)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2677) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-ToString-for-T)
### impl<T> [ToString](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html "trait alloc::string::ToString") for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2679) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.to_string)
#### fn [to\_string](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html\#tymethod.to_string)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Converts the given value to a `String`. [Read more](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars\_lazy](https://docs.pola.rs/api/rust/dev/polars_lazy/index.html):: [frame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/index.html)
# Struct LazyJsonLineReaderCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#15-28)
```
pub struct LazyJsonLineReader { /* private fields */ }
```
Available on **crate feature `json`** only.
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#30-121) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-LazyJsonLineReader)
### impl [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#31-33)
#### pub fn [new\_paths](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.new_paths)(paths: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <\[ [PathBuf](https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html "struct std::path::PathBuf")\]>) -\> Self
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#35-50)
#### pub fn [new\_with\_sources](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.new_with_sources)(sources: ScanSources) -> Self
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#52-54)
#### pub fn [new](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.new)(path: impl [AsRef](https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html "trait core::convert::AsRef") < [Path](https://doc.rust-lang.org/nightly/std/path/struct.Path.html "struct std::path::Path") >) -\> Self
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#58-61)
#### pub fn [with\_row\_index](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_row_index)(self, row\_index: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [RowIndex](https://docs.pola.rs/api/rust/dev/polars_io/options/struct.RowIndex.html "struct polars_io::options::RowIndex") >) -\> Self
Add a row index column.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#65-68)
#### pub fn [with\_ignore\_errors](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_ignore_errors)(self, ignore\_errors: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> Self
Set values as `Null` if parsing fails because of schema mismatches.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#72-75)
#### pub fn [with\_n\_rows](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_n_rows)(self, num\_rows: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >) -\> Self
Try to stop parsing when `n` rows are parsed. During multithreaded parsing the upper bound `n` cannot
be guaranteed.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#81-84)
#### pub fn [with\_infer\_schema\_length](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_infer_schema_length)(self, num\_rows: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [NonZeroUsize](https://doc.rust-lang.org/nightly/core/num/nonzero/type.NonZeroUsize.html "type core::num::nonzero::NonZeroUsize") >) -\> Self
Set the number of rows to use when inferring the json schema.
the default is 100 rows.
Ignored when the schema is specified explicitly using [`Self::with_schema`](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_schema "method polars_lazy::frame::LazyJsonLineReader::with_schema").
Setting to `None` will do a full table scan, very slow.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#87-90)
#### pub fn [with\_schema](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_schema)(self, schema: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [SchemaRef](https://docs.pola.rs/api/rust/dev/polars_core/schema/type.SchemaRef.html "type polars_core::schema::SchemaRef") >) -\> Self
Set the JSON file’s schema
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#94-97)
#### pub fn [with\_schema\_overwrite](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_schema_overwrite)(self, schema\_overwrite: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [SchemaRef](https://docs.pola.rs/api/rust/dev/polars_core/schema/type.SchemaRef.html "type polars_core::schema::SchemaRef") >) -\> Self
Set the JSON file’s schema
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#101-104)
#### pub fn [low\_memory](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.low_memory)(self, toggle: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> Self
Reduce memory usage at the expense of performance
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#107-110)
#### pub fn [with\_batch\_size](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_batch_size)(self, batch\_size: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [NonZeroUsize](https://doc.rust-lang.org/nightly/core/num/nonzero/type.NonZeroUsize.html "type core::num::nonzero::NonZeroUsize") >) -\> Self
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#112-115)
#### pub fn [with\_cloud\_options](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_cloud_options)(self, cloud\_options: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [CloudOptions](https://docs.pola.rs/api/rust/dev/polars_io/cloud/options/struct.CloudOptions.html "struct polars_io::cloud::options::CloudOptions") >) -\> Self
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#117-120)
#### pub fn [with\_include\_file\_paths](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#method.with_include_file_paths)( self, include\_file\_paths: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars_utils/pl_str/struct.PlSmallStr.html "struct polars_utils::pl_str::PlSmallStr") >, ) -\> Self
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#14) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Clone-for-LazyJsonLineReader)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#14) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#123-216) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-LazyFileListReader-for-LazyJsonLineReader)
### impl [LazyFileListReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html "trait polars_lazy::frame::LazyFileListReader") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#196-199) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_rechunk)
#### fn [with\_rechunk](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.with_rechunk)(self, toggle: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> Self
Rechunk the memory to contiguous chunks when parsing is done.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#203-205) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.n_rows)
#### fn [n\_rows](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.n_rows)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >
Try to stop parsing when `n` rows are parsed. During multithreaded parsing the upper bound `n` cannot
be guaranteed.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#208-210) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.row_index)
#### fn [row\_index](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.row_index)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [RowIndex](https://docs.pola.rs/api/rust/dev/polars_io/options/struct.RowIndex.html "struct polars_io::options::RowIndex") >
Add a row index column.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#213-215) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.cloud_options)
#### fn [cloud\_options](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#method.cloud_options)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [CloudOptions](https://docs.pola.rs/api/rust/dev/polars_io/cloud/options/struct.CloudOptions.html "struct polars_io::cloud::options::CloudOptions") >
[CloudOptions](https://docs.pola.rs/api/rust/dev/polars_io/cloud/options/struct.CloudOptions.html "struct polars_io::cloud::options::CloudOptions") used to list files.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#124-165) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.finish)
#### fn [finish](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#method.finish)(self) -> PolarsResult< [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame") >
Get the final [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame").
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#167-169) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.finish_no_glob)
#### fn [finish\_no\_glob](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.finish_no_glob)(self) -> PolarsResult< [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame") >
Get the final [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame").
This method assumes, that path is _not_ a glob. [Read more](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html#tymethod.finish_no_glob)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#171-173) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.sources)
#### fn [sources](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.sources)(&self) -> &ScanSources
Get the sources for this reader.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#175-178) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_sources)
#### fn [with\_sources](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.with_sources)(self, sources: ScanSources) -> Self
Set sources of the scanned files.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#180-183) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_n_rows-1)
#### fn [with\_n\_rows](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.with_n_rows)(self, n\_rows: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >>) -\> Self
Configure the row limit.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#185-188) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_row_index-1)
#### fn [with\_row\_index](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.with_row_index)(self, row\_index: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [RowIndex](https://docs.pola.rs/api/rust/dev/polars_io/options/struct.RowIndex.html "struct polars_io::options::RowIndex") >>) -\> Self
Configure the row index.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#190-192) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.rechunk)
#### fn [rechunk](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#tymethod.rechunk)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Rechunk the memory to contiguous chunks when parsing is done.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#65-74) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.concat_impl)
#### fn [concat\_impl](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#method.concat_impl)(&self, lfs: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame") >) -\> PolarsResult< [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame") >
Recommended concatenation of [LazyFrame](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html "struct polars_lazy::frame::LazyFrame") s from many input files. [Read more](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html#method.concat_impl)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.glob)
#### fn [glob](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#method.glob)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#95-97) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_paths)
#### fn [with\_paths](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/trait.LazyFileListReader.html\#method.with_paths)(self, paths: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc") <\[ [PathBuf](https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html "struct std::path::PathBuf")\]>) -\> Self
Set paths of the scanned files.
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Freeze-for-LazyJsonLineReader)
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-RefUnwindSafe-for-LazyJsonLineReader)
### impl ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Send-for-LazyJsonLineReader)
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Sync-for-LazyJsonLineReader)
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Unpin-for-LazyJsonLineReader)
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-UnwindSafe-for-LazyJsonLineReader)
### impl ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html "struct polars_lazy::frame::LazyJsonLineReader")
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self>
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T
[§](https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyJsonLineReader.html#impl-Ungil-for-T)
### impl<T> Ungil for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Type Alias GetOutputCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub type GetOutput = SpecialEq<Arc<dyn FunctionOutputField>>;
```
Available on **crate feature `lazy`** only.
## Aliased Type [§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html\#aliased-type)
```
struct GetOutput(/* private fields */);
```
## Implementations
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-SpecialEq%3CArc%3Cdyn+FunctionOutputField%3E%3E)
### impl [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [same\_type](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.same_type)() -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [first](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.first)() -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [from\_type](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.from_type)(dt: [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [map\_field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.map_field) <F>(f: F) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >> where F: 'static + [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(& [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") \> \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
#### pub fn [map\_fields](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.map_fields) <F>(f: F) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >> where F: 'static + [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&\[ [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")\]) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") \> \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
#### pub fn [map\_dtype](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.map_dtype) <F>(f: F) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >> where F: 'static + [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(& [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") \> \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
#### pub fn [float\_type](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.float_type)() -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [super\_type](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.super_type)() -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
#### pub fn [map\_dtypes](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.map_dtypes) <F>(f: F) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >> where F: 'static + [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&\[& [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")\]) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") \> \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-SpecialEq%3CT%3E)
### impl<T> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T>
#### pub fn [new](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html\#tymethod.new)(val: T) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T>
## Trait Implementations
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Clone-for-SpecialEq%3CT%3E)
### impl<T> [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T> where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T>
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Debug-for-SpecialEq%3CT%3E)
### impl<T> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T>
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Default-for-SpecialEq%3CArc%3Cdyn+FunctionOutputField%3E%3E)
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Deref-for-SpecialEq%3CT%3E)
### impl<T> [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T>
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#associatedtype.Target)
#### type [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target) = T
The resulting type after dereferencing.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.deref)
#### fn [deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#tymethod.deref)(&self) -> &< [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") <T> as [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") >:: [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target "type core::ops::deref::Deref::Target")
Dereferences the value.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Deserialize%3C'a%3E-for-SpecialEq%3CArc%3CT%3E%3E)
### impl<'a, T> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'a> for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>> where T: [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'a>,
Available on **crate feature `serde`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <D>( deserializer: D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>>, <D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Deserialize%3C'a%3E-for-SpecialEq%3CArc%3Cdyn+FunctionOutputField%3E%3E)
### impl<'a> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'a> for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
Available on **crate feature `serde`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.deserialize-1)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <D>( deserializer: D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>, <D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-PartialEq-for-SpecialEq%3CArc%3CT%3E%3E)
### impl<T> [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>> where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>>) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Serialize-for-SpecialEq%3CArc%3CT%3E%3E)
### impl<T> [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>> where T: [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize"),
Available on **crate feature `serde`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <S>( &self, serializer: S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Serialize-for-SpecialEq%3CArc%3Cdyn+FunctionOutputField%3E%3E)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <dyn [FunctionOutputField](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.FunctionOutputField.html "trait polars::prelude::FunctionOutputField") >>
Available on **crate feature `serde`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#method.serialize-1)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <S>( &self, serializer: S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/type.GetOutput.html#impl-Eq-for-SpecialEq%3CArc%3CT%3E%3E)
### impl<T> [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [SpecialEq](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.SpecialEq.html "struct polars::prelude::SpecialEq") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <T>>[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Module fill\_nullCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/ops/mod.rs.html#25)[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [error](https://docs.pola.rs/api/rust/dev/polars/error/index.html)
# Type Alias PolarsResultCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub type PolarsResult<T> = Result<T, PolarsError>;
```
## Aliased Type [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#aliased-type)
```
enum PolarsResult<T> {
Ok(T),
Err(PolarsError),
}
```
## Variants [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#variants)
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#variant.Ok) 1.0.0
### Ok(T)
Contains the success value
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#variant.Err) 1.0.0
### Err( [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError"))
Contains the error value
## Implementations
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1530) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Result%3C%26T,+E%3E)
### impl<T, E> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html), E>
1.59.0 (const: 1.83.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1547-1549)
#### pub const fn [copied](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.copied)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy"),
Maps a `Result<&T, E>` to a `Result<T, E>` by copying the contents of the
`Ok` part.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let val = 12;
let x: Result<&i32, i32> = Ok(&val);
assert_eq!(x, Ok(&12));
let copied = x.copied();
assert_eq!(copied, Ok(12));
```
1.59.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1573-1575)
#### pub fn [cloned](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.cloned)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Maps a `Result<&T, E>` to a `Result<T, E>` by cloning the contents of the
`Ok` part.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let val = 12;
let x: Result<&i32, i32> = Ok(&val);
assert_eq!(x, Ok(&12));
let cloned = x.cloned();
assert_eq!(cloned, Ok(12));
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1581) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Result%3C%26mut+T,+E%3E)
### impl<T, E> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html), E>
1.59.0 (const: 1.83.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1598-1600)
#### pub const fn [copied](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.copied)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy"),
Maps a `Result<&mut T, E>` to a `Result<T, E>` by copying the contents of the
`Ok` part.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let mut val = 12;
let x: Result<&mut i32, i32> = Ok(&mut val);
assert_eq!(x, Ok(&mut 12));
let copied = x.copied();
assert_eq!(copied, Ok(12));
```
1.59.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1624-1626)
#### pub fn [cloned](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.cloned)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
Maps a `Result<&mut T, E>` to a `Result<T, E>` by cloning the contents of the
`Ok` part.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let mut val = 12;
let x: Result<&mut i32, i32> = Ok(&mut val);
assert_eq!(x, Ok(&mut 12));
let cloned = x.cloned();
assert_eq!(cloned, Ok(12));
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1632) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Result%3COption%3CT%3E,+E%3E)
### impl<T, E> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <T>, E>
1.33.0 (const: 1.83.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1652)
#### pub const fn [transpose](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.transpose)(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>>
Transposes a `Result` of an `Option` into an `Option` of a `Result`.
`Ok(None)` will be mapped to `None`.
`Ok(Some(_))` and `Err(_)` will be mapped to `Some(Ok(_))` and `Some(Err(_))`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1) Examples
```
#[derive(Debug, Eq, PartialEq)]
struct SomeErr;
let x: Result<Option<i32>, SomeErr> = Ok(Some(5));
let y: Option<Result<i32, SomeErr>> = Some(Ok(5));
assert_eq!(x.transpose(), y);
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1661) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Result%3CResult%3CT,+E%3E,+E%3E)
### impl<T, E> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>, E>
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1689)
#### pub const fn [flatten](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.flatten)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
🔬This is a nightly-only experimental API. ( `result_flattening`)
Converts from `Result<Result<T, E>, E>` to `Result<T, E>`
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1) Examples
```
#![feature(result_flattening)]
let x: Result<Result<&'static str, u32>, u32> = Ok(Ok("hello"));
assert_eq!(Ok("hello"), x.flatten());
let x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));
assert_eq!(Err(6), x.flatten());
let x: Result<Result<&'static str, u32>, u32> = Err(6);
assert_eq!(Err(6), x.flatten());
```
Flattening only removes one level of nesting at a time:
```
#![feature(result_flattening)]
let x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok("hello")));
assert_eq!(Ok(Ok("hello")), x.flatten());
assert_eq!(Ok("hello"), x.flatten().flatten());
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#544) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Result%3CT,+E%3E)
### impl<T, E> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
1.0.0 (const: 1.48.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#564)
#### pub const fn [is\_ok](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.is_ok)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Returns `true` if the result is [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let x: Result<i32, &str> = Ok(-3);
assert_eq!(x.is_ok(), true);
let x: Result<i32, &str> = Err("Some error message");
assert_eq!(x.is_ok(), false);
```
1.70.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#585)
#### pub fn [is\_ok\_and](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.is_ok_and)(self, f: impl [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(T) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Returns `true` if the result is [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") and the value inside of it matches a predicate.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1-2) Examples
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(x.is_ok_and(|x| x > 1), true);
let x: Result<u32, &str> = Ok(0);
assert_eq!(x.is_ok_and(|x| x > 1), false);
let x: Result<u32, &str> = Err("hey");
assert_eq!(x.is_ok_and(|x| x > 1), false);
```
1.0.0 (const: 1.48.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#607)
#### pub const fn [is\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.is_err)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Returns `true` if the result is [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-2) Examples
```
let x: Result<i32, &str> = Ok(-3);
assert_eq!(x.is_err(), false);
let x: Result<i32, &str> = Err("Some error message");
assert_eq!(x.is_err(), true);
```
1.70.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#630)
#### pub fn [is\_err\_and](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.is_err_and)(self, f: impl [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(E) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Returns `true` if the result is [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") and the value inside of it matches a predicate.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-3) Examples
```
use std::io::{Error, ErrorKind};
let x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, "!"));
assert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);
let x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, "!"));
assert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
let x: Result<u32, Error> = Ok(123);
assert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#658)
#### pub fn [ok](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.ok)(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <T>
Converts from `Result<T, E>` to [`Option<T>`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option").
Converts `self` into an [`Option<T>`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option"), consuming `self`,
and discarding the error, if any.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-4) Examples
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(x.ok(), Some(2));
let x: Result<u32, &str> = Err("Nothing here");
assert_eq!(x.ok(), None);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#681)
#### pub fn [err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.err)(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <E>
Converts from `Result<T, E>` to [`Option<E>`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option").
Converts `self` into an [`Option<E>`](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option"), consuming `self`,
and discarding the success value, if any.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-5) Examples
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(x.err(), None);
let x: Result<u32, &str> = Err("Nothing here");
assert_eq!(x.err(), Some("Nothing here"));
```
1.0.0 (const: 1.48.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#709)
#### pub const fn [as\_ref](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.as_ref)(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html), [&E](https://doc.rust-lang.org/nightly/std/primitive.reference.html) >
Converts from `&Result<T, E>` to `Result<&T, &E>`.
Produces a new `Result`, containing a reference
into the original, leaving the original in place.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-6) Examples
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(x.as_ref(), Ok(&2));
let x: Result<u32, &str> = Err("Error");
assert_eq!(x.as_ref(), Err(&"Error"));
```
1.0.0 (const: 1.83.0) · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#739)
#### pub const fn [as\_mut](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.as_mut)(&mut self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html), [&mut E](https://doc.rust-lang.org/nightly/std/primitive.reference.html) >
Converts from `&mut Result<T, E>` to `Result<&mut T, &mut E>`.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-7) Examples
```
fn mutate(r: &mut Result<i32, i32>) {
match r.as_mut() {
Ok(v) => *v = 42,
Err(e) => *e = 0,
}
}
let mut x: Result<i32, i32> = Ok(2);
mutate(&mut x);
assert_eq!(x.unwrap(), 42);
let mut x: Result<i32, i32> = Err(13);
mutate(&mut x);
assert_eq!(x.unwrap_err(), 0);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#771)
#### pub fn [map](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.map) <U, F>(self, op: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(T) -> U,
Maps a `Result<T, E>` to `Result<U, E>` by applying a function to a
contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value, leaving an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value untouched.
This function can be used to compose the results of two functions.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-8) Examples
Print the numbers on each line of a string multiplied by two.
```
let line = "1\n2\n3\n4\n";
for num in line.lines() {
match num.parse::<i32>().map(|i| i * 2) {
Ok(n) => println!("{n}"),
Err(..) => {}
}
}
```
1.41.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#799)
#### pub fn [map\_or](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.map_or) <U, F>(self, default: U, f: F) -> U where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(T) -> U,
Returns the provided default (if [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err")), or
applies a function to the contained value (if [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok")).
Arguments passed to `map_or` are eagerly evaluated; if you are passing
the result of a function call, it is recommended to use [`map_or_else`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.map_or_else "method core::result::Result::map_or_else"),
which is lazily evaluated.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-9) Examples
```
let x: Result<_, &str> = Ok("foo");
assert_eq!(x.map_or(42, |v| v.len()), 3);
let x: Result<&str, _> = Err("bar");
assert_eq!(x.map_or(42, |v| v.len()), 42);
```
1.41.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#826)
#### pub fn [map\_or\_else](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.map_or_else) <U, D, F>(self, default: D, f: F) -> U where D: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(E) -> U, F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(T) -> U,
Maps a `Result<T, E>` to `U` by applying fallback function `default` to
a contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, or function `f` to a contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value.
This function can be used to unpack a successful result
while handling an error.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-10) Examples
```
let k = 21;
let x : Result<_, &str> = Ok("foo");
assert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);
let x : Result<&str, _> = Err("bar");
assert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#853)
#### pub fn [map\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.map_err) <F, O>(self, op: O) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F> where O: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(E) -> F,
Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a
contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, leaving an [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value untouched.
This function can be used to pass through a successful result while handling
an error.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-11) Examples
```
fn stringify(x: u32) -> String { format!("error code: {x}") }
let x: Result<u32, u32> = Ok(2);
assert_eq!(x.map_err(stringify), Ok(2));
let x: Result<u32, u32> = Err(13);
assert_eq!(x.map_err(stringify), Err("error code: 13".to_string()));
```
1.76.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#875)
#### pub fn [inspect](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.inspect) <F>(self, f: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")( [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)),
Calls a function with a reference to the contained value if [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok").
Returns the original result.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-12) Examples
```
let x: u8 = "4"
.parse::<u8>()
.inspect(|x| println!("original: {x}"))
.map(|x| x.pow(3))
.expect("failed to parse number");
```
1.76.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#899)
#### pub fn [inspect\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.inspect_err) <F>(self, f: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")( [&E](https://doc.rust-lang.org/nightly/std/primitive.reference.html)),
Calls a function with a reference to the contained value if [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err").
Returns the original result.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-13) Examples
```
use std::{fs, io};
fn read() -> io::Result<String> {
fs::read_to_string("address.txt")
.inspect_err(|e| eprintln!("failed to read file: {e}"))
}
```
1.47.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#925-927)
#### pub fn [as\_deref](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.as_deref)(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <&<T as [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") >:: [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target "type core::ops::deref::Deref::Target"), [&E](https://doc.rust-lang.org/nightly/std/primitive.reference.html) > where T: [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref"),
Converts from `Result<T, E>` (or `&Result<T, E>`) to `Result<&<T as Deref>::Target, &E>`.
Coerces the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") variant of the original [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") via [`Deref`](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref")
and returns the new [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-14) Examples
```
let x: Result<String, u32> = Ok("hello".to_string());
let y: Result<&str, &u32> = Ok("hello");
assert_eq!(x.as_deref(), y);
let x: Result<String, u32> = Err(42);
let y: Result<&str, &u32> = Err(&42);
assert_eq!(x.as_deref(), y);
```
1.47.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#952-954)
#### pub fn [as\_deref\_mut](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.as_deref_mut)(&mut self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <&mut <T as [Deref](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html "trait core::ops::deref::Deref") >:: [Target](https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html\#associatedtype.Target "type core::ops::deref::Deref::Target"), [&mut E](https://doc.rust-lang.org/nightly/std/primitive.reference.html) > where T: [DerefMut](https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html "trait core::ops::deref::DerefMut"),
Converts from `Result<T, E>` (or `&mut Result<T, E>`) to `Result<&mut <T as DerefMut>::Target, &mut E>`.
Coerces the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") variant of the original [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") via [`DerefMut`](https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html "trait core::ops::deref::DerefMut")
and returns the new [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-15) Examples
```
let mut s = "HELLO".to_string();
let mut x: Result<String, u32> = Ok("hello".to_string());
let y: Result<&mut str, &mut u32> = Ok(&mut s);
assert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
let mut i = 42;
let mut x: Result<String, u32> = Err(42);
let y: Result<&mut str, &mut u32> = Err(&mut i);
assert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#978)
#### pub fn [iter](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.iter)(&self) -> [Iter](https://doc.rust-lang.org/nightly/core/result/struct.Iter.html "struct core::result::Iter") <'\_, T>
Returns an iterator over the possibly contained value.
The iterator yields one value if the result is [`Result::Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), otherwise none.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-16) Examples
```
let x: Result<u32, &str> = Ok(7);
assert_eq!(x.iter().next(), Some(&7));
let x: Result<u32, &str> = Err("nothing!");
assert_eq!(x.iter().next(), None);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1001)
#### pub fn [iter\_mut](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.iter_mut)(&mut self) -> [IterMut](https://doc.rust-lang.org/nightly/core/result/struct.IterMut.html "struct core::result::IterMut") <'\_, T>
Returns a mutable iterator over the possibly contained value.
The iterator yields one value if the result is [`Result::Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), otherwise none.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-17) Examples
```
let mut x: Result<u32, &str> = Ok(7);
match x.iter_mut().next() {
Some(v) => *v = 40,
None => {},
}
assert_eq!(x, Ok(40));
let mut x: Result<u32, &str> = Err("nothing!");
assert_eq!(x.iter_mut().next(), None);
```
1.4.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1055-1057)
#### pub fn [expect](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.expect)(self, msg: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> T where E: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value, consuming the `self` value.
Because this function may panic, its use is generally discouraged.
Instead, prefer to use pattern matching and handle the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err")
case explicitly, or call [`unwrap_or`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or "method core::result::Result::unwrap_or"), [`unwrap_or_else`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or_else "method core::result::Result::unwrap_or_else"), or
[`unwrap_or_default`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or_default "method core::result::Result::unwrap_or_default").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#panics) Panics
Panics if the value is an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), with a panic message including the
passed message, and the content of the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-18) Examples
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html# "This example panics")
```
let x: Result<u32, &str> = Err("emergency failure");
x.expect("Testing expect"); // panics with `Testing expect: emergency failure`
```
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#recommended-message-style) Recommended Message Style
We recommend that `expect` messages are used to describe the reason you
_expect_ the `Result` should be `Ok`.
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html# "This example panics")
```
let path = std::env::var("IMPORTANT_PATH")
.expect("env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`");
```
**Hint**: If you’re having trouble remembering how to phrase expect
error messages remember to focus on the word “should” as in “env
variable should be set by blah” or “the given binary should be available
and executable by the current user”.
For more detail on expect message styles and the reasoning behind our recommendation please
refer to the section on [“Common Message\\
Styles”](https://docs.pola.rs/api/std/error/index.html#common-message-styles) in the
[`std::error`](https://docs.pola.rs/api/std/error/index.html) module docs.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1103-1105)
#### pub fn [unwrap](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap)(self) -> T where E: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value, consuming the `self` value.
Because this function may panic, its use is generally discouraged.
Panics are meant for unrecoverable errors, and
[may abort the entire program](https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html).
Instead, prefer to use [the `?` (try) operator](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator), or pattern matching
to handle the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") case explicitly, or call [`unwrap_or`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or "method core::result::Result::unwrap_or"),
[`unwrap_or_else`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or_else "method core::result::Result::unwrap_or_else"), or [`unwrap_or_default`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or_default "method core::result::Result::unwrap_or_default").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#panics-1) Panics
Panics if the value is an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), with a panic message provided by the
[`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err")’s value.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-19) Examples
Basic usage:
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(x.unwrap(), 2);
```
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html# "This example panics")
```
let x: Result<u32, &str> = Err("emergency failure");
x.unwrap(); // panics with `emergency failure`
```
1.16.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1140-1142)
#### pub fn [unwrap\_or\_default](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_or_default)(self) -> T where T: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value or a default
Consumes the `self` argument then, if [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), returns the contained
value, otherwise if [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), returns the default value for that
type.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-20) Examples
Converts a string to an integer, turning poorly-formed strings
into 0 (the default value for integers). [`parse`](https://doc.rust-lang.org/nightly/std/primitive.str.html#method.parse "method str::parse") converts
a string to any other type that implements [`FromStr`](https://doc.rust-lang.org/nightly/core/str/traits/trait.FromStr.html "trait core::str::traits::FromStr"), returning an
[`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") on error.
```
let good_year_from_input = "1909";
let bad_year_from_input = "190blarg";
let good_year = good_year_from_input.parse().unwrap_or_default();
let bad_year = bad_year_from_input.parse().unwrap_or_default();
assert_eq!(1909, good_year);
assert_eq!(0, bad_year);
```
1.17.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1167-1169)
#### pub fn [expect\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.expect_err)(self, msg: & [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> E where T: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
Returns the contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, consuming the `self` value.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#panics-2) Panics
Panics if the value is an [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), with a panic message including the
passed message, and the content of the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-21) Examples
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html# "This example panics")
```
let x: Result<u32, &str> = Ok(10);
x.expect_err("Testing expect_err"); // panics with `Testing expect_err: 10`
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1198-1200)
#### pub fn [unwrap\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_err)(self) -> E where T: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
Returns the contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, consuming the `self` value.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#panics-3) Panics
Panics if the value is an [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), with a custom panic message provided
by the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok")’s value.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-22) Examples
[ⓘ](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html# "This example panics")
```
let x: Result<u32, &str> = Ok(2);
x.unwrap_err(); // panics with `2`
```
```
let x: Result<u32, &str> = Err("emergency failure");
assert_eq!(x.unwrap_err(), "emergency failure");
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1233-1235)
#### pub fn [into\_ok](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.into_ok)(self) -> T where E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [!](https://doc.rust-lang.org/nightly/std/primitive.never.html) >,
🔬This is a nightly-only experimental API. ( `unwrap_infallible`)
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value, but never panics.
Unlike [`unwrap`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap "method core::result::Result::unwrap"), this method is known to never panic on the
result types it is implemented for. Therefore, it can be used
instead of `unwrap` as a maintainability safeguard that will fail
to compile if the error type of the `Result` is later changed
to an error that can actually occur.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-23) Examples
```
fn only_good_news() -> Result<String, !> {
Ok("this is fine".into())
}
let s: String = only_good_news().into_ok();
println!("{s}");
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1268-1270)
#### pub fn [into\_err](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.into_err)(self) -> E where T: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [!](https://doc.rust-lang.org/nightly/std/primitive.never.html) >,
🔬This is a nightly-only experimental API. ( `unwrap_infallible`)
Returns the contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, but never panics.
Unlike [`unwrap_err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_err "method core::result::Result::unwrap_err"), this method is known to never panic on the
result types it is implemented for. Therefore, it can be used
instead of `unwrap_err` as a maintainability safeguard that will fail
to compile if the ok type of the `Result` is later changed
to a type that can actually occur.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-24) Examples
```
fn only_bad_news() -> Result<!, String> {
Err("Oops, it failed".into())
}
let error: String = only_bad_news().into_err();
println!("{error}");
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1311)
#### pub fn [and](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.and) <U>(self, res: [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>
Returns `res` if the result is [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), otherwise returns the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value of `self`.
Arguments passed to `and` are eagerly evaluated; if you are passing the
result of a function call, it is recommended to use [`and_then`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.and_then "method core::result::Result::and_then"), which is
lazily evaluated.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-25) Examples
```
let x: Result<u32, &str> = Ok(2);
let y: Result<&str, &str> = Err("late error");
assert_eq!(x.and(y), Err("late error"));
let x: Result<u32, &str> = Err("early error");
let y: Result<&str, &str> = Ok("foo");
assert_eq!(x.and(y), Err("early error"));
let x: Result<u32, &str> = Err("not a 2");
let y: Result<&str, &str> = Err("late error");
assert_eq!(x.and(y), Err("not a 2"));
let x: Result<u32, &str> = Ok(2);
let y: Result<&str, &str> = Ok("different result type");
assert_eq!(x.and(y), Ok("different result type"));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1351)
#### pub fn [and\_then](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.and_then) <U, F>(self, op: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(T) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>,
Calls `op` if the result is [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), otherwise returns the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value of `self`.
This function can be used for control flow based on `Result` values.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-26) Examples
```
fn sq_then_to_string(x: u32) -> Result<String, &'static str> {
x.checked_mul(x).map(|sq| sq.to_string()).ok_or("overflowed")
}
assert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));
assert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err("overflowed"));
assert_eq!(Err("not a number").and_then(sq_then_to_string), Err("not a number"));
```
Often used to chain fallible operations that may return [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err").
```
use std::{io::ErrorKind, path::Path};
// Note: on Windows "/" maps to "C:\"
let root_modified_time = Path::new("/").metadata().and_then(|md| md.modified());
assert!(root_modified_time.is_ok());
let should_fail = Path::new("/bad/path").metadata().and_then(|md| md.modified());
assert!(should_fail.is_err());
assert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1387)
#### pub fn [or](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.or) <F>(self, res: [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F>
Returns `res` if the result is [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), otherwise returns the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value of `self`.
Arguments passed to `or` are eagerly evaluated; if you are passing the
result of a function call, it is recommended to use [`or_else`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.or_else "method core::result::Result::or_else"), which is
lazily evaluated.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-27) Examples
```
let x: Result<u32, &str> = Ok(2);
let y: Result<u32, &str> = Err("late error");
assert_eq!(x.or(y), Ok(2));
let x: Result<u32, &str> = Err("early error");
let y: Result<u32, &str> = Ok(2);
assert_eq!(x.or(y), Ok(2));
let x: Result<u32, &str> = Err("not a 2");
let y: Result<u32, &str> = Err("late error");
assert_eq!(x.or(y), Err("late error"));
let x: Result<u32, &str> = Ok(2);
let y: Result<u32, &str> = Ok(100);
assert_eq!(x.or(y), Ok(2));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1412)
#### pub fn [or\_else](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.or_else) <F, O>(self, op: O) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F> where O: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(E) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F>,
Calls `op` if the result is [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), otherwise returns the [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value of `self`.
This function can be used for control flow based on result values.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-28) Examples
```
fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }
fn err(x: u32) -> Result<u32, u32> { Err(x) }
assert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));
assert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));
assert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));
assert_eq!(Err(3).or_else(err).or_else(err), Err(3));
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1439)
#### pub fn [unwrap\_or](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_or)(self, default: T) -> T
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value or a provided default.
Arguments passed to `unwrap_or` are eagerly evaluated; if you are passing
the result of a function call, it is recommended to use [`unwrap_or_else`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.unwrap_or_else "method core::result::Result::unwrap_or_else"),
which is lazily evaluated.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-29) Examples
```
let default = 2;
let x: Result<u32, &str> = Ok(9);
assert_eq!(x.unwrap_or(default), 9);
let x: Result<u32, &str> = Err("error");
assert_eq!(x.unwrap_or(default), default);
```
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1460)
#### pub fn [unwrap\_or\_else](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_or_else) <F>(self, op: F) -> T where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(E) -> T,
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value or computes it from a closure.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-30) Examples
```
fn count(x: &str) -> usize { x.len() }
assert_eq!(Ok(2).unwrap_or_else(count), 2);
assert_eq!(Err("foo").unwrap_or_else(count), 3);
```
1.58.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1490)
#### pub unsafe fn [unwrap\_unchecked](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_unchecked)(self) -> T
Returns the contained [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") value, consuming the `self` value,
without checking that the value is not an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#safety) Safety
Calling this method on an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") is _[undefined behavior](https://doc.rust-lang.org/reference/behavior-considered-undefined.html)_.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-31) Examples
```
let x: Result<u32, &str> = Ok(2);
assert_eq!(unsafe { x.unwrap_unchecked() }, 2);
```
```
let x: Result<u32, &str> = Err("emergency failure");
unsafe { x.unwrap_unchecked(); } // Undefined behavior!
```
1.58.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1521)
#### pub unsafe fn [unwrap\_err\_unchecked](https://doc.rust-lang.org/nightly/core/result/enum.Result.html\#tymethod.unwrap_err_unchecked)(self) -> E
Returns the contained [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") value, consuming the `self` value,
without checking that the value is not an [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok").
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#safety-1) Safety
Calling this method on an [`Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok") is _[undefined behavior](https://doc.rust-lang.org/reference/behavior-considered-undefined.html)_.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-32) Examples
```
let x: Result<u32, &str> = Ok(2);
unsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
```
```
let x: Result<u32, &str> = Err("emergency failure");
assert_eq!(unsafe { x.unwrap_err_unchecked() }, "emergency failure");
```
## Trait Implementations
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1724-1727) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Clone-for-Result%3CT,+E%3E)
### impl<T, E> [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), E: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1730) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1738) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: & [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Debug-for-Result%3CT,+E%3E)
### impl<T, E> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"), E: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://docs.rs/serde/1.0.217/src/serde/de/impls.rs.html#2992-2995) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Deserialize%3C'de%3E-for-Result%3CT,+E%3E)
### impl<'de, T, E> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>, E: [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[Source](https://docs.rs/serde/1.0.217/src/serde/de/impls.rs.html#2997-2999) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <D>( deserializer: D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>, <D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'de>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1940) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-FromIterator%3CResult%3CA,+E%3E%3E-for-Result%3CV,+E%3E)
### impl<A, E, V> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <A, E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator") <A>,
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1984) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_iter)
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html\#tymethod.from_iter) <I>(iter: I) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where I: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") <Item = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <A, E>>,
Takes each element in the `Iterator`: if it is an `Err`, no further
elements are taken, and the `Err` is returned. Should no `Err` occur, a
container with the values of each `Result` is returned.
Here is an example which increments every integer in a vector,
checking for overflow:
```
let v = vec![1, 2];
let res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|
x.checked_add(1).ok_or("Overflow!")
).collect();
assert_eq!(res, Ok(vec![2, 3]));
```
Here is another example that tries to subtract one from another list
of integers, this time checking for underflow:
```
let v = vec![1, 2, 0];
let res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|
x.checked_sub(1).ok_or("Underflow!")
).collect();
assert_eq!(res, Err("Underflow!"));
```
Here is a variation on the previous example, showing that no
further elements are taken from `iter` after the first `Err`.
```
let v = vec![3, 2, 1, 10];
let mut shared = 0;
let res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {
shared += x;
x.checked_sub(2).ok_or("Underflow!")
}).collect();
assert_eq!(res, Err("Underflow!"));
assert_eq!(shared, 6);
```
Since the third element caused an underflow, no further elements were taken,
so the final value of `shared` is 6 (= `3 + 2 + 1`), not 16.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/from_iterator_par.rs.html#284-288) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-FromParIterWithDtype%3CResult%3CT,+E%3E%3E-for-Result%3CC,+E%3E)
### impl<C, T, E> [FromParIterWithDtype](https://docs.pola.rs/api/rust/dev/polars/chunked_array/from_iterator_par/trait.FromParIterWithDtype.html "trait polars::chunked_array::from_iterator_par::FromParIterWithDtype") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <C, E> where C: [FromParIterWithDtype](https://docs.pola.rs/api/rust/dev/polars/chunked_array/from_iterator_par/trait.FromParIterWithDtype.html "trait polars::chunked_array::from_iterator_par::FromParIterWithDtype") <T>, T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"), E: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/from_iterator_par.rs.html#290-292) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_par_iter_with_dtype)
#### fn [from\_par\_iter\_with\_dtype](https://docs.pola.rs/api/rust/dev/polars/chunked_array/from_iterator_par/trait.FromParIterWithDtype.html\#tymethod.from_par_iter_with_dtype) <I>( par\_iter: I, name: [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"), dtype: [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType"), ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <C, E> where I: IntoParallelIterator<Item = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>>,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-FromParallelIterator%3CResult%3CT,+E%3E%3E-for-Result%3CC,+E%3E)
### impl<C, T, E> FromParallelIterator< [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <C, E> where C: FromParallelIterator<T>, T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"), E: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
Collect an arbitrary `Result`-wrapped collection.
If any item is `Err`, then all previous `Ok` items collected are
discarded, and it returns that error. If there are multiple errors, the
one returned is not deterministic.
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_par_iter)
#### fn from\_par\_iter<I>(par\_iter: I) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <C, E> where I: IntoParallelIterator<Item = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>>,
Creates an instance of the collection from the parallel iterator `par_iter`. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2009) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-FromResidual%3CResult%3CInfallible,+E%3E%3E-for-Result%3CT,+F%3E)
### impl<T, E, F> [FromResidual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html "trait core::ops::try_trait::FromResidual") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible"), E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F> where F: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <E>,
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2012) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_residual)
#### fn [from\_residual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html\#tymethod.from_residual)(residual: [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible"), E>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F>
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
Constructs the type from a compatible `Residual` type. [Read more](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html#tymethod.from_residual)
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2020) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-FromResidual%3CYeet%3CE%3E%3E-for-Result%3CT,+F%3E)
### impl<T, E, F> [FromResidual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html "trait core::ops::try_trait::FromResidual") < [Yeet](https://doc.rust-lang.org/nightly/core/ops/try_trait/struct.Yeet.html "struct core::ops::try_trait::Yeet") <E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F> where F: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <E>,
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2022) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_residual-1)
#### fn [from\_residual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html\#tymethod.from_residual)(\_: [Yeet](https://doc.rust-lang.org/nightly/core/ops/try_trait/struct.Yeet.html "struct core::ops::try_trait::Yeet") <E>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, F>
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
Constructs the type from a compatible `Residual` type. [Read more](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html#tymethod.from_residual)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_io/pl_async.rs.html#67) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-GetSize-for-Result%3CT,+E%3E)
### impl<T, E> [GetSize](https://docs.pola.rs/api/rust/dev/polars_io/pl_async/trait.GetSize.html "trait polars_io::pl_async::GetSize") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [GetSize](https://docs.pola.rs/api/rust/dev/polars_io/pl_async/trait.GetSize.html "trait polars_io::pl_async::GetSize"), E: [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_io/pl_async.rs.html#68) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.size)
#### fn [size](https://docs.pola.rs/api/rust/dev/polars_io/pl_async/trait.GetSize.html\#tymethod.size)(&self) -> [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Hash-for-Result%3CT,+E%3E)
### impl<T, E> [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash"), E: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1748) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-IntoIterator-for-Result%3CT,+E%3E)
### impl<T, E> [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1768) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.into_iter)
#### fn [into\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#tymethod.into_iter)(self) -> [IntoIter](https://doc.rust-lang.org/nightly/core/result/struct.IntoIter.html "struct core::result::IntoIter") <T>
Returns a consuming iterator over the possibly contained value.
The iterator yields one value if the result is [`Result::Ok`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Ok "variant core::result::Result::Ok"), otherwise none.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples) Examples
```
let x: Result<u32, &str> = Ok(5);
let v: Vec<u32> = x.into_iter().collect();
assert_eq!(v, [5]);
let x: Result<u32, &str> = Err("nothing!");
let v: Vec<u32> = x.into_iter().collect();
assert_eq!(v, []);
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1749) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Item)
#### type [Item](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#associatedtype.Item) = T
The type of the elements being iterated over.
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1750) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.IntoIter)
#### type [IntoIter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html\#associatedtype.IntoIter) = [IntoIter](https://doc.rust-lang.org/nightly/core/result/struct.IntoIter.html "struct core::result::IntoIter") <T>
Which kind of iterator are we turning this into?
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-IntoParallelIterator-for-Result%3CT,+E%3E)
### impl<T, E> IntoParallelIterator for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Item-1)
#### type Item = T
The type of item that the parallel iterator will produce.
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Iter)
#### type Iter = IntoIter<T>
The parallel iterator type that will be created.
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.into_par_iter)
#### fn into\_par\_iter(self) -> < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as IntoParallelIterator>::Iter
Converts `self` into a parallel iterator. Read more
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Ord-for-Result%3CT,+E%3E)
### impl<T, E> [Ord](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html "trait core::cmp::Ord") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Ord](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html "trait core::cmp::Ord"), E: [Ord](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html "trait core::cmp::Ord"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.cmp)
#### fn [cmp](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#tymethod.cmp)(&self, other: & [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>) -> [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering")
This method returns an [`Ordering`](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering") between `self` and `other`. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp)
1.21.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#980-982) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.max)
#### fn [max](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.max)(self, other: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Compares and returns the maximum of two values. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max)
1.21.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1001-1003) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.min)
#### fn [min](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.min)(self, other: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Compares and returns the minimum of two values. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min)
1.50.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1027-1029) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.clamp)
#### fn [clamp](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html\#method.clamp)(self, min: Self, max: Self) -> Self where Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Restrict a value to a certain interval. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-PartialEq-for-Result%3CT,+E%3E)
### impl<T, E> [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq"), E: [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-PartialOrd-for-Result%3CT,+E%3E)
### impl<T, E> [PartialOrd](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html "trait core::cmp::PartialOrd") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [PartialOrd](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html "trait core::cmp::PartialOrd"), E: [PartialOrd](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html "trait core::cmp::PartialOrd"),
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.partial_cmp)
#### fn [partial\_cmp](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#tymethod.partial_cmp)(&self, other: & [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering") >
This method returns an ordering between `self` and `other` values if one exists. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1335) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.lt)
#### fn [lt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.lt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than (for `self` and `other`) and is used by the `<` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1353) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.le)
#### fn [le](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.le)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than or equal to (for `self` and `other`) and is used by the
`<=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1371) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.gt)
#### fn [gt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.gt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than (for `self` and `other`) and is used by the `>`
operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1389) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.ge)
#### fn [ge](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.ge)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than or equal to (for `self` and `other`) and is used by
the `>=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge)
1.16.0 · [Source](https://doc.rust-lang.org/nightly/src/core/iter/traits/accum.rs.html#184-186) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Product%3CResult%3CU,+E%3E%3E-for-Result%3CT,+E%3E)
### impl<T, U, E> [Product](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html "trait core::iter::traits::accum::Product") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Product](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html "trait core::iter::traits::accum::Product") <U>,
[Source](https://doc.rust-lang.org/nightly/src/core/iter/traits/accum.rs.html#205-207) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.product)
#### fn [product](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html\#tymethod.product) <I>(iter: I) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where I: [Iterator](https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html "trait core::iter::traits::iterator::Iterator") <Item = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>>,
Takes each element in the [`Iterator`](https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html "trait core::iter::traits::iterator::Iterator"): if it is an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), no further
elements are taken, and the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") is returned. Should no [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err")
occur, the product of all elements is returned.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1) Examples
This multiplies each number in a vector of strings,
if a string could not be parsed the operation returns `Err`:
```
let nums = vec!["5", "10", "1", "2"];
let total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();
assert_eq!(total, Ok(100));
let nums = vec!["5", "10", "one", "2"];
let total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();
assert!(total.is_err());
```
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2028) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Residual%3CT%3E-for-Result%3CInfallible,+E%3E)
### impl<T, E> [Residual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Residual.html "trait core::ops::try_trait::Residual") <T> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible"), E>
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2029) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.TryType)
#### type [TryType](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Residual.html\#associatedtype.TryType) = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
🔬This is a nightly-only experimental API. ( `try_trait_v2_residual`)
The “return” type of this meta-function.
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ResultExt%3CT,+E%3E-for-Result%3CT,+E%3E)
### impl<T, E> ResultExt<T, E> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.context)
#### fn context<C, E2>(self, context: C) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E2> where C: IntoError<E2, Source = E>, E2: [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ ErrorCompat,
Extend a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error with additional context-sensitive information. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.with_context)
#### fn with\_context<F, C, E2>(self, context: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E2> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")( [&mut E](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> C, C: IntoError<E2, Source = E>, E2: [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ ErrorCompat,
Extend a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error with lazily-generated context-sensitive information. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.whatever_context)
#### fn whatever\_context<S, E2>(self, context: S) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E2> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") >, E2: FromString, E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <<E2 as FromString>::Source>,
Available on **crate feature `std`** only.
Extend a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error with information from a string. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.with_whatever_context)
#### fn with\_whatever\_context<F, S, E2>(self, context: F) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E2> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")( [&mut E](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> S, S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String") >, E2: FromString, E: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <<E2 as FromString>::Source>,
Available on **crate feature `std`** only.
Extend a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error with information from a
lazily-generated string. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.boxed)
#### fn boxed<'a>(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box") <dyn [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") \+ 'a>> where E: [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") \+ [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") \+ 'a,
Available on **crate feature `std`** only.
Convert a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error into a boxed trait object
compatible with multiple threads. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.boxed_local)
#### fn boxed\_local<'a>(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box") <dyn [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ 'a>> where E: [Error](https://doc.rust-lang.org/nightly/core/error/trait.Error.html "trait core::error::Error") \+ 'a,
Available on **crate feature `std`** only.
Convert a [`Result`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")’s error into a boxed trait object. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/ser/impls.rs.html#716-719) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Serialize-for-Result%3CT,+E%3E)
### impl<T, E> [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize"), E: [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize"),
[Source](https://docs.rs/serde/1.0.217/src/serde/ser/impls.rs.html#721-723) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <S>( &self, serializer: S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
1.16.0 · [Source](https://doc.rust-lang.org/nightly/src/core/iter/traits/accum.rs.html#153-155) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Sum%3CResult%3CU,+E%3E%3E-for-Result%3CT,+E%3E)
### impl<T, U, E> [Sum](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html "trait core::iter::traits::accum::Sum") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Sum](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html "trait core::iter::traits::accum::Sum") <U>,
[Source](https://doc.rust-lang.org/nightly/src/core/iter/traits/accum.rs.html#175-177) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.sum)
#### fn [sum](https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html\#tymethod.sum) <I>(iter: I) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where I: [Iterator](https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html "trait core::iter::traits::iterator::Iterator") <Item = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, E>>,
Takes each element in the [`Iterator`](https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html "trait core::iter::traits::iterator::Iterator"): if it is an [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err"), no further
elements are taken, and the [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err") is returned. Should no [`Err`](https://doc.rust-lang.org/nightly/core/result/enum.Result.html#variant.Err "variant core::result::Result::Err")
occur, the sum of all elements is returned.
##### [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html\#examples-1) Examples
This sums up every integer in a vector, rejecting the sum if a negative
element is encountered:
```
let f = |&x: &i32| if x < 0 { Err("Negative element found") } else { Ok(x) };
let v = vec![1, 2];
let res: Result<i32, _> = v.iter().map(f).sum();
assert_eq!(res, Ok(3));
let v = vec![1, -2];
let res: Result<i32, _> = v.iter().map(f).sum();
assert_eq!(res, Err("Negative element found"));
```
1.61.0 · [Source](https://doc.rust-lang.org/nightly/src/std/process.rs.html#2451) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Termination-for-Result%3CT,+E%3E)
### impl<T, E> [Termination](https://doc.rust-lang.org/nightly/std/process/trait.Termination.html "trait std::process::Termination") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Termination](https://doc.rust-lang.org/nightly/std/process/trait.Termination.html "trait std::process::Termination"), E: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug"),
[Source](https://doc.rust-lang.org/nightly/src/std/process.rs.html#2452) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.report)
#### fn [report](https://doc.rust-lang.org/nightly/std/process/trait.Termination.html\#tymethod.report)(self) -> [ExitCode](https://doc.rust-lang.org/nightly/std/process/struct.ExitCode.html "struct std::process::ExitCode")
Is called to get the representation of the value as status code.
This status code is returned to the operating system.
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1990) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Try-for-Result%3CT,+E%3E)
### impl<T, E> [Try](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html "trait core::ops::try_trait::Try") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1991) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Output)
#### type [Output](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#associatedtype.Output) = T
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
The type of the value produced by `?` when _not_ short-circuiting.
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1992) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Residual)
#### type [Residual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#associatedtype.Residual) = [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible"), E>
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
The type of the value passed to [`FromResidual::from_residual`](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.FromResidual.html#tymethod.from_residual "associated function core::ops::try_trait::FromResidual::from_residual")
as part of `?` when short-circuiting. [Read more](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html#associatedtype.Residual)
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#1995) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.from_output)
#### fn [from\_output](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#tymethod.from_output)(output: < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as [Try](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html "trait core::ops::try_trait::Try") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#associatedtype.Output "type core::ops::try_trait::Try::Output")) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
Constructs the type from its `Output` type. [Read more](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html#tymethod.from_output)
[Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#2000) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.branch)
#### fn [branch](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#tymethod.branch)( self, ) -\> [ControlFlow](https://doc.rust-lang.org/nightly/core/ops/control_flow/enum.ControlFlow.html "enum core::ops::control_flow::ControlFlow") << [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as [Try](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html "trait core::ops::try_trait::Try") >:: [Residual](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#associatedtype.Residual "type core::ops::try_trait::Try::Residual"), < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as [Try](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html "trait core::ops::try_trait::Try") >:: [Output](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html\#associatedtype.Output "type core::ops::try_trait::Try::Output") >
🔬This is a nightly-only experimental API. ( `try_trait_v2`)
Used in `?` to decide whether the operator should produce a value
(because this returned [`ControlFlow::Continue`](https://doc.rust-lang.org/nightly/core/ops/control_flow/enum.ControlFlow.html#variant.Continue "variant core::ops::control_flow::ControlFlow::Continue"))
or propagate a value back to the caller
(because this returned [`ControlFlow::Break`](https://doc.rust-lang.org/nightly/core/ops/control_flow/enum.ControlFlow.html#variant.Break "variant core::ops::control_flow::ControlFlow::Break")). [Read more](https://doc.rust-lang.org/nightly/core/ops/try_trait/trait.Try.html#tymethod.branch)
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-TryWriteable-for-Result%3CT,+E%3E)
### impl<T, E> TryWriteable for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: Writeable, E: Writeable + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Error)
#### type Error = E
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.try_write_to)
#### fn try\_write\_to<W>( &self, sink: [&mut W](https://doc.rust-lang.org/nightly/std/primitive.reference.html), ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as TryWriteable>::Error>, [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") > where W: [Write](https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html "trait core::fmt::Write") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Writes the content of this writeable to a sink. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.try_write_to_parts)
#### fn try\_write\_to\_parts<S>( &self, sink: [&mut S](https://doc.rust-lang.org/nightly/std/primitive.reference.html), ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), < [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as TryWriteable>::Error>, [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") > where S: PartsWrite + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Writes the content of this writeable to a sink with parts (annotations). Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.writeable_length_hint)
#### fn writeable\_length\_hint(&self) -> LengthHint
Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.try_write_to_string)
#### fn try\_write\_to\_string( &self, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow") <'\_, [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >, (< [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> as TryWriteable>::Error, [Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow") <'\_, [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >)>
Writes the content of this writeable to a string. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.writeable_cmp_bytes)
#### fn writeable\_cmp\_bytes(&self, other: &\[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\]) -\> [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering")
Compares the content of this writeable to a byte slice. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-TypedValue-for-Result%3CV,+E%3E)
### impl<V, E> TypedValue for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: TypedValue,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.value_type)
#### fn value\_type(&self) -> ValueType
Gets the type of the current value
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueAsArray-for-Result%3CV,+E%3E)
### impl<V, E> ValueAsArray for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueAsArray,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Array)
#### type Array = <V as ValueAsArray>::Array
The array structure
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_array)
#### fn as\_array(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&< [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> as ValueAsArray>::Array>
Tries to represent the value as an array and returns a reference to it
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueAsObject-for-Result%3CV,+E%3E)
### impl<V, E> ValueAsObject for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueAsObject,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Object)
#### type Object = <V as ValueAsObject>::Object
The object structure
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_object)
#### fn as\_object(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&< [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> as ValueAsObject>::Object>
Tries to represent the value as an object and returns a reference to it
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueAsScalar-for-Result%3CV,+E%3E)
### impl<V, E> ValueAsScalar for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueAsScalar,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_null)
#### fn as\_null(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html) >
Tries to represent the value as a ‘null’;
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_bool)
#### fn as\_bool(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) >
Tries to represent the value as a bool
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_i64)
#### fn as\_i64(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html) >
Tries to represent the value as an i64
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_u64)
#### fn as\_u64(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) >
Tries to represent the value as an u64
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_f64)
#### fn as\_f64(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) >
Tries to represent the value as a f64
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_str)
#### fn as\_str(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >
Tries to represent the value as a &str
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_i128)
#### fn as\_i128(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i128](https://doc.rust-lang.org/nightly/std/primitive.i128.html) >
Tries to represent the value as an i128
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_i32)
#### fn as\_i32(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html) >
Tries to represent the value as an i32
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_i16)
#### fn as\_i16(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i16](https://doc.rust-lang.org/nightly/std/primitive.i16.html) >
Tries to represent the value as an i16
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_i8)
#### fn as\_i8(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i8](https://doc.rust-lang.org/nightly/std/primitive.i8.html) >
Tries to represent the value as an i8
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_u128)
#### fn as\_u128(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u128](https://doc.rust-lang.org/nightly/std/primitive.u128.html) >
Tries to represent the value as an u128
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_usize)
#### fn as\_usize(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >
Tries to represent the value as an usize
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_u32)
#### fn as\_u32(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html) >
Tries to represent the value as an u32
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_u16)
#### fn as\_u16(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html) >
Tries to represent the value as an u16
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_u8)
#### fn as\_u8(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html) >
Tries to represent the value as an u8
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_f32)
#### fn as\_f32(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html) >
Tries to represent the value as a f32
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.cast_f64)
#### fn cast\_f64(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html) >
Casts the current value to a f64 if possible, this will turn integer
values into floats.
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.as_char)
#### fn as\_char(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [char](https://doc.rust-lang.org/nightly/std/primitive.char.html) >
Tries to represent the value as a Char
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueIntoArray-for-Result%3CV,+E%3E)
### impl<V, E> ValueIntoArray for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueIntoArray,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Array-1)
#### type Array = <V as ValueIntoArray>::Array
The type for Arrays
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.into_array)
#### fn into\_array(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") << [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> as ValueIntoArray>::Array>
Tries to turn the value into it’s array representation
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueIntoObject-for-Result%3CV,+E%3E)
### impl<V, E> ValueIntoObject for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueIntoObject,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.Object-1)
#### type Object = <V as ValueIntoObject>::Object
The type for Objects
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.into_object)
#### fn into\_object(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") << [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> as ValueIntoObject>::Object>
Tries to turn the value into it’s object representation
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-ValueIntoString-for-Result%3CV,+E%3E)
### impl<V, E> ValueIntoString for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> where V: ValueIntoString,
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#associatedtype.String)
#### type String = <V as ValueIntoString>::String
The type for Strings
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#method.into_string)
#### fn into\_string(self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") << [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <V, E> as ValueIntoString>::String>
Tries to turn the value into it’s string representation
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Copy-for-Result%3CT,+E%3E)
### impl<T, E> [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy"), E: [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy"),
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-Eq-for-Result%3CT,+E%3E)
### impl<T, E> [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq"), E: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq"),
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-LifetimeFree-for-Result%3CT,+E%3E)
### impl<T, E> LifetimeFree for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: LifetimeFree, E: LifetimeFree,
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/result.rs.html#524) [§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-StructuralPartialEq-for-Result%3CT,+E%3E)
### impl<T, E> [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E>
[§](https://docs.pola.rs/api/rust/dev/polars/error/type.PolarsResult.html#impl-VectorRead%3C'buf%3E-for-Result%3CT,+E%3E)
### impl<'buf, T, E> VectorRead<'buf> for [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, E> where T: VectorReadInner<'buf>, E: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <<T as VectorReadInner<'buf>>::Error>,[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [datatypes](https://docs.pola.rs/api/rust/dev/polars/datatypes/index.html)
# Enum AnyValueCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#26)
```
pub enum AnyValue<'a> {
Show 33 variants Null,
Boolean(bool),
String(&'a str),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
Float32(f32),
Float64(f64),
Date(i32),
Datetime(i64, TimeUnit, Option<&'a PlSmallStr>),
DatetimeOwned(i64, TimeUnit, Option<Arc<PlSmallStr>>),
Duration(i64, TimeUnit),
Time(i64),
Categorical(u32, &'a RevMapping, SyncPtr<BinaryViewArrayGeneric<str>>),
CategoricalOwned(u32, Arc<RevMapping>, SyncPtr<BinaryViewArrayGeneric<str>>),
Enum(u32, &'a RevMapping, SyncPtr<BinaryViewArrayGeneric<str>>),
EnumOwned(u32, Arc<RevMapping>, SyncPtr<BinaryViewArrayGeneric<str>>),
List(Series),
Array(Series, usize),
Object(&'a (dyn PolarsObjectSafe + 'static)),
ObjectOwned(OwnedObject),
Struct(usize, &'a StructArray, &'a [Field]),
StructOwned(Box<(Vec<AnyValue<'a>>, Vec<Field>)>),
StringOwned(PlSmallStr),
Binary(&'a [u8]),
BinaryOwned(Vec<u8>),
Decimal(i128, usize),
}
```
## Variants [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#variants)
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Null)
### Null
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Boolean)
### Boolean( [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html))
A binary true or false.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.String)
### String(&'a [str](https://doc.rust-lang.org/nightly/std/primitive.str.html))
A UTF8 encoded string type.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.UInt8)
### UInt8( [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
An unsigned 8-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.UInt16)
### UInt16( [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html))
An unsigned 16-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.UInt32)
### UInt32( [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html))
An unsigned 32-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.UInt64)
### UInt64( [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html))
An unsigned 64-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Int8)
### Int8( [i8](https://doc.rust-lang.org/nightly/std/primitive.i8.html))
An 8-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Int16)
### Int16( [i16](https://doc.rust-lang.org/nightly/std/primitive.i16.html))
A 16-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Int32)
### Int32( [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html))
A 32-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Int64)
### Int64( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html))
A 64-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Int128)
### Int128( [i128](https://doc.rust-lang.org/nightly/std/primitive.i128.html))
A 128-bit integer number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Float32)
### Float32( [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html))
A 32-bit floating point number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Float64)
### Float64( [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html))
A 64-bit floating point number.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Date)
### Date( [i32](https://doc.rust-lang.org/nightly/std/primitive.i32.html))
Available on **crate feature `dtype-date`** only.
A 32-bit date representing the elapsed time since UNIX epoch (1970-01-01)
in days (32 bits).
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Datetime)
### Datetime( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html), [TimeUnit](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.TimeUnit.html "enum polars::prelude::TimeUnit"), [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <&'a [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >)
Available on **crate feature `dtype-datetime`** only.
A 64-bit date representing the elapsed time since UNIX epoch (1970-01-01)
in nanoseconds (64 bits).
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.DatetimeOwned)
### DatetimeOwned( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html), [TimeUnit](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.TimeUnit.html "enum polars::prelude::TimeUnit"), [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") < [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr") >>)
Available on **crate feature `dtype-datetime`** only.
A 64-bit date representing the elapsed time since UNIX epoch (1970-01-01)
in nanoseconds (64 bits).
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Duration)
### Duration( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html), [TimeUnit](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.TimeUnit.html "enum polars::prelude::TimeUnit"))
Available on **crate feature `dtype-duration`** only.
A 64-bit integer representing difference between date-times in [`TimeUnit`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.TimeUnit.html "enum polars::prelude::TimeUnit")
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Time)
### Time( [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html))
Available on **crate feature `dtype-time`** only.
A 64-bit time representing the elapsed time since midnight in nanoseconds
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Categorical)
### Categorical( [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html), &'a [RevMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.RevMapping.html "enum polars::prelude::RevMapping"), [SyncPtr](https://docs.pola.rs/api/rust/dev/polars_utils/sync/struct.SyncPtr.html "struct polars_utils::sync::SyncPtr") <BinaryViewArrayGeneric< [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>)
Available on **crate feature `dtype-categorical`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.CategoricalOwned)
### CategoricalOwned( [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html), [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") < [RevMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.RevMapping.html "enum polars::prelude::RevMapping") >, [SyncPtr](https://docs.pola.rs/api/rust/dev/polars_utils/sync/struct.SyncPtr.html "struct polars_utils::sync::SyncPtr") <BinaryViewArrayGeneric< [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>)
Available on **crate feature `dtype-categorical`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Enum)
### Enum( [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html), &'a [RevMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.RevMapping.html "enum polars::prelude::RevMapping"), [SyncPtr](https://docs.pola.rs/api/rust/dev/polars_utils/sync/struct.SyncPtr.html "struct polars_utils::sync::SyncPtr") <BinaryViewArrayGeneric< [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>)
Available on **crate feature `dtype-categorical`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.EnumOwned)
### EnumOwned( [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html), [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") < [RevMapping](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.RevMapping.html "enum polars::prelude::RevMapping") >, [SyncPtr](https://docs.pola.rs/api/rust/dev/polars_utils/sync/struct.SyncPtr.html "struct polars_utils::sync::SyncPtr") <BinaryViewArrayGeneric< [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >>)
Available on **crate feature `dtype-categorical`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.List)
### List( [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series"))
Nested type, contains arrays that are filled with one of the datatypes.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Array)
### Array( [Series](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Series.html "struct polars::prelude::Series"), [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Available on **crate feature `dtype-array`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Object)
### Object(&'a (dyn [PolarsObjectSafe](https://docs.pola.rs/api/rust/dev/polars/chunked_array/object/trait.PolarsObjectSafe.html "trait polars::chunked_array::object::PolarsObjectSafe") \+ 'static))
Available on **crate feature `object`** only.
Can be used to fmt and implements Any, so can be downcasted to the proper value type.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.ObjectOwned)
### ObjectOwned( [OwnedObject](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.OwnedObject.html "struct polars::prelude::OwnedObject"))
Available on **crate feature `object`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Struct)
### Struct( [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html), &'a [StructArray](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StructArray.html "struct polars::prelude::StructArray"), &'a \[ [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")\])
Available on **crate feature `dtype-struct`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.StructOwned)
### StructOwned( [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box") <( [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>>, [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field") >)>)
Available on **crate feature `dtype-struct`** only.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.StringOwned)
### StringOwned( [PlSmallStr](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.PlSmallStr.html "struct polars::prelude::PlSmallStr"))
An UTF8 encoded string type.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Binary)
### Binary(&'a \[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\])
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.BinaryOwned)
### BinaryOwned( [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html) >)
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#variant.Decimal)
### Decimal( [i128](https://doc.rust-lang.org/nightly/std/primitive.i128.html), [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Available on **crate feature `dtype-decimal`** only.
A 128-bit fixed point decimal number with a scale.
## Implementations [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/ops/any_value.rs.html#144) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'a%3E)
### impl<'a> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/ops/any_value.rs.html#145)
#### pub fn [\_iter\_struct\_av](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method._iter_struct_av)(&self) -> impl [Iterator](https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html "trait core::iter::traits::iterator::Iterator") <Item = [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>>
Available on **crate feature `dtype-struct`** only.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/chunked_array/ops/any_value.rs.html#197)
#### pub fn [\_materialize\_struct\_av](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method._materialize_struct_av)(&'a self, buf: &mut [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>>)
Available on **crate feature `dtype-struct`** only.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#360) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'static%3E)
### impl [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#361)
#### pub fn [zero\_sum](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.zero_sum)(dtype: & [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#383)
#### pub fn [can\_have\_dtype](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.can_have_dtype)(&self, dtype: & [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Can the [`AnyValue`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") exist as having `dtype` as its `DataType`.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#388) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'a%3E-1)
### impl<'a> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#393)
#### pub fn [dtype](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.dtype)(&self) -> [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
Get the matching [`DataType`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType") for this [`AnyValue`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") \`.
Note: For `Categorical` and `Enum` values, the exact mapping information
is not preserved in the result for performance reasons.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#493)
#### pub fn [try\_extract](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.try_extract) <T>(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") > where T: [NumCast](https://docs.rs/num-traits/0.2/num_traits/cast/trait.NumCast.html "trait num_traits::cast::NumCast"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#502)
#### pub fn [is\_boolean](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_boolean)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#506)
#### pub fn [is\_primitive\_numeric](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_primitive_numeric)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#510)
#### pub fn [is\_float](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_float)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#514)
#### pub fn [is\_integer](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_integer)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#518)
#### pub fn [is\_signed\_integer](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_signed_integer)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#529)
#### pub fn [is\_unsigned\_integer](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_unsigned_integer)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#536)
#### pub fn [is\_nan](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_nan)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#544)
#### pub fn [is\_null](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_null)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#548)
#### pub fn [is\_nested\_null](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.is_nested_null)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#562)
#### pub fn [strict\_cast](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.strict_cast)(&self, dtype: &'a [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>>
Cast `AnyValue` to the provided data type and return a new `AnyValue` with type `dtype`,
if possible.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#741)
#### pub fn [try\_strict\_cast](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.try_strict_cast)( &self, dtype: &'a [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType"), ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>, [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") >
Cast `AnyValue` to the provided data type and return a new `AnyValue` with type `dtype`,
if possible.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#747)
#### pub fn [cast](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.cast)(&self, dtype: &'a [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")) -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#754)
#### pub fn [idx](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.idx)(&self) -> [u32](https://doc.rust-lang.org/nightly/std/primitive.u32.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#764)
#### pub fn [str\_value](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.str_value)(&self) -> [Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow") <'a, [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#802) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'_%3E)
### impl [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#803)
#### pub fn [hash\_impl](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.hash_impl) <H>(&self, state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html), cheap: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#906) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'a%3E-2)
### impl<'a> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#967)
#### pub fn [add](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.add)(&self, rhs: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#999)
#### pub fn [as\_borrowed](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.as_borrowed)(&self) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1020)
#### pub fn [into\_static](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.into_static)(self) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
Try to coerce to an AnyValue with static lifetime.
This can be done if it does not borrow any values.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1086)
#### pub fn [get\_str](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.get_str)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) >
Get a reference to the `&str` contained within [`AnyValue`](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue").
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1126) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-AnyValue%3C'_%3E-1)
### impl [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1128)
#### pub fn [eq\_missing](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#method.eq_missing)(&self, other: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>, null\_equal: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#trait-implementations)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Clone-for-AnyValue%3C'a%3E)
### impl<'a> [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Debug-for-AnyValue%3C'a%3E)
### impl<'a> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.fmt)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Default-for-AnyValue%3C'a%3E)
### impl<'a> [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#25) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.default)
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html\#tymethod.default)() -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#150) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Deserialize%3C'a%3E-for-AnyValue%3C'static%3E)
### impl<'a> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'a> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
Available on **crate feature `serde`** only.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#151-153) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.deserialize)
#### fn [deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html\#tymethod.deserialize) <D>( deserializer: D, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>, <D as [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>>:: [Error](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html\#associatedtype.Error "type serde::de::Deserializer::Error") > where D: [Deserializer](https://docs.rs/serde/1.0.217/serde/de/trait.Deserializer.html "trait serde::de::Deserializer") <'a>,
Deserialize this value from the given Serde deserializer. [Read more](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html#tymethod.deserialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/fmt.rs.html#1148) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Display-for-AnyValue%3C'_%3E)
### impl [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/fmt.rs.html#1149) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.fmt-1)
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html\#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter") <'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error") >
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1693) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3C%26%5Bu8%5D%3E-for-AnyValue%3C'a%3E)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <&'a \[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\]\> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1694) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-5)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: &'a \[ [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)\]) -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3C%26AnyValue%3C'a%3E%3E-for-DataType)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>> for [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#797) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-1)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>) -> [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/frame/row/mod.rs.html#234) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3C%26AnyValue%3C'a%3E%3E-for-Field)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <& [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>> for [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/frame/row/mod.rs.html#235) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-8)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>) -> [Field](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Field.html "struct polars::prelude::Field")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1699) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3C%26str%3E-for-AnyValue%3C'a%3E)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <&'a [str](https://doc.rust-lang.org/nightly/std/primitive.str.html) \> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1700) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-6)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: &'a [str](https://doc.rust-lang.org/nightly/std/primitive.str.html)) -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#790) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3CAnyValue%3C'_%3E%3E-for-DataType)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>> for [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#791) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [DataType](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.DataType.html "enum polars::prelude::DataType")
Converts to this type from the input type.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3CAnyValue%3C'_%3E%3E-for-LiteralValue)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>> for [LiteralValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.LiteralValue.html "enum polars::prelude::LiteralValue")
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-9)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [LiteralValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.LiteralValue.html "enum polars::prelude::LiteralValue")
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1113) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3CAnyValue%3C'a%3E%3E-for-Option%3Ci64%3E)
### impl<'a> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>> for [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html) >
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1114) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-3)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(val: [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [i64](https://doc.rust-lang.org/nightly/std/primitive.i64.html) >
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1667) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3CK%3E-for-AnyValue%3C'static%3E)
### impl<K> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <K> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static> where K: [NumericNative](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.NumericNative.html "trait polars::prelude::NumericNative"),
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1668) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-4)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: K) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#893-895) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3COption%3CT%3E%3E-for-AnyValue%3C'a%3E)
### impl<'a, T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <T>> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a> where T: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>>,
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#898) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-2)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(a: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <T>) -> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1705) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3Cbool%3E-for-AnyValue%3C'static%3E)
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") < [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html) \> for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1706) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-7)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(value: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'static>
Converts to this type from the input type.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#885) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Hash-for-AnyValue%3C'_%3E)
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#886) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.hash)
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#tymethod.hash) <H>(&self, state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.hash_slice)
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\#method.hash_slice) <H>(data: &\[Self\], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1328) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-PartialEq-for-AnyValue%3C'_%3E)
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1330) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.eq)
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#tymethod.eq)(&self, other: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.ne)
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html\#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests for `!=`. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1335) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-PartialOrd-for-AnyValue%3C'_%3E)
### impl [PartialOrd](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html "trait core::cmp::PartialOrd") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1337) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.partial_cmp)
#### fn [partial\_cmp](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#tymethod.partial_cmp)(&self, other: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [Ordering](https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html "enum core::cmp::Ordering") >
Only implemented for the same types and physical types!
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1335) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.lt)
#### fn [lt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.lt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than (for `self` and `other`) and is used by the `<` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1353) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.le)
#### fn [le](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.le)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests less than or equal to (for `self` and `other`) and is used by the
`<=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1371) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.gt)
#### fn [gt](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.gt)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than (for `self` and `other`) and is used by the `>`
operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1389) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.ge)
#### fn [ge](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html\#method.ge)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Tests greater than or equal to (for `self` and `other`) and is used by
the `>=` operator. [Read more](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#112) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Serialize-for-AnyValue%3C'_%3E)
### impl [Serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html "trait serde::ser::Serialize") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
Available on **crate feature `serde`** only.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#113-115) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.serialize)
#### fn [serialize](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html\#tymethod.serialize) <S>( &self, serializer: S, ) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <<S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Ok](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Ok "type serde::ser::Serializer::Ok"), <S as [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer") >:: [Error](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html\#associatedtype.Error "type serde::ser::Serializer::Error") > where S: [Serializer](https://docs.rs/serde/1.0.217/serde/ser/trait.Serializer.html "trait serde::ser::Serializer"),
Serialize this value into the given Serde serializer. [Read more](https://docs.rs/serde/1.0.217/serde/ser/trait.Serialize.html#tymethod.serialize)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1477) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-TotalEq-for-AnyValue%3C'_%3E)
### impl [TotalEq](https://docs.pola.rs/api/rust/dev/polars_utils/total_ord/trait.TotalEq.html "trait polars_utils::total_ord::TotalEq") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#1479) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.tot_eq)
#### fn [tot\_eq](https://docs.pola.rs/api/rust/dev/polars_utils/total_ord/trait.TotalEq.html\#tymethod.tot_eq)(&self, other: & [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_utils/total_ord.rs.html#41) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.tot_ne)
#### fn [tot\_ne](https://docs.pola.rs/api/rust/dev/polars_utils/total_ord/trait.TotalEq.html\#method.tot_ne)(&self, other: &Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_core/datatypes/any_value.rs.html#891) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Eq-for-AnyValue%3C'_%3E)
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'\_>
## Auto Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#synthetic-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Freeze-for-AnyValue%3C'a%3E)
### impl<'a> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-RefUnwindSafe-for-AnyValue%3C'a%3E)
### impl<'a> ! [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Send-for-AnyValue%3C'a%3E)
### impl<'a> [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Sync-for-AnyValue%3C'a%3E)
### impl<'a> [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Unpin-for-AnyValue%3C'a%3E)
### impl<'a> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-UnwindSafe-for-AnyValue%3C'a%3E)
### impl<'a> ! [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [AnyValue](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.AnyValue.html "enum polars::prelude::AnyValue") <'a>
## Blanket Implementations [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#blanket-implementations)
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Any-for-T)
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.type_id)
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html\#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Borrow%3CT%3E-for-T)
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.borrow)
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html\#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-BorrowMut%3CT%3E-for-T)
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut") <T> for T where T: ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.borrow_mut)
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html\#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-CloneToUninit-for-T)
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.clone_to_uninit)
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html\#tymethod.clone_to_uninit)(&self, dst: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
🔬This is a nightly-only experimental API. ( `clone_to_uninit`)
Performs copy-assignment from `self` to `dst`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#193-195) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-DynClone-for-T)
### impl<T> [DynClone](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html "trait dyn_clone::DynClone") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://docs.rs/dyn-clone/1.0.17/src/dyn_clone/lib.rs.html#197) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.__clone_box)
#### fn [\_\_clone\_box](https://docs.rs/dyn-clone/1.0.17/dyn_clone/trait.DynClone.html\#tymethod.__clone_box)(&self, \_: Private) -> [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Equivalent%3CK%3E-for-Q)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.equivalent)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Compare self to `key` and return `true` if they are equal.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Equivalent%3CK%3E-for-Q-1)
### impl<Q, K> Equivalent<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow") <Q> + ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.equivalent-1)
#### fn equivalent(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -\> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Checks if this value is equivalent to the given key. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-From%3CT%3E-for-T)
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T> for T
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#770) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.from-10)
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html\#tymethod.from)(t: T) -> T
Returns the argument unchanged.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Instrument-for-T)
### impl<T> Instrument for T
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.instrument)
#### fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided \[ `Span`\], returning an
`Instrumented` wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.in_current_span)
#### fn in\_current\_span(self) -> Instrumented<Self>
Instruments this type with the [current](super::Span::current()) [`Span`](crate::Span), returning an
`Instrumented` wrapper. Read more
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#750-752) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Into%3CU%3E-for-T)
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#760) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.into)
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html\#tymethod.into)(self) -> U
Calls `U::from(self)`.
That is, this conversion is whatever the implementation of
`From<T> for U` chooses to do.
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#64) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-IntoEither-for-T)
### impl<T> [IntoEither](https://docs.rs/either/1/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#29) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.into_either)
#### fn [into\_either](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#)
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left` is `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either)
[Source](https://docs.rs/either/1/src/either/into_either.rs.html#55-57) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.into_either_with)
#### fn [into\_either\_with](https://docs.rs/either/1/either/into_either/trait.IntoEither.html\#method.into_either_with) <F>(self, into\_left: F) -> [Either](https://docs.rs/either/1/either/enum.Either.html "enum either::Either") <Self, Self> [ⓘ](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html\#) where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
Converts `self` into a [`Left`](https://docs.rs/either/1/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
if `into_left(&self)` returns `true`.
Converts `self` into a [`Right`](https://docs.rs/either/1/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1/either/enum.Either.html "enum either::Either")
otherwise. [Read more](https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with)
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-Pointable-for-T)
### impl<T> Pointable for T
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#associatedconstant.ALIGN)
#### const ALIGN: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
The alignment of pointer.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#associatedtype.Init)
#### type Init = T
The type for initializers.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.init)
#### unsafe fn init(init: <T as Pointable>::Init) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
Initializes a with the given initializer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.deref)
#### unsafe fn deref<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.deref_mut)
#### unsafe fn deref\_mut<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -\> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
Mutably dereferences the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.drop)
#### unsafe fn drop(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
Drops the object pointed to by the given pointer. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-ToCompactString-for-T)
### impl<T> ToCompactString for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display"),
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.try_to_compact_string)
#### fn try\_to\_compact\_string(&self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <CompactString, ToCompactStringError>
Fallible version of \[ `ToCompactString::to_compact_string()`\] Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.to_compact_string)
#### fn to\_compact\_string(&self) -> CompactString
Converts the given value to a \[ `CompactString`\]. Read more
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-ToOwned-for-T)
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#associatedtype.Owned)
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#associatedtype.Owned) = T
The resulting type after obtaining ownership.
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.to_owned)
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#tymethod.to_owned)(&self) -> T
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.clone_into)
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html\#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2677) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-ToString-for-T)
### impl<T> [ToString](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html "trait alloc::string::ToString") for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") \+ ? [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2679) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.to_string)
#### fn [to\_string](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html\#tymethod.to_string)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
Converts the given value to a `String`. [Read more](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string)
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#807-809) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-TryFrom%3CU%3E-for-T)
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#associatedtype.Error-1)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#814) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.try_from)
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <U>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-TryInto%3CU%3E-for-T)
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto") <U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>,
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#associatedtype.Error)
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error")
The type returned in the event of a conversion error.
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#799) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.try_into)
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html\#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") <U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom") <T>>:: [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html\#associatedtype.Error "type core::convert::TryFrom::Error") >
Performs the conversion.
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-VZip%3CV%3E-for-T)
### impl<V, T> VZip<V> for T where V: MultiLane<T>,
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.vzip)
#### fn vzip(self) -> V
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-WithSubscriber-for-T)
### impl<T> WithSubscriber for T
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.with_subscriber)
#### fn with\_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") <Dispatch>,
Attaches the provided [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#method.with_current_subscriber)
#### fn with\_current\_subscriber(self) -> WithDispatch<Self>
Attaches the current [default](crate::dispatcher#setting-the-default-subscriber) [`Subscriber`](super::Subscriber) to this type, returning a
\[ `WithDispatch`\] wrapper. Read more
[Source](https://docs.rs/serde/1.0.217/src/serde/de/mod.rs.html#614) [§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-DeserializeOwned-for-T)
### impl<T> [DeserializeOwned](https://docs.rs/serde/1.0.217/serde/de/trait.DeserializeOwned.html "trait serde::de::DeserializeOwned") for T where T: for<'de> [Deserialize](https://docs.rs/serde/1.0.217/serde/de/trait.Deserialize.html "trait serde::de::Deserialize") <'de>,
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-ErasedDestructor-for-T)
### impl<T> ErasedDestructor for T where T: 'static,
[§](https://docs.pola.rs/api/rust/dev/polars/datatypes/enum.AnyValue.html#impl-MaybeSendSync-for-T)
### impl<T> MaybeSendSync for T[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Trait LazyFileListReaderCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#15)
```
pub trait LazyFileListReader: Clone {
Show 14 methods // Required methods
fn finish_no_glob(self) -> Result<LazyFrame, PolarsError>;
fn sources(&self) -> &ScanSources;
fn with_sources(self, source: ScanSources) -> Self;
fn with_n_rows(self, n_rows: impl Into<Option<usize>>) -> Self;
fn with_row_index(self, row_index: impl Into<Option<RowIndex>>) -> Self;
fn rechunk(&self) -> bool;
fn with_rechunk(self, toggle: bool) -> Self;
fn n_rows(&self) -> Option<usize>;
fn row_index(&self) -> Option<&RowIndex>;
// Provided methods
fn finish(self) -> Result<LazyFrame, PolarsError> { ... }
fn concat_impl(&self, lfs: Vec<LazyFrame>) -> Result<LazyFrame, PolarsError> { ... }
fn glob(&self) -> bool { ... }
fn with_paths(self, paths: Arc<[PathBuf]>) -> Self { ... }
fn cloud_options(&self) -> Option<&CloudOptions> { ... }
}
```
Available on **crate feature `lazy`** only.
Expand description
Reads [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame") from a filesystem or a cloud storage.
Supports glob patterns.
Use [LazyFileListReader::finish](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#method.finish "method polars::prelude::LazyFileListReader::finish") to get the final [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame").
## Required Methods [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#required-methods)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#80)
#### fn [finish\_no\_glob](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.finish_no_glob)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") >
Get the final [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame").
This method assumes, that path is _not_ a glob.
It is recommended to always use [LazyFileListReader::finish](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#method.finish "method polars::prelude::LazyFileListReader::finish") method.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#87)
#### fn [sources](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.sources)(&self) -> &ScanSources
Get the sources for this reader.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#91)
#### fn [with\_sources](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.with_sources)(self, source: ScanSources) -> Self
Set sources of the scanned files.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#100)
#### fn [with\_n\_rows](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.with_n_rows)(self, n\_rows: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >>) -\> Self
Configure the row limit.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#103)
#### fn [with\_row\_index](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.with_row_index)(self, row\_index: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into") < [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [RowIndex](https://docs.pola.rs/api/rust/dev/polars_io/options/struct.RowIndex.html "struct polars_io::options::RowIndex") >>) -\> Self
Configure the row index.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#106)
#### fn [rechunk](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.rechunk)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
Rechunk the memory to contiguous chunks when parsing is done.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#110)
#### fn [with\_rechunk](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.with_rechunk)(self, toggle: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -\> Self
Rechunk the memory to contiguous chunks when parsing is done.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#114)
#### fn [n\_rows](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.n_rows)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") < [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html) >
Try to stop parsing when `n` rows are parsed. During multithreaded parsing the upper bound `n` cannot
be guaranteed.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#117)
#### fn [row\_index](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#tymethod.row_index)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [RowIndex](https://docs.pola.rs/api/rust/dev/polars_io/options/struct.RowIndex.html "struct polars_io::options::RowIndex") >
Add a row index column.
## Provided Methods [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#provided-methods)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#17)
#### fn [finish](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#method.finish)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") >
Get the final [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame").
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#65)
#### fn [concat\_impl](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#method.concat_impl)(&self, lfs: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec") < [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame") >) -\> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result") < [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame"), [PolarsError](https://docs.pola.rs/api/rust/dev/polars/prelude/enum.PolarsError.html "enum polars::prelude::PolarsError") >
Recommended concatenation of [LazyFrame](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html "struct polars::prelude::LazyFrame") s from many input files.
This method should not take into consideration [LazyFileListReader::n\_rows](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#tymethod.n_rows "method polars::prelude::LazyFileListReader::n_rows")
nor [LazyFileListReader::row\_index](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#tymethod.row_index "method polars::prelude::LazyFileListReader::row_index").
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#82)
#### fn [glob](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#method.glob)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#95)
#### fn [with\_paths](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#method.with_paths)(self, paths: [Arc](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.Arc.html "struct polars::prelude::Arc") <\[ [PathBuf](https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html "struct std::path::PathBuf")\]>) -\> Self
Set paths of the scanned files.
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/file_list_reader.rs.html#120)
#### fn [cloud\_options](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#method.cloud_options)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option") <& [CloudOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/cloud/struct.CloudOptions.html "struct polars::prelude::cloud::CloudOptions") >
[CloudOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/cloud/struct.CloudOptions.html "struct polars::prelude::cloud::CloudOptions") used to list files.
## Dyn Compatibility [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#dyn-compatibility)
This trait is **not** [dyn compatible](https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety).
_In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe._
## Implementors [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html\#implementors)
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/csv.rs.html#322) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#impl-LazyFileListReader-for-LazyCsvReader)
### impl [LazyFileListReader](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html "trait polars::prelude::LazyFileListReader") for [LazyCsvReader](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyCsvReader.html "struct polars::prelude::LazyCsvReader")
[Source](https://docs.pola.rs/api/rust/dev/src/polars_lazy/scan/ndjson.rs.html#123) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html#impl-LazyFileListReader-for-LazyJsonLineReader)
### impl [LazyFileListReader](https://docs.pola.rs/api/rust/dev/polars/prelude/trait.LazyFileListReader.html "trait polars::prelude::LazyFileListReader") for [LazyJsonLineReader](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyJsonLineReader.html "struct polars::prelude::LazyJsonLineReader")[polars](https://docs.pola.rs/api/rust/dev/polars/index.html):: [prelude](https://docs.pola.rs/api/rust/dev/polars/prelude/index.html)
# Struct StrptimeOptionsCopy item path
[Settings](https://docs.pola.rs/api/rust/dev/settings.html)
[Help](https://docs.pola.rs/api/rust/dev/help.html)
Summary
```
pub struct StrptimeOptions {
pub format: Option<PlSmallStr>,
pub strict: bool,
pub exact: bool,
pub cache: bool,
}
```
Available on **crate feature `lazy`** only.
## Fields [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html\#fields)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#structfield.format) `format: Option<PlSmallStr>`
Formatting string
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#structfield.strict) `strict: bool`
If set then polars will return an error if any date parsing fails
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#structfield.exact) `exact: bool`
If polars may parse matches that not contain the whole string
e.g. “foo-2021-01-01-bar” could match “2021-01-01”
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#structfield.cache) `cache: bool`
use a cache of unique, converted dates to apply the datetime conversion.
## Trait Implementations [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html\#trait-implementations)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#impl-Clone-for-StrptimeOptions)
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [StrptimeOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html "struct polars::prelude::StrptimeOptions")
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#method.clone)
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#tymethod.clone)(&self) -> [StrptimeOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html "struct polars::prelude::StrptimeOptions")
Returns a copy of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174) [§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#method.clone_from)
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\#method.clone_from)(&mut self, source: &Self)
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
[§](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html#impl-Debug-for-StrptimeOptions)
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [StrptimeOptions](https://docs.pola.rs/api/rust/dev/polars/prelude/struct.StrptimeOptions.html "struct polars::prelude::StrptimeOptio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment