Skip to main content

SeriesGroupBy

Struct SeriesGroupBy 

Source
pub struct SeriesGroupBy<'a> { /* private fields */ }
Expand description

GroupBy for Series, grouping by values of another Series.

Created by Series::groupby(by). Supports standard aggregation methods that return a new Series indexed by group keys.

Implementations§

Source§

impl SeriesGroupBy<'_>

Source

pub fn keys(&self) -> Vec<IndexLabel>

Group labels in first-seen order.

Source

pub fn indices(&self) -> HashMap<IndexLabel, Vec<usize>>

Mapping from group labels to source row positions.

Source

pub fn groups(&self) -> HashMap<IndexLabel, Vec<usize>>

Alias for indices, matching pandas’ groups property shape.

Source

pub fn grouper(&self) -> String

Name of the Series used as the grouper.

Source

pub fn level(&self) -> Option<String>

Grouping level descriptor.

Series::groupby(by) currently groups by a supplied Series rather than by an index level, so this mirrors pandas’ None level state.

Source

pub fn plot(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped plotting request.

Source

pub fn line(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped line plot request.

Source

pub fn line_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series line plot directly to deterministic SVG string.

Source

pub fn line_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series line plot directly to HTML figure snippet.

Source

pub fn line_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series line plot directly to disk.

Source

pub fn bar(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped bar plot request.

Source

pub fn bar_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series bar plot directly to deterministic SVG string.

Source

pub fn bar_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series bar plot directly to HTML figure snippet.

Source

pub fn bar_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series bar plot directly to disk.

Source

pub fn barh(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped horizontal bar plot request.

Source

pub fn barh_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series horizontal bar plot directly to deterministic SVG string.

Source

pub fn barh_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series horizontal bar plot directly to HTML figure snippet.

Source

pub fn barh_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series horizontal bar plot directly to disk.

Source

pub fn area(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped area plot request.

Source

pub fn area_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series area plot directly to deterministic SVG string.

Source

pub fn area_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series area plot directly to HTML figure snippet.

Source

pub fn area_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series area plot directly to disk.

Source

pub fn scatter(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped scatter plot request.

Source

pub fn scatter_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series scatter plot directly to deterministic SVG string.

Source

pub fn scatter_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series scatter plot directly to HTML figure snippet.

Source

pub fn scatter_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series scatter plot directly to disk.

Source

pub fn pie(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped pie plot request.

Source

pub fn pie_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series pie plot directly to deterministic SVG string.

Source

pub fn pie_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series pie plot directly to HTML figure snippet.

Source

pub fn pie_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series pie plot directly to disk.

Source

pub fn kde(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped kernel density estimation plot request.

Source

pub fn kde_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series KDE plot directly to deterministic SVG string.

Source

pub fn kde_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series KDE plot directly to HTML figure snippet.

Source

pub fn kde_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series KDE plot directly to disk.

Source

pub fn density(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped density plot request (alias for SeriesGroupBy::kde).

Source

pub fn density_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series density plot directly to deterministic SVG string.

Source

pub fn density_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series density plot directly to HTML figure snippet.

Source

pub fn density_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series density plot directly to disk.

Source

pub fn hexbin(&self) -> Result<PlotSpec, FrameError>

Return a backend-neutral pandas-style grouped hexbin plot request.

Source

pub fn hexbin_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series hexbin plot directly to deterministic SVG string.

Source

pub fn hexbin_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series hexbin plot directly to HTML figure snippet.

Source

pub fn hexbin_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series hexbin plot directly to disk.

Source

pub fn plot_with_kind(&self, kind: PlotKind) -> Result<PlotSpec, FrameError>

Return a backend-neutral grouped plot request for the specified plot kind.

Source

pub fn hist(&self) -> Result<HistogramSpec, FrameError>

Return a backend-neutral pandas-style grouped histogram request.

Source

pub fn boxplot(&self) -> Result<BoxPlotSpec, FrameError>

Return a backend-neutral pandas-style grouped boxplot request.

Source

pub fn box_plot(&self) -> Result<BoxPlotSpec, FrameError>

Return a backend-neutral pandas-style grouped boxplot request (alias for SeriesGroupBy::boxplot).

Source

pub fn box(&self) -> Result<BoxPlotSpec, FrameError>

Return a backend-neutral pandas-style grouped boxplot request (alias for SeriesGroupBy::boxplot).

Source

pub fn plot_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series plot directly to deterministic SVG string.

Source

pub fn plot_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series plot directly to HTML figure snippet.

Source

pub fn plot_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series plot directly to disk.

Source

pub fn hist_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series histogram directly to deterministic SVG string.

Source

pub fn hist_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series histogram directly to HTML figure snippet.

Source

pub fn hist_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series histogram directly to disk.

Source

pub fn hist_with_bins(&self, bins: usize) -> Result<HistogramSpec, FrameError>

Return a backend-neutral grouped histogram request with a custom number of bins.

Source

pub fn hist_with_bins_to_svg(&self, bins: usize) -> Result<String, FrameError>

Convenience helper: render grouped series histogram with custom bins directly to deterministic SVG string.

Source

pub fn hist_with_bins_to_html(&self, bins: usize) -> Result<String, FrameError>

Convenience helper: render grouped series histogram with custom bins directly to HTML figure snippet.

Source

pub fn hist_with_bins_to_file<P: AsRef<Path>>( &self, bins: usize, path: P, ) -> Result<(), FrameError>

Convenience helper: save rendered grouped series histogram with custom bins directly to disk.

Source

pub fn boxplot_to_svg(&self) -> Result<String, FrameError>

Convenience helper: render grouped series boxplot directly to deterministic SVG string.

Source

pub fn boxplot_to_html(&self) -> Result<String, FrameError>

Convenience helper: render grouped series boxplot directly to HTML figure snippet.

Source

pub fn boxplot_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), FrameError>

Convenience helper: save rendered grouped series boxplot directly to disk.

Source

pub fn ngroups(&self) -> usize

Number of groups.

Source

pub fn ndim(&self) -> usize

Grouped object dimensionality.

Source

pub fn dtype(&self) -> DType

DType of the grouped values.

Source

pub fn sum(&self) -> Result<Series, FrameError>

Sum of each group.

Source

pub fn mean(&self) -> Result<Series, FrameError>

Mean of each group.

Source

pub fn count(&self) -> Result<Series, FrameError>

Count of non-null values in each group.

Source

pub fn min(&self) -> Result<Series, FrameError>

Source

pub fn max(&self) -> Result<Series, FrameError>

Maximum of each group.

Source

pub fn bool_reduce_with_skipna( &self, all: bool, skipna: bool, ) -> Result<Series, FrameError>

pandas’ any(skipna=...) / all(skipna=...): with skipna=false a missing value is read, as numpy’s bool of NaN, truthy - any of a group holding one is True, and all is unchanged, a skipped value never having made it False (br-frankenpandas-n57tz: the keyword was unexpected). pandas’ nullable dtypes answer <NA> instead (Kleene logic); callers refuse those.

Source

pub fn any(&self) -> Result<Series, FrameError>

Whether any non-missing value is truthy in each group.

Source

pub fn all(&self) -> Result<Series, FrameError>

Whether all non-missing values are truthy in each group.

Source

pub fn nunique_with_dropna(&self, dropna: bool) -> Result<Series, FrameError>

pandas’ nunique(dropna=...): with dropna=false a group’s missing values count as one more distinct value (br-frankenpandas-n57tz: the keyword was unexpected).

Source

pub fn nunique(&self) -> Result<Series, FrameError>

Source

pub fn unique(&self) -> Result<Series, FrameError>

Unique values in each group, preserving first-seen group and value order.

Source

pub fn ohlc(&self) -> Result<DataFrame, FrameError>

Open-high-low-close per group.

Source

pub fn quantile(&self, q: f64) -> Result<Series, FrameError>

Quantile of each group using linear interpolation.

Source

pub fn sem(&self) -> Result<Series, FrameError>

Standard error of the mean for each group.

Source

pub fn skew_with_skipna(&self, skipna: bool) -> Result<Series, FrameError>

pandas’ skew(skipna=...): with skipna=false a group holding a missing value is NaN (br-frankenpandas-n57tz: the keyword was unexpected).

Source

pub fn skew(&self) -> Result<Series, FrameError>

Skewness of each group.

Source

pub fn kurtosis(&self) -> Result<Series, FrameError>

Excess kurtosis (Fisher’s definition, bias=False) of each group.

Matches pd.Series.groupby(...).kurtosis(). Mirrors fp_types::nankurt which requires at least 4 non-missing values per group; returns Null(NaN) otherwise and when the sample standard deviation is zero.

Source

pub fn kurt(&self) -> Result<Series, FrameError>

Alias for kurtosis() — pandas exposes both .kurt() and .kurtosis() on Series.groupby aggregations, and parity with that surface requires both spellings.

Source

pub fn var_ddof(&self, ddof: usize) -> Result<Series, FrameError>

Variance of each group with pandas’ ddof; var_ddof(1) is var.

Source

pub fn std_ddof(&self, ddof: usize) -> Result<Series, FrameError>

Standard deviation of each group with pandas’ ddof; std_ddof(1) is std.

Source

pub fn sem_ddof(&self, ddof: usize) -> Result<Series, FrameError>

Standard error of the mean of each group with pandas’ ddof; sem_ddof(1) is sem.

Source

pub fn first_skipna(&self, skipna: bool) -> Result<Series, FrameError>

pandas’ first(skipna=): with skipna = false each group’s value at its first row, missing or not; first_skipna(true) is first.

Source

pub fn last_skipna(&self, skipna: bool) -> Result<Series, FrameError>

pandas’ last(skipna=): with skipna = false each group’s value at its last row, missing or not; last_skipna(true) is last.

Source

pub fn with_min_count( &self, reduced: Series, min_count: usize, mask_text: bool, ) -> Result<Series, FrameError>

pandas’ min_count on a sum/prod/min/max/first/last already reduced into reduced (see DataFrameGroupBy::with_min_count).

Source

pub fn idxmin(&self) -> Result<Series, FrameError>

Source

pub fn idxmax(&self) -> Result<Series, FrameError>

Original index label of the maximum value in each group.

Source

pub fn is_monotonic_increasing(&self) -> Result<Series, FrameError>

Per-group monotonic-increasing predicate.

Source

pub fn is_monotonic_decreasing(&self) -> Result<Series, FrameError>

Per-group monotonic-decreasing predicate.

Source

pub fn rank( &self, method: &str, ascending: bool, na_option: &str, ) -> Result<Series, FrameError>

Rank values within each group.

Matches series.groupby(by).rank(). method: “average” (default), “min”, “max”, “first”, “dense” ascending: rank direction (default true = smallest gets rank 1) na_option: “keep” (NaN stays NaN), “top” (NaN gets lowest ranks), “bottom” (NaN gets highest ranks)

Source

pub fn rank_with_pct( &self, method: &str, ascending: bool, na_option: &str, pct: bool, ) -> Result<Series, FrameError>

Rank values within each group and optionally scale them to percentile ranks.

Source

pub fn std(&self) -> Result<Series, FrameError>

Standard deviation of each group (ddof=1).

Source

pub fn var(&self) -> Result<Series, FrameError>

Variance of each group (ddof=1).

Source

pub fn median(&self) -> Result<Series, FrameError>

Median of each group.

Source

pub fn prod(&self) -> Result<Series, FrameError>

Product of each group.

Source

pub fn cumcount(&self) -> Result<Series, FrameError>

Assign within-group cumulative count (0-based).

Source

pub fn cumcount_with_ascending( &self, ascending: bool, ) -> Result<Series, FrameError>

Assign within-group cumulative count (0-based) with explicit direction.

Source

pub fn ngroup(&self) -> Result<Series, FrameError>

Assign ordinal group number to each source row.

Source

pub fn ngroup_with_ascending( &self, ascending: bool, ) -> Result<Series, FrameError>

Assign ordinal group number with explicit direction.

Source

pub fn cumsum(&self) -> Result<Series, FrameError>

GroupBy cumulative sum.

Source

pub fn cumprod(&self) -> Result<Series, FrameError>

GroupBy cumulative product.

Source

pub fn cummin(&self) -> Result<Series, FrameError>

GroupBy cumulative minimum.

Source

pub fn cummax(&self) -> Result<Series, FrameError>

GroupBy cumulative maximum.

Source

pub fn shift(&self, periods: i64) -> Result<Series, FrameError>

GroupBy shift within each group.

Source

pub fn diff(&self, periods: usize) -> Result<Series, FrameError>

GroupBy difference within each group.

Source

pub fn pct_change(&self, periods: i64) -> Result<Series, FrameError>

GroupBy percentage change within each group.

Source

pub fn pct_change_with_fill( &self, periods: i64, fill_method: Option<&str>, limit: Option<usize>, ) -> Result<Series, FrameError>

pandas’ pct_change(periods, fill_method, limit) of each group: the group filled forward (ffill / pad) or backward (bfill / backfill) up to limit, or not at all (None), then filled / filled.shift(periods) - 1 within it. fill_method=None forward-filled like the default, and a method or limit was refused (br-frankenpandas-n57tz).

Source

pub fn ffill(&self, limit: Option<usize>) -> Result<Series, FrameError>

Source

pub fn bfill(&self, limit: Option<usize>) -> Result<Series, FrameError>

Backward-fill missing values within each group.

Source

pub fn fillna(&self, value: &Scalar) -> Result<Series, FrameError>

Fill missing values in each group with a scalar value.

Source

pub fn rolling(&self, window: usize) -> SeriesGroupByRolling<'_, '_>

Grouped rolling window operations.

Matches the narrow pd.SeriesGroupBy.rolling(window) reduction shape. Results are mapped back onto the original flat Series index.

Source

pub fn expanding( &self, min_periods: Option<usize>, ) -> SeriesGroupByExpanding<'_, '_>

Grouped expanding window operations.

Matches the narrow pd.SeriesGroupBy.expanding(min_periods=...) reduction shape. Results are mapped back onto the original flat Series index.

Source

pub fn ewm( &self, span: Option<f64>, alpha: Option<f64>, ) -> SeriesGroupByEwm<'_, '_>

Grouped exponentially weighted moving window operations.

Matches the narrow pd.SeriesGroupBy.ewm(span=..., alpha=...) reduction shape. Results are mapped back onto the original flat Series index.

Source

pub fn resample(&self, freq: &str) -> SeriesGroupByResample<'_, '_>

Grouped resampling.

Matches the narrow pd.SeriesGroupBy.resample(freq) reduction shape. Until row MultiIndex support is real, group and bucket labels are represented as flat "{group}, {bucket}" labels.

Source

pub fn nlargest(&self, n: usize) -> Result<Series, FrameError>

Return up to n largest non-missing values from each group, indexed by (group key, row label) as pandas’.

Source

pub fn nsmallest(&self, n: usize) -> Result<Series, FrameError>

Return up to n smallest non-missing values from each group, indexed by (group key, row label) as pandas’.

Source

pub fn nlargest_keep(&self, n: usize, keep: &str) -> Result<Series, FrameError>

pandas’ nlargest(n, keep) of each group (Self::nlargest with ‘first’).

Source

pub fn nsmallest_keep(&self, n: usize, keep: &str) -> Result<Series, FrameError>

pandas’ nsmallest(n, keep) of each group (Self::nsmallest with ‘first’).

Source

pub fn value_counts(&self) -> Result<Series, FrameError>

Count non-missing values within each group.

Source

pub fn value_counts_with_options( &self, normalize: bool, sort: bool, ascending: bool, dropna: bool, ) -> Result<Series, FrameError>

pandas’ SeriesGroupBy.value_counts(normalize, sort, ascending, dropna): the count of each (group, value), values in sorted order; sort orders each group by count (descending unless ascending), a tie keeping value order; dropna=false counts the missing values as one NaN value, last; normalize divides by the group’s total of what is counted, as proportion (br-frankenpandas-n57tz: the keywords were unexpected).

Source

pub fn describe(&self) -> Result<DataFrame, FrameError>

Summary statistics per group.

Matches pd.SeriesGroupBy.describe() for numeric grouped values.

Source

pub fn corr(&self, other: &Series) -> Result<Series, FrameError>

Pairwise Pearson correlation with another Series per group.

Source

pub fn cov(&self, other: &Series) -> Result<Series, FrameError>

Pairwise sample covariance with another Series per group.

Source

pub fn transform(&self, func: &str) -> Result<Series, FrameError>

Broadcast a named per-group reduction back to the original Series shape.

Matches series.groupby(by).transform("mean") for supported reduction names. The output keeps the original index and length.

Source

pub fn apply<F>(&self, func: F) -> Result<Series, FrameError>
where F: Fn(&Series) -> Result<Series, FrameError>,

Apply a Series-returning function to each group and concatenate results.

Matches the Rust callback shape for series.groupby(by).apply(func). Returned rows are emitted in the existing SeriesGroupBy first-seen group order, with flat labels retaining both group key and returned index label until Series row MultiIndex metadata exists.

Source

pub fn apply_scalar<F>(&self, name: &str, func: F) -> Result<Series, FrameError>
where F: Fn(&Series) -> Result<Scalar, FrameError>,

Apply a scalar-returning function to each group.

This exposes pandas’ scalar SeriesGroupBy.apply result shape as a typed Rust API: one value per group, indexed by group keys.

Source

pub fn filter<F>(&self, func: F) -> Result<Series, FrameError>
where F: Fn(&Series) -> Result<bool, FrameError>,

Keep or discard whole groups with a caller-supplied predicate.

Matches series.groupby(by).filter(func): the predicate sees one per-group Series and the returned Series preserves the original row order and index labels for groups that pass.

Source

pub fn pipe<T, F>(&self, func: F) -> Result<T, FrameError>
where F: Fn(&Self) -> Result<T, FrameError>,

Pipe this grouped Series through a caller-provided function.

Source

pub fn head(&self, n: i64) -> Result<Series, FrameError>

Select first n rows per group, preserving original row order.

Matches pd.SeriesGroupBy.head(n), including pandas’ negative n: head(-k) keeps all but the last k rows of each group. Verified vs live pandas 2.2.3.

Source

pub fn tail(&self, n: i64) -> Result<Series, FrameError>

Select last n rows per group, preserving original row order.

Matches pd.SeriesGroupBy.tail(n), including pandas’ negative n: tail(-k) drops the first k rows of each group. Verified vs live pandas 2.2.3.

Source

pub fn take(&self, indices: &[i64]) -> Result<Series, FrameError>

Return positional rows from each group.

Matches pd.SeriesGroupBy.take(indices), resolving negative positions relative to each group’s length.

Source

pub fn sample( &self, n: Option<usize>, frac: Option<f64>, replace: bool, seed: Option<u64>, ) -> Result<Series, FrameError>

Randomly sample rows from each group.

Matches pd.SeriesGroupBy.sample(n=..., frac=..., replace=...).

Source

pub fn nth(&self, n: i64) -> Result<Series, FrameError>

Select the nth row from each group. Negative n counts from the end.

Source

pub fn get_group(&self, name: &str) -> Result<Series, FrameError>

Retrieve a single group by its display label.

Source

pub fn first(&self) -> Result<Series, FrameError>

First value of each group.

Source

pub fn last(&self) -> Result<Series, FrameError>

Source

pub fn size(&self) -> Result<Series, FrameError>

Number of elements in each group (including nulls).

Source

pub fn agg(&self, funcs: &[&str]) -> Result<DataFrame, FrameError>

Aggregate with multiple functions, returning a DataFrame.

Matches series.groupby(by).agg(['sum', 'mean']). Returns a DataFrame with group keys as index and one column per function.

Source

pub fn aggregate(&self, funcs: &[&str]) -> Result<DataFrame, FrameError>

pandas spelling alias for Self::agg.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for SeriesGroupBy<'a>

§

impl<'a> !UnwindSafe for SeriesGroupBy<'a>

§

impl<'a> Freeze for SeriesGroupBy<'a>

§

impl<'a> Send for SeriesGroupBy<'a>

§

impl<'a> Sync for SeriesGroupBy<'a>

§

impl<'a> Unpin for SeriesGroupBy<'a>

§

impl<'a> UnsafeUnpin for SeriesGroupBy<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.