Trait AddAssign

1.8.0 ยท Source
pub trait AddAssign<Rhs = Self> {
    // Required method
    fn add_assign(&mut self, rhs: Rhs);
}
Expand description

The addition assignment operator +=.

ยงExamples

This example creates a Point struct that implements the AddAssign trait, and then demonstrates add-assigning to a mutable Point.

use std::ops::AddAssign;

#[derive(Debug, Copy, Clone, PartialEq)]
struct Point {
    x: i32,
    y: i32,
}

impl AddAssign for Point {
    fn add_assign(&mut self, other: Self) {
        *self = Self {
            x: self.x + other.x,
            y: self.y + other.y,
        };
    }
}

let mut point = Point { x: 1, y: 0 };
point += Point { x: 2, y: 3 };
assert_eq!(point, Point { x: 3, y: 3 });

Required Methodsยง

1.8.0 ยท Source

fn add_assign(&mut self, rhs: Rhs)

Performs the += operation.

ยงExample
let mut x: u32 = 12;
x += 1;
assert_eq!(x, 13);

Implementorsยง

1.8.0 ยท Sourceยง

impl AddAssign for f16

1.8.0 ยท Sourceยง

impl AddAssign for f32

1.8.0 ยท Sourceยง

impl AddAssign for f64

1.8.0 ยท Sourceยง

impl AddAssign for f128

1.8.0 ยท Sourceยง

impl AddAssign for i8

1.8.0 ยท Sourceยง

impl AddAssign for i16

1.8.0 ยท Sourceยง

impl AddAssign for i32

1.8.0 ยท Sourceยง

impl AddAssign for i64

1.8.0 ยท Sourceยง

impl AddAssign for i128

1.8.0 ยท Sourceยง

impl AddAssign for isize

1.8.0 ยท Sourceยง

impl AddAssign for u8

1.8.0 ยท Sourceยง

impl AddAssign for u16

1.8.0 ยท Sourceยง

impl AddAssign for u32

1.8.0 ยท Sourceยง

impl AddAssign for u64

1.8.0 ยท Sourceยง

impl AddAssign for u128

1.8.0 ยท Sourceยง

impl AddAssign for usize

Sourceยง

impl AddAssign for BuildQueueSettings

Sourceยง

impl AddAssign for GitlabSettings

Sourceยง

impl AddAssign for ServerSettings

Sourceยง

impl AddAssign for SettingsSpec

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<i8>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<i16>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<i32>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<i64>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<i128>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<isize>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<u8>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<u16>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<u32>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<u64>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<u128>

1.74.0 ยท Sourceยง

impl AddAssign for Saturating<usize>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<i8>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<i16>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<i32>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<i64>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<i128>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<isize>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<u8>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<u16>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<u32>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<u64>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<u128>

1.8.0 ยท Sourceยง

impl AddAssign for Wrapping<usize>

1.9.0 ยท Sourceยง

impl AddAssign for flams_router_vscode::server_fn::inventory::core::time::Duration

Sourceยง

impl AddAssign for TimeDelta

ยง

impl AddAssign for ByteCount

ยง

impl AddAssign for CacheStats

ยง

impl AddAssign for Duration

ยง

impl AddAssign for LengthHint

ยง

impl AddAssign for Timespec

1.22.0 ยท Sourceยง

impl AddAssign<&f16> for f16

1.22.0 ยท Sourceยง

impl AddAssign<&f32> for f32

1.22.0 ยท Sourceยง

impl AddAssign<&f64> for f64

1.22.0 ยท Sourceยง

impl AddAssign<&f128> for f128

1.22.0 ยท Sourceยง

impl AddAssign<&i8> for i8

1.22.0 ยท Sourceยง

impl AddAssign<&i8> for Saturating<i8>

1.22.0 ยท Sourceยง

impl AddAssign<&i8> for Wrapping<i8>

1.22.0 ยท Sourceยง

impl AddAssign<&i16> for i16

1.22.0 ยท Sourceยง

impl AddAssign<&i16> for Saturating<i16>

1.22.0 ยท Sourceยง

impl AddAssign<&i16> for Wrapping<i16>

1.22.0 ยท Sourceยง

impl AddAssign<&i32> for i32

1.22.0 ยท Sourceยง

impl AddAssign<&i32> for Saturating<i32>

1.22.0 ยท Sourceยง

impl AddAssign<&i32> for Wrapping<i32>

1.22.0 ยท Sourceยง

impl AddAssign<&i64> for i64

1.22.0 ยท Sourceยง

impl AddAssign<&i64> for Saturating<i64>

1.22.0 ยท Sourceยง

impl AddAssign<&i64> for Wrapping<i64>

1.22.0 ยท Sourceยง

impl AddAssign<&i128> for i128

1.22.0 ยท Sourceยง

impl AddAssign<&i128> for Saturating<i128>

1.22.0 ยท Sourceยง

impl AddAssign<&i128> for Wrapping<i128>

1.22.0 ยท Sourceยง

impl AddAssign<&isize> for isize

1.22.0 ยท Sourceยง

impl AddAssign<&isize> for Saturating<isize>

1.22.0 ยท Sourceยง

impl AddAssign<&isize> for Wrapping<isize>

1.12.0 ยท Sourceยง

impl AddAssign<&str> for String

Implements the += operator for appending to a String.

This has the same behavior as the push_str method.

1.22.0 ยท Sourceยง

impl AddAssign<&u8> for u8

1.22.0 ยท Sourceยง

impl AddAssign<&u8> for Saturating<u8>

1.22.0 ยท Sourceยง

impl AddAssign<&u8> for Wrapping<u8>

1.22.0 ยท Sourceยง

impl AddAssign<&u16> for u16

1.22.0 ยท Sourceยง

impl AddAssign<&u16> for Saturating<u16>

1.22.0 ยท Sourceยง

impl AddAssign<&u16> for Wrapping<u16>

1.22.0 ยท Sourceยง

impl AddAssign<&u32> for u32

1.22.0 ยท Sourceยง

impl AddAssign<&u32> for Saturating<u32>

1.22.0 ยท Sourceยง

impl AddAssign<&u32> for Wrapping<u32>

1.22.0 ยท Sourceยง

impl AddAssign<&u64> for u64

1.22.0 ยท Sourceยง

impl AddAssign<&u64> for Saturating<u64>

1.22.0 ยท Sourceยง

impl AddAssign<&u64> for Wrapping<u64>

1.22.0 ยท Sourceยง

impl AddAssign<&u128> for u128

1.22.0 ยท Sourceยง

impl AddAssign<&u128> for Saturating<u128>

1.22.0 ยท Sourceยง

impl AddAssign<&u128> for Wrapping<u128>

1.22.0 ยท Sourceยง

impl AddAssign<&usize> for usize

1.22.0 ยท Sourceยง

impl AddAssign<&usize> for Saturating<usize>

1.22.0 ยท Sourceยง

impl AddAssign<&usize> for Wrapping<usize>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<i8>> for Saturating<i8>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<i16>> for Saturating<i16>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<i32>> for Saturating<i32>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<i64>> for Saturating<i64>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<i128>> for Saturating<i128>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<isize>> for Saturating<isize>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<u8>> for Saturating<u8>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<u16>> for Saturating<u16>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<u32>> for Saturating<u32>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<u64>> for Saturating<u64>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<u128>> for Saturating<u128>

1.22.0 ยท Sourceยง

impl AddAssign<&Saturating<usize>> for Saturating<usize>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<i8>> for Wrapping<i8>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<i16>> for Wrapping<i16>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<i32>> for Wrapping<i32>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<i64>> for Wrapping<i64>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<i128>> for Wrapping<i128>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<isize>> for Wrapping<isize>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<u8>> for Wrapping<u8>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<u16>> for Wrapping<u16>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<u32>> for Wrapping<u32>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<u64>> for Wrapping<u64>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<u128>> for Wrapping<u128>

1.22.0 ยท Sourceยง

impl AddAssign<&Wrapping<usize>> for Wrapping<usize>

1.74.0 ยท Sourceยง

impl AddAssign<i8> for Saturating<i8>

1.60.0 ยท Sourceยง

impl AddAssign<i8> for Wrapping<i8>

1.74.0 ยท Sourceยง

impl AddAssign<i16> for Saturating<i16>

1.60.0 ยท Sourceยง

impl AddAssign<i16> for Wrapping<i16>

1.74.0 ยท Sourceยง

impl AddAssign<i32> for Saturating<i32>

1.60.0 ยท Sourceยง

impl AddAssign<i32> for Wrapping<i32>

1.74.0 ยท Sourceยง

impl AddAssign<i64> for Saturating<i64>

1.60.0 ยท Sourceยง

impl AddAssign<i64> for Wrapping<i64>

1.74.0 ยท Sourceยง

impl AddAssign<i128> for Saturating<i128>

1.60.0 ยท Sourceยง

impl AddAssign<i128> for Wrapping<i128>

1.74.0 ยท Sourceยง

impl AddAssign<isize> for Saturating<isize>

1.60.0 ยท Sourceยง

impl AddAssign<isize> for Wrapping<isize>

1.74.0 ยท Sourceยง

impl AddAssign<u8> for Saturating<u8>

1.60.0 ยท Sourceยง

impl AddAssign<u8> for Wrapping<u8>

1.74.0 ยท Sourceยง

impl AddAssign<u16> for Saturating<u16>

1.60.0 ยท Sourceยง

impl AddAssign<u16> for Wrapping<u16>

1.74.0 ยท Sourceยง

impl AddAssign<u32> for Saturating<u32>

1.60.0 ยท Sourceยง

impl AddAssign<u32> for Wrapping<u32>

1.74.0 ยท Sourceยง

impl AddAssign<u64> for Saturating<u64>

1.60.0 ยท Sourceยง

impl AddAssign<u64> for Wrapping<u64>

1.74.0 ยท Sourceยง

impl AddAssign<u128> for Saturating<u128>

1.60.0 ยท Sourceยง

impl AddAssign<u128> for Wrapping<u128>

1.74.0 ยท Sourceยง

impl AddAssign<usize> for Saturating<usize>

1.60.0 ยท Sourceยง

impl AddAssign<usize> for Wrapping<usize>

ยง

impl AddAssign<usize> for LengthHint

ยง

impl AddAssign<usize> for Span

1.9.0 ยท Sourceยง

impl AddAssign<Duration> for std::time::Instant

1.9.0 ยท Sourceยง

impl AddAssign<Duration> for SystemTime

Sourceยง

impl AddAssign<Duration> for NaiveDateTime

Add-assign std::time::Duration to NaiveDateTime.

As a part of Chronoโ€™s [leap second handling], the addition assumes that there is no leap second ever, except when the NaiveDateTime itself represents a leap second in which case the assumption becomes that there is exactly a single leap second ever.

ยงPanics

Panics if the resulting date would be out of range. Consider using NaiveDateTime::checked_add_signed to get an Option instead.

Sourceยง

impl AddAssign<Duration> for NaiveTime

Add-assign std::time::Duration to NaiveTime.

This wraps around and never overflows or underflows. In particular the addition ignores integral number of days.

ยง

impl AddAssign<Duration> for Date

ยง

impl AddAssign<Duration> for Duration

ยง

impl AddAssign<Duration> for Instant

ยง

impl AddAssign<Duration> for OffsetDateTime

ยง

impl AddAssign<Duration> for PrimitiveDateTime

ยง

impl AddAssign<Duration> for Time

ยง

impl AddAssign<Duration> for UtcDateTime

Sourceยง

impl AddAssign<TimeDelta> for NaiveDate

Add-assign of TimeDelta to NaiveDate.

This discards the fractional days in TimeDelta, rounding to the closest integral number of days towards TimeDelta::zero().

ยงPanics

Panics if the resulting date would be out of range. Consider using NaiveDate::checked_add_signed to get an Option instead.

Sourceยง

impl AddAssign<TimeDelta> for NaiveDateTime

Add-assign TimeDelta to NaiveDateTime.

As a part of Chronoโ€™s [leap second handling], the addition assumes that there is no leap second ever, except when the NaiveDateTime itself represents a leap second in which case the assumption becomes that there is exactly a single leap second ever.

ยงPanics

Panics if the resulting date would be out of range. Consider using NaiveDateTime::checked_add_signed to get an Option instead.

Sourceยง

impl AddAssign<TimeDelta> for NaiveTime

Add-assign TimeDelta to NaiveTime.

This wraps around and never overflows or underflows. In particular the addition ignores integral number of days.

Sourceยง

impl AddAssign<Cam16Hue> for f32

Sourceยง

impl AddAssign<Cam16Hue<f64>> for f64

Sourceยง

impl AddAssign<LabHue> for f32

Sourceยง

impl AddAssign<LabHue<f64>> for f64

Sourceยง

impl AddAssign<LuvHue> for f32

Sourceยง

impl AddAssign<LuvHue<f64>> for f64

Sourceยง

impl AddAssign<OklabHue> for f32

Sourceยง

impl AddAssign<OklabHue<f64>> for f64

Sourceยง

impl AddAssign<RgbHue> for f32

Sourceยง

impl AddAssign<RgbHue<f64>> for f64

ยง

impl AddAssign<Duration> for flams_router_vscode::server_fn::inventory::core::time::Duration

ยง

impl AddAssign<Duration> for std::time::Instant

ยง

impl AddAssign<Duration> for SystemTime

ยง

impl AddAssign<Duration> for Date

ยง

impl AddAssign<Duration> for OffsetDateTime

ยง

impl AddAssign<Duration> for PrimitiveDateTime

ยง

impl AddAssign<Duration> for Time

ยง

impl AddAssign<Duration> for UtcDateTime

1.14.0 ยท Sourceยง

impl<'a> AddAssign for Cow<'a, str>

1.14.0 ยท Sourceยง

impl<'a> AddAssign<&'a str> for Cow<'a, str>

Sourceยง

impl<C> AddAssign for PreAlpha<C>

Sourceยง

impl<C> AddAssign<f32> for PreAlpha<C>
where C: AddAssign<f32> + Premultiply<Scalar = f32>,

Sourceยง

impl<C> AddAssign<f64> for PreAlpha<C>
where C: AddAssign<f64> + Premultiply<Scalar = f64>,

Sourceยง

impl<C, T> AddAssign for Alpha<C, T>
where C: AddAssign, T: AddAssign,

ยง

impl<O> AddAssign for F32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for F64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for I16<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for I32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for I64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for I128<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for Isize<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for U16<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for U32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for U64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for U128<O>
where O: ByteOrder,

ยง

impl<O> AddAssign for Usize<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<f32> for F32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<f64> for F64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<i16> for I16<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<i32> for I32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<i64> for I64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<i128> for I128<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<isize> for Isize<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<u16> for U16<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<u32> for U32<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<u64> for U64<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<u128> for U128<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<usize> for Usize<O>
where O: ByteOrder,

ยง

impl<O> AddAssign<F32<O>> for f32
where O: ByteOrder,

ยง

impl<O> AddAssign<F64<O>> for f64
where O: ByteOrder,

ยง

impl<O> AddAssign<I16<O>> for i16
where O: ByteOrder,

ยง

impl<O> AddAssign<I32<O>> for i32
where O: ByteOrder,

ยง

impl<O> AddAssign<I64<O>> for i64
where O: ByteOrder,

ยง

impl<O> AddAssign<I128<O>> for i128
where O: ByteOrder,

ยง

impl<O> AddAssign<Isize<O>> for isize
where O: ByteOrder,

ยง

impl<O> AddAssign<U16<O>> for u16
where O: ByteOrder,

ยง

impl<O> AddAssign<U32<O>> for u32
where O: ByteOrder,

ยง

impl<O> AddAssign<U64<O>> for u64
where O: ByteOrder,

ยง

impl<O> AddAssign<U128<O>> for u128
where O: ByteOrder,

ยง

impl<O> AddAssign<Usize<O>> for usize
where O: ByteOrder,

Sourceยง

impl<S, T> AddAssign for Hsl<S, T>
where T: AddAssign,

Sourceยง

impl<S, T> AddAssign for Hsv<S, T>
where T: AddAssign,

Sourceยง

impl<S, T> AddAssign for Hwb<S, T>
where T: AddAssign,

Sourceยง

impl<S, T> AddAssign for Luma<S, T>
where T: AddAssign,

Sourceยง

impl<S, T> AddAssign for Rgb<S, T>
where T: AddAssign,

Sourceยง

impl<S, T> AddAssign<T> for Hsl<S, T>
where T: AddAssign + Clone,

Sourceยง

impl<S, T> AddAssign<T> for Hsv<S, T>
where T: AddAssign + Clone,

Sourceยง

impl<S, T> AddAssign<T> for Hwb<S, T>
where T: AddAssign + Clone,

Sourceยง

impl<S, T> AddAssign<T> for Luma<S, T>
where T: AddAssign + Clone,

Sourceยง

impl<S, T> AddAssign<T> for Rgb<S, T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign for Cam16Jch<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Jmh<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Jsh<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Qch<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Qmh<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Qsh<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16UcsJab<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16UcsJmh<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Cam16Hue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for LabHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for LuvHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for OklabHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for RgbHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Okhsl<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Okhsv<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Okhwb<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Oklab<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign for Oklch<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for Cam16Jch<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Jmh<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Jsh<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Qch<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Qmh<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Qsh<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16UcsJab<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16UcsJmh<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Cam16Hue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for LabHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for LuvHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for OklabHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for RgbHue<T>
where T: AddAssign,

Sourceยง

impl<T> AddAssign<T> for Okhsl<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Okhsv<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Okhwb<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Oklab<T>
where T: AddAssign + Clone,

Sourceยง

impl<T> AddAssign<T> for Oklch<T>
where T: AddAssign + Clone,

Sourceยง

impl<T, C> AddAssign<T> for Alpha<C, T>
where T: AddAssign + Clone, C: AddAssign<T>,

Sourceยง

impl<T, U, const N: usize> AddAssign<U> for Simd<T, N>
where Simd<T, N>: Add<U, Output = Simd<T, N>>, T: SimdElement, LaneCount<N>: SupportedLaneCount,

Sourceยง

impl<Tz> AddAssign<Duration> for DateTime<Tz>
where Tz: TimeZone,

Add-assign std::time::Duration to DateTime.

As a part of Chronoโ€™s [leap second handling], the addition assumes that there is no leap second ever, except when the NaiveDateTime itself represents a leap second in which case the assumption becomes that there is exactly a single leap second ever.

ยงPanics

Panics if the resulting date would be out of range. Consider using DateTime<Tz>::checked_add_signed to get an Option instead.

Sourceยง

impl<Tz> AddAssign<TimeDelta> for chrono::date::Date<Tz>
where Tz: TimeZone,

Sourceยง

impl<Tz> AddAssign<TimeDelta> for DateTime<Tz>
where Tz: TimeZone,

Add-assign chrono::Duration to DateTime.

As a part of Chronoโ€™s [leap second handling], the addition assumes that there is no leap second ever, except when the NaiveDateTime itself represents a leap second in which case the assumption becomes that there is exactly a single leap second ever.

ยงPanics

Panics if the resulting date would be out of range. Consider using DateTime<Tz>::checked_add_signed to get an Option instead.

Sourceยง

impl<Wp, T> AddAssign for Hsluv<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Lab<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Lch<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Lchuv<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Luv<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Xyz<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign for Yxy<Wp, T>
where T: AddAssign,

Sourceยง

impl<Wp, T> AddAssign<T> for Hsluv<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Lab<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Lch<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Lchuv<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Luv<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Xyz<Wp, T>
where T: AddAssign + Clone,

Sourceยง

impl<Wp, T> AddAssign<T> for Yxy<Wp, T>
where T: AddAssign + Clone,