Skip to main content

IntoBarTypes

Trait IntoBarTypes 

Source
pub trait IntoBarTypes: Sealed {
    // Required method
    fn into_bar_types(self) -> Result<Vec<BarType>>;
}
Expand description

Converts a single bar type or collection to a non-empty list.

Duplicate types are removed in first-occurrence order.

Required Methods§

Source

fn into_bar_types(self) -> Result<Vec<BarType>>

Returns the normalized bar types.

§Errors

Returns an error if the collection is empty.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoBarTypes for &BarType

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl IntoBarTypes for &Vec<BarType>

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl IntoBarTypes for &[BarType]

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl IntoBarTypes for BarType

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl IntoBarTypes for Vec<BarType>

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl<const N: usize> IntoBarTypes for &[BarType; N]

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Source§

impl<const N: usize> IntoBarTypes for [BarType; N]

Source§

fn into_bar_types(self) -> Result<Vec<BarType>>

Implementors§