pub trait Add<Rhs = Self> {
type Output;
// Required method
const fn add(self, rhs: Rhs) -> Self::Output;
}
Expand description
The addition operator +
.
Note that Rhs
is Self
by default, but this is not mandatory. For
example, std::time::SystemTime
implements Add<Duration>
, which permits
operations of the form SystemTime = SystemTime + Duration
.
§Examples
§Add
able points
use std::ops::Add;
#[derive(Debug, Copy, Clone, PartialEq)]
struct Point {
x: i32,
y: i32,
}
impl Add for Point {
type Output = Self;
fn add(self, other: Self) -> Self {
Self {
x: self.x + other.x,
y: self.y + other.y,
}
}
}
assert_eq!(Point { x: 1, y: 0 } + Point { x: 2, y: 3 },
Point { x: 3, y: 3 });
§Implementing Add
with generics
Here is an example of the same Point
struct implementing the Add
trait
using generics.
use std::ops::Add;
#[derive(Debug, Copy, Clone, PartialEq)]
struct Point<T> {
x: T,
y: T,
}
// Notice that the implementation uses the associated type `Output`.
impl<T: Add<Output = T>> Add for Point<T> {
type Output = Self;
fn add(self, other: Self) -> Self::Output {
Self {
x: self.x + other.x,
y: self.y + other.y,
}
}
}
assert_eq!(Point { x: 1, y: 0 } + Point { x: 2, y: 3 },
Point { x: 3, y: 3 });
Required Associated Types§
Required Methods§
Implementors§
1.74.0 · Source§impl Add for Saturating<i8>
impl Add for Saturating<i8>
type Output = Saturating<i8>
1.74.0 · Source§impl Add for Saturating<i16>
impl Add for Saturating<i16>
type Output = Saturating<i16>
1.74.0 · Source§impl Add for Saturating<i32>
impl Add for Saturating<i32>
type Output = Saturating<i32>
1.74.0 · Source§impl Add for Saturating<i64>
impl Add for Saturating<i64>
type Output = Saturating<i64>
1.74.0 · Source§impl Add for Saturating<i128>
impl Add for Saturating<i128>
type Output = Saturating<i128>
1.74.0 · Source§impl Add for Saturating<isize>
impl Add for Saturating<isize>
type Output = Saturating<isize>
1.74.0 · Source§impl Add for Saturating<u8>
impl Add for Saturating<u8>
type Output = Saturating<u8>
1.74.0 · Source§impl Add for Saturating<u16>
impl Add for Saturating<u16>
type Output = Saturating<u16>
1.74.0 · Source§impl Add for Saturating<u32>
impl Add for Saturating<u32>
type Output = Saturating<u32>
1.74.0 · Source§impl Add for Saturating<u64>
impl Add for Saturating<u64>
type Output = Saturating<u64>
1.74.0 · Source§impl Add for Saturating<u128>
impl Add for Saturating<u128>
type Output = Saturating<u128>
1.74.0 · Source§impl Add for Saturating<usize>
impl Add for Saturating<usize>
type Output = Saturating<usize>
Source§impl Add for EdwardsPoint
impl Add for EdwardsPoint
type Output = EdwardsPoint
Source§impl Add for RistrettoPoint
impl Add for RistrettoPoint
type Output = RistrettoPoint
Source§impl Add for SignedDuration
impl Add for SignedDuration
type Output = SignedDuration
Source§impl Add for LengthHint
impl Add for LengthHint
type Output = LengthHint
1.0.0 · Source§impl Add<&str> for String
Implements the +
operator for concatenating two strings.
impl Add<&str> for String
Implements the +
operator for concatenating two strings.
This consumes the String
on the left-hand side and re-uses its buffer (growing it if
necessary). This is done to avoid allocating a new String
and copying the entire contents on
every operation, which would lead to O(n^2) running time when building an n-byte string by
repeated concatenation.
The string on the right-hand side is only borrowed; its contents are copied into the returned
String
.
§Examples
Concatenating two String
s takes the first by value and borrows the second:
let a = String::from("hello");
let b = String::from(" world");
let c = a + &b;
// `a` is moved and can no longer be used here.
If you want to keep using the first String
, you can clone it and append to the clone instead:
let a = String::from("hello");
let b = String::from(" world");
let c = a.clone() + &b;
// `a` is still valid here.
Concatenating &str
slices can be done by converting the first to a String
:
let a = "hello";
let b = " world";
let c = a.to_string() + b;
Source§impl Add<&u128> for &multiversx_sc_snippets::imports::RustBigUint
impl Add<&u128> for &multiversx_sc_snippets::imports::RustBigUint
Source§impl Add<&usize> for &multiversx_sc_snippets::imports::RustBigUint
impl Add<&usize> for &multiversx_sc_snippets::imports::RustBigUint
Source§impl Add<&usize> for multiversx_sc_snippets::imports::RustBigUint
impl Add<&usize> for multiversx_sc_snippets::imports::RustBigUint
1.74.0 · Source§impl Add<&Saturating<i8>> for &Saturating<i8>
impl Add<&Saturating<i8>> for &Saturating<i8>
1.74.0 · Source§impl Add<&Saturating<i8>> for Saturating<i8>
impl Add<&Saturating<i8>> for Saturating<i8>
1.74.0 · Source§impl Add<&Saturating<i16>> for &Saturating<i16>
impl Add<&Saturating<i16>> for &Saturating<i16>
1.74.0 · Source§impl Add<&Saturating<i16>> for Saturating<i16>
impl Add<&Saturating<i16>> for Saturating<i16>
1.74.0 · Source§impl Add<&Saturating<i32>> for &Saturating<i32>
impl Add<&Saturating<i32>> for &Saturating<i32>
1.74.0 · Source§impl Add<&Saturating<i32>> for Saturating<i32>
impl Add<&Saturating<i32>> for Saturating<i32>
1.74.0 · Source§impl Add<&Saturating<i64>> for &Saturating<i64>
impl Add<&Saturating<i64>> for &Saturating<i64>
1.74.0 · Source§impl Add<&Saturating<i64>> for Saturating<i64>
impl Add<&Saturating<i64>> for Saturating<i64>
1.74.0 · Source§impl Add<&Saturating<i128>> for &Saturating<i128>
impl Add<&Saturating<i128>> for &Saturating<i128>
1.74.0 · Source§impl Add<&Saturating<i128>> for Saturating<i128>
impl Add<&Saturating<i128>> for Saturating<i128>
1.74.0 · Source§impl Add<&Saturating<isize>> for &Saturating<isize>
impl Add<&Saturating<isize>> for &Saturating<isize>
1.74.0 · Source§impl Add<&Saturating<isize>> for Saturating<isize>
impl Add<&Saturating<isize>> for Saturating<isize>
1.74.0 · Source§impl Add<&Saturating<u8>> for &Saturating<u8>
impl Add<&Saturating<u8>> for &Saturating<u8>
1.74.0 · Source§impl Add<&Saturating<u8>> for Saturating<u8>
impl Add<&Saturating<u8>> for Saturating<u8>
1.74.0 · Source§impl Add<&Saturating<u16>> for &Saturating<u16>
impl Add<&Saturating<u16>> for &Saturating<u16>
1.74.0 · Source§impl Add<&Saturating<u16>> for Saturating<u16>
impl Add<&Saturating<u16>> for Saturating<u16>
1.74.0 · Source§impl Add<&Saturating<u32>> for &Saturating<u32>
impl Add<&Saturating<u32>> for &Saturating<u32>
1.74.0 · Source§impl Add<&Saturating<u32>> for Saturating<u32>
impl Add<&Saturating<u32>> for Saturating<u32>
1.74.0 · Source§impl Add<&Saturating<u64>> for &Saturating<u64>
impl Add<&Saturating<u64>> for &Saturating<u64>
1.74.0 · Source§impl Add<&Saturating<u64>> for Saturating<u64>
impl Add<&Saturating<u64>> for Saturating<u64>
1.74.0 · Source§impl Add<&Saturating<u128>> for &Saturating<u128>
impl Add<&Saturating<u128>> for &Saturating<u128>
1.74.0 · Source§impl Add<&Saturating<u128>> for Saturating<u128>
impl Add<&Saturating<u128>> for Saturating<u128>
1.74.0 · Source§impl Add<&Saturating<usize>> for &Saturating<usize>
impl Add<&Saturating<usize>> for &Saturating<usize>
1.74.0 · Source§impl Add<&Saturating<usize>> for Saturating<usize>
impl Add<&Saturating<usize>> for Saturating<usize>
Source§impl Add<&BigInt> for &multiversx_sc_snippets::imports::RustBigInt
impl Add<&BigInt> for &multiversx_sc_snippets::imports::RustBigInt
Source§impl Add<&BigUint> for &multiversx_sc_snippets::imports::RustBigUint
impl Add<&BigUint> for &multiversx_sc_snippets::imports::RustBigUint
Source§impl Add<&BigUint> for multiversx_sc_snippets::imports::RustBigUint
impl Add<&BigUint> for multiversx_sc_snippets::imports::RustBigUint
Source§impl Add<usize> for &multiversx_sc_snippets::imports::RustBigUint
impl Add<usize> for &multiversx_sc_snippets::imports::RustBigUint
Source§impl Add<usize> for LengthHint
impl Add<usize> for LengthHint
type Output = LengthHint
1.8.0 · Source§impl Add<Duration> for SystemTime
impl Add<Duration> for SystemTime
type Output = SystemTime
Source§impl Add<Duration> for Date
Adds an unsigned duration of time to a date.
impl Add<Duration> for Date
Adds an unsigned duration of time to a date.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_add
.
Source§impl Add<Duration> for DateTime
Adds an unsigned duration of time to a datetime.
impl Add<Duration> for DateTime
Adds an unsigned duration of time to a datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_add
.
Source§impl Add<Duration> for Time
Adds an unsigned duration of time. This uses wrapping arithmetic.
impl Add<Duration> for Time
Adds an unsigned duration of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_add
.
Source§impl Add<Duration> for Timestamp
Adds an unsigned duration of time to a timestamp.
impl Add<Duration> for Timestamp
Adds an unsigned duration of time to a timestamp.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Timestamp::checked_add
.
Source§impl Add<Duration> for Offset
Adds an unsigned duration of time to an offset. This panics on overflow.
impl Add<Duration> for Offset
Adds an unsigned duration of time to an offset. This panics on overflow.
For checked arithmetic, see Offset::checked_add
.
Source§impl Add<SignedDuration> for Date
Adds a signed duration of time to a date.
impl Add<SignedDuration> for Date
Adds a signed duration of time to a date.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_add
.
Source§impl Add<SignedDuration> for DateTime
Adds a signed duration of time to a datetime.
impl Add<SignedDuration> for DateTime
Adds a signed duration of time to a datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_add
.
Source§impl Add<SignedDuration> for Time
Adds a signed duration of time. This uses wrapping arithmetic.
impl Add<SignedDuration> for Time
Adds a signed duration of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_add
.
Source§impl Add<SignedDuration> for Timestamp
Adds a signed duration of time to a timestamp.
impl Add<SignedDuration> for Timestamp
Adds a signed duration of time to a timestamp.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Timestamp::checked_add
.
Source§impl Add<SignedDuration> for Offset
Adds a signed duration of time to an offset. This panics on overflow.
impl Add<SignedDuration> for Offset
Adds a signed duration of time to an offset. This panics on overflow.
For checked arithmetic, see Offset::checked_add
.
Source§impl Add<Span> for Date
Adds a span of time to a date.
impl Add<Span> for Date
Adds a span of time to a date.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Date::checked_add
.
Source§impl Add<Span> for DateTime
Adds a span of time to a datetime.
impl Add<Span> for DateTime
Adds a span of time to a datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use DateTime::checked_add
.
Source§impl Add<Span> for Time
Adds a span of time. This uses wrapping arithmetic.
impl Add<Span> for Time
Adds a span of time. This uses wrapping arithmetic.
For checked arithmetic, see Time::checked_add
.
Source§impl Add<Span> for Timestamp
Adds a span of time to a timestamp.
impl Add<Span> for Timestamp
Adds a span of time to a timestamp.
This uses checked arithmetic and panics when it fails. To handle arithmetic
without panics, use Timestamp::checked_add
. Note that the failure
condition includes overflow and using a Span
with non-zero units greater
than hours.
Source§impl Add<Span> for Offset
Adds a span of time to an offset. This panics on overflow.
impl Add<Span> for Offset
Adds a span of time to an offset. This panics on overflow.
For checked arithmetic, see Offset::checked_add
.
Source§impl Add<BigUint> for &multiversx_sc_snippets::imports::RustBigUint
impl Add<BigUint> for &multiversx_sc_snippets::imports::RustBigUint
1.74.0 · Source§impl<'a> Add<Saturating<i8>> for &'a Saturating<i8>
impl<'a> Add<Saturating<i8>> for &'a Saturating<i8>
1.74.0 · Source§impl<'a> Add<Saturating<i16>> for &'a Saturating<i16>
impl<'a> Add<Saturating<i16>> for &'a Saturating<i16>
1.74.0 · Source§impl<'a> Add<Saturating<i32>> for &'a Saturating<i32>
impl<'a> Add<Saturating<i32>> for &'a Saturating<i32>
1.74.0 · Source§impl<'a> Add<Saturating<i64>> for &'a Saturating<i64>
impl<'a> Add<Saturating<i64>> for &'a Saturating<i64>
1.74.0 · Source§impl<'a> Add<Saturating<i128>> for &'a Saturating<i128>
impl<'a> Add<Saturating<i128>> for &'a Saturating<i128>
1.74.0 · Source§impl<'a> Add<Saturating<isize>> for &'a Saturating<isize>
impl<'a> Add<Saturating<isize>> for &'a Saturating<isize>
1.74.0 · Source§impl<'a> Add<Saturating<u8>> for &'a Saturating<u8>
impl<'a> Add<Saturating<u8>> for &'a Saturating<u8>
1.74.0 · Source§impl<'a> Add<Saturating<u16>> for &'a Saturating<u16>
impl<'a> Add<Saturating<u16>> for &'a Saturating<u16>
1.74.0 · Source§impl<'a> Add<Saturating<u32>> for &'a Saturating<u32>
impl<'a> Add<Saturating<u32>> for &'a Saturating<u32>
1.74.0 · Source§impl<'a> Add<Saturating<u64>> for &'a Saturating<u64>
impl<'a> Add<Saturating<u64>> for &'a Saturating<u64>
1.74.0 · Source§impl<'a> Add<Saturating<u128>> for &'a Saturating<u128>
impl<'a> Add<Saturating<u128>> for &'a Saturating<u128>
1.74.0 · Source§impl<'a> Add<Saturating<usize>> for &'a Saturating<usize>
impl<'a> Add<Saturating<usize>> for &'a Saturating<usize>
Source§impl<'a> Add<Duration> for &'a Zoned
Adds an unsigned duration of time to a zoned datetime.
impl<'a> Add<Duration> for &'a Zoned
Adds an unsigned duration of time to a zoned datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_add
.
Source§impl<'a> Add<EdwardsPoint> for &'a EdwardsPoint
impl<'a> Add<EdwardsPoint> for &'a EdwardsPoint
type Output = EdwardsPoint
Source§impl<'a> Add<RistrettoPoint> for &'a RistrettoPoint
impl<'a> Add<RistrettoPoint> for &'a RistrettoPoint
type Output = RistrettoPoint
Source§impl<'a> Add<SignedDuration> for &'a Zoned
Adds a signed duration of time to a zoned datetime.
impl<'a> Add<SignedDuration> for &'a Zoned
Adds a signed duration of time to a zoned datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_add
.
Source§impl<'a> Add<Span> for &'a Zoned
Adds a span of time to a zoned datetime.
impl<'a> Add<Span> for &'a Zoned
Adds a span of time to a zoned datetime.
This uses checked arithmetic and panics on overflow. To handle overflow
without panics, use Zoned::checked_add
.
Source§impl<'a, 'b> Add<&'b EdwardsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b EdwardsPoint> for &'a EdwardsPoint
type Output = EdwardsPoint
Source§impl<'a, 'b> Add<&'b RistrettoPoint> for &'a RistrettoPoint
impl<'a, 'b> Add<&'b RistrettoPoint> for &'a RistrettoPoint
type Output = RistrettoPoint
Source§impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a EdwardsPoint
Source§impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a EdwardsPoint
Source§impl<'a, 'b, M> Add<&'b BigInt<M>> for &'a multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
impl<'a, 'b, M> Add<&'b BigInt<M>> for &'a multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
Source§impl<'a, 'b, M> Add<&'b BigInt<M>> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<'a, 'b, M> Add<&'b BigInt<M>> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<'a, 'b, M> Add<&'b BigUint<M>> for &'a multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
impl<'a, 'b, M> Add<&'b BigUint<M>> for &'a multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
Source§impl<'a, 'b, M> Add<&'b BigUint<M>> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<'a, 'b, M> Add<&'b BigUint<M>> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<'a, M> Add<u32> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<'a, M> Add<u32> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<'a, M> Add<u64> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<'a, M> Add<u64> for &'a multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<'b> Add<&'b EdwardsPoint> for EdwardsPoint
impl<'b> Add<&'b EdwardsPoint> for EdwardsPoint
type Output = EdwardsPoint
Source§impl<'b> Add<&'b RistrettoPoint> for RistrettoPoint
impl<'b> Add<&'b RistrettoPoint> for RistrettoPoint
type Output = RistrettoPoint
Source§impl<'b, M> Add<&'b BigUint<M>> for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<'b, M> Add<&'b BigUint<M>> for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<DEC1, DEC2> Add<ConstDecimals<DEC2>> for ConstDecimals<DEC1>
impl<DEC1, DEC2> Add<ConstDecimals<DEC2>> for ConstDecimals<DEC1>
Source§impl<DECIMALS, M> Add<ManagedDecimal<M, usize>> for ManagedDecimal<M, ConstDecimals<DECIMALS>>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
impl<DECIMALS, M> Add<ManagedDecimal<M, usize>> for ManagedDecimal<M, ConstDecimals<DECIMALS>>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
type Output = ManagedDecimal<M, usize>
Source§impl<DECIMALS, M> Add<ManagedDecimal<M, ConstDecimals<DECIMALS>>> for ManagedDecimal<M, usize>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
impl<DECIMALS, M> Add<ManagedDecimal<M, ConstDecimals<DECIMALS>>> for ManagedDecimal<M, usize>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
type Output = ManagedDecimal<M, usize>
Source§impl<DECIMALS, M> Add<ManagedDecimalSigned<M, usize>> for ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
impl<DECIMALS, M> Add<ManagedDecimalSigned<M, usize>> for ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
type Output = ManagedDecimalSigned<M, usize>
Source§impl<DECIMALS, M> Add<ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>> for ManagedDecimalSigned<M, usize>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
impl<DECIMALS, M> Add<ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>> for ManagedDecimalSigned<M, usize>where
DECIMALS: Unsigned,
M: ManagedTypeApi,
type Output = ManagedDecimalSigned<M, usize>
Source§impl<M> Add for multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
impl<M> Add for multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
Source§impl<M> Add for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<M> Add for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<M> Add for ManagedDecimal<M, usize>where
M: ManagedTypeApi,
impl<M> Add for ManagedDecimal<M, usize>where
M: ManagedTypeApi,
type Output = ManagedDecimal<M, usize>
Source§impl<M> Add for ManagedDecimalSigned<M, usize>where
M: ManagedTypeApi,
impl<M> Add for ManagedDecimalSigned<M, usize>where
M: ManagedTypeApi,
type Output = ManagedDecimalSigned<M, usize>
Source§impl<M> Add<BigInt<M>> for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
impl<M> Add<BigInt<M>> for multiversx_sc_snippets::imports::BigUint<M>where
M: ManagedTypeApi,
Source§impl<M> Add<BigUint<M>> for multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
impl<M> Add<BigUint<M>> for multiversx_sc_snippets::imports::BigInt<M>where
M: ManagedTypeApi,
Source§impl<M, DECIMALS> Add for ManagedDecimal<M, ConstDecimals<DECIMALS>>where
M: ManagedTypeApi,
DECIMALS: Unsigned,
impl<M, DECIMALS> Add for ManagedDecimal<M, ConstDecimals<DECIMALS>>where
M: ManagedTypeApi,
DECIMALS: Unsigned,
type Output = ManagedDecimal<M, ConstDecimals<DECIMALS>>
Source§impl<M, DECIMALS> Add for ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>where
M: ManagedTypeApi,
DECIMALS: Unsigned,
impl<M, DECIMALS> Add for ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>where
M: ManagedTypeApi,
DECIMALS: Unsigned,
type Output = ManagedDecimalSigned<M, ConstDecimals<DECIMALS>>
Source§impl<Ul, Ur> Add<UInt<Ur, B0>> for UInt<Ul, B0>
UInt<Ul, B0> + UInt<Ur, B0> = UInt<Ul + Ur, B0>
impl<Ul, Ur> Add<UInt<Ur, B0>> for UInt<Ul, B0>
UInt<Ul, B0> + UInt<Ur, B0> = UInt<Ul + Ur, B0>
Source§impl<Ul, Ur> Add<UInt<Ur, B0>> for UInt<Ul, B1>
UInt<Ul, B1> + UInt<Ur, B0> = UInt<Ul + Ur, B1>
impl<Ul, Ur> Add<UInt<Ur, B0>> for UInt<Ul, B1>
UInt<Ul, B1> + UInt<Ur, B0> = UInt<Ul + Ur, B1>
Source§impl<Ul, Ur> Add<UInt<Ur, B1>> for UInt<Ul, B0>
UInt<Ul, B0> + UInt<Ur, B1> = UInt<Ul + Ur, B1>
impl<Ul, Ur> Add<UInt<Ur, B1>> for UInt<Ul, B0>
UInt<Ul, B0> + UInt<Ur, B1> = UInt<Ul + Ur, B1>
Source§impl<Ul, Ur> Add<UInt<Ur, B1>> for UInt<Ul, B1>
UInt<Ul, B1> + UInt<Ur, B1> = UInt<(Ul + Ur) + B1, B0>
impl<Ul, Ur> Add<UInt<Ur, B1>> for UInt<Ul, B1>
UInt<Ul, B1> + UInt<Ur, B1> = UInt<(Ul + Ur) + B1, B0>