Trait Concat

Source
pub trait Concat: ConcatMixed<Self, MixedOutput = Self::Output> {
    type Output: Integer;

    // Provided method
    fn concat(&self, hi: &Self) -> Self::Output { ... }
}
Expand description

Concatenate two numbers into a “wide” double-width value, using the hi value as the most significant portion of the resulting value.

Required Associated Types§

Source

type Output: Integer

Concatenated output: twice the width of Self.

Provided Methods§

Source

fn concat(&self, hi: &Self) -> Self::Output

Concatenate the two halves, with self as least significant and hi as the most significant.

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.

Implementors§

Source§

impl<T> Concat for T
where T: ConcatMixed<T>,