Struct arith::ArithMap [−][src]
Fields
hashmap: HashMap<&'a str, V>
Implementations
Trait Implementations
impl<V> Add<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Add<Output = V> + AddAssign + Copy + Default,
[src]
impl<V> Add<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Add<Output = V> + AddAssign + Copy + Default,
[src]let x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"b" => 2, "c" => 3}; let z = arithmap!{"a" => 1, "b" => 4, "c" => 3}; assert_eq!(x + y, z);
impl<V> Add<V> for ArithMap<'_, V> where
V: AddAssign + Copy,
[src]
impl<V> Add<V> for ArithMap<'_, V> where
V: AddAssign + Copy,
[src]let x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"a" => 2, "b" => 3}; assert_eq!(x + 1, y);
impl<V> AddAssign<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Add<Output = V> + AddAssign + Copy + Default,
[src]
impl<V> AddAssign<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Add<Output = V> + AddAssign + Copy + Default,
[src]let mut x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"b" => 2, "c" => 3}; x += y; let z = arithmap!{"a" => 1, "b" => 4, "c" => 3}; assert_eq!(x, z);
fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
[src]Performs the +=
operation. Read more
impl<V> AddAssign<V> for ArithMap<'_, V> where
V: AddAssign + Copy,
[src]
impl<V> AddAssign<V> for ArithMap<'_, V> where
V: AddAssign + Copy,
[src]let mut x = arithmap!{"a" => 1, "b" => 2}; x += 1; let y = arithmap!{"a" => 2, "b" => 3}; assert_eq!(x, y);
fn add_assign(&mut self, other: V)
[src]
fn add_assign(&mut self, other: V)
[src]Performs the +=
operation. Read more
impl<V> Mul<V> for ArithMap<'_, V> where
V: MulAssign + Copy,
[src]
impl<V> Mul<V> for ArithMap<'_, V> where
V: MulAssign + Copy,
[src]let x = arithmap!{"a" => 1.0, "b" => 2.0}; let y = arithmap!{"a" => 2.0, "b" => 4.0}; assert_eq!(x * 2.0, y);
impl<V> MulAssign<V> for ArithMap<'_, V> where
V: MulAssign + Copy,
[src]
impl<V> MulAssign<V> for ArithMap<'_, V> where
V: MulAssign + Copy,
[src]let mut x = arithmap!{"a" => 1, "b" => 2}; x *= 2; let y = arithmap!{"a" => 2, "b" => 4}; assert_eq!(x, y);
fn mul_assign(&mut self, other: V)
[src]
fn mul_assign(&mut self, other: V)
[src]Performs the *=
operation. Read more
impl<V> Sub<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Sub<Output = V> + SubAssign + Copy + Default,
[src]
impl<V> Sub<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Sub<Output = V> + SubAssign + Copy + Default,
[src]let x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"b" => 2, "c" => 3}; let z = arithmap!{"a" => 1, "b" => 0, "c" => -3}; assert_eq!(x - y, z);
impl<V> Sub<V> for ArithMap<'_, V> where
V: SubAssign + Copy,
[src]
impl<V> Sub<V> for ArithMap<'_, V> where
V: SubAssign + Copy,
[src]let x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"a" => 0, "b" => 1}; assert_eq!(x - 1, y);
impl<V> SubAssign<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Sub<Output = V> + SubAssign + Copy + Default,
[src]
impl<V> SubAssign<ArithMap<'_, V>> for ArithMap<'_, V> where
V: Sub<Output = V> + SubAssign + Copy + Default,
[src]let mut x = arithmap!{"a" => 1, "b" => 2}; let y = arithmap!{"b" => 2, "c" => 3}; x -= y; let z = arithmap!{"a" => 1, "b" => 0, "c" => -3}; assert_eq!(x, z);
fn sub_assign(&mut self, other: Self)
[src]
fn sub_assign(&mut self, other: Self)
[src]Performs the -=
operation. Read more
impl<V> SubAssign<V> for ArithMap<'_, V> where
V: SubAssign + Copy,
[src]
impl<V> SubAssign<V> for ArithMap<'_, V> where
V: SubAssign + Copy,
[src]let mut x = arithmap!{"a" => 1, "b" => 2}; x -= 1; let y = arithmap!{"a" => 0, "b" => 1}; assert_eq!(x, y);
fn sub_assign(&mut self, other: V)
[src]
fn sub_assign(&mut self, other: V)
[src]Performs the -=
operation. Read more
impl<'a, V: Eq> Eq for ArithMap<'a, V>
[src]
impl<'a, V> StructuralEq for ArithMap<'a, V>
[src]
impl<'a, V> StructuralPartialEq for ArithMap<'a, V>
[src]
Auto Trait Implementations
impl<'a, V> RefUnwindSafe for ArithMap<'a, V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V> Send for ArithMap<'a, V> where
V: Send,
V: Send,
impl<'a, V> Sync for ArithMap<'a, V> where
V: Sync,
V: Sync,
impl<'a, V> Unpin for ArithMap<'a, V> where
V: Unpin,
V: Unpin,
impl<'a, V> UnwindSafe for ArithMap<'a, V> where
V: UnwindSafe,
V: UnwindSafe,