Trait Concat

Source
pub trait Concat: Sized {
    const NO_DUPLICATES: bool = true;

    // Provided method
    fn concat(&mut self, other: Self) { ... }
}
Expand description

Combines an argument with a previously stored instance.

Provided Associated Constants§

Source

const NO_DUPLICATES: bool = true

Determines whether a duplicate is allowed or if an error should be thrown.
This logic is handled in the implementation for ArgResult.
Typically only true for primitive types.

Provided Methods§

Source

fn concat(&mut self, other: Self)

Combines an argument.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Concat for bool

Source§

impl Concat for f32

Source§

impl Concat for f64

Source§

impl Concat for i8

Source§

impl Concat for i16

Source§

impl Concat for i32

Source§

impl Concat for i64

Source§

impl Concat for i128

Source§

impl Concat for u8

Source§

impl Concat for u16

Source§

impl Concat for u32

Source§

impl Concat for u64

Source§

impl Concat for u128

Source§

impl Concat for String

Source§

impl<T: Concat> Concat for Vec<T>

Source§

const NO_DUPLICATES: bool = false

Source§

fn concat(&mut self, other: Self)

Implementors§