Skip to main content

IntoInstrumentIds

Trait IntoInstrumentIds 

Source
pub trait IntoInstrumentIds: Sealed {
    // Required method
    fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>;
}
Expand description

Converts a single instrument ID or collection to a non-empty list.

Duplicate IDs are removed in first-occurrence order.

Required Methods§

Source

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Returns the normalized instrument IDs.

§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 IntoInstrumentIds for &InstrumentId

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl IntoInstrumentIds for &Vec<InstrumentId>

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl IntoInstrumentIds for &[InstrumentId]

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl IntoInstrumentIds for InstrumentId

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl IntoInstrumentIds for Vec<InstrumentId>

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl<const N: usize> IntoInstrumentIds for &[InstrumentId; N]

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Source§

impl<const N: usize> IntoInstrumentIds for [InstrumentId; N]

Source§

fn into_instrument_ids(self) -> Result<Vec<InstrumentId>>

Implementors§