Trait ArrayNotAssign

Source
pub trait ArrayNotAssign<T, const N: usize>: ArrayMapAssign<T, N> {
    // Required methods
    const fn not_assign_all(&mut self)
       where T: Not<Output = T>;
    const async fn not_assign_all_async(&mut self)
       where T: Not<Output = T>;
}

Required Methods§

Source

const fn not_assign_all(&mut self)
where T: Not<Output = T>,

Applies the ! operator on all elements, in-place.

§Examples
use array__ops::ops::*;
 
let mut a = [true, false, true];
 
a.not_assign_all();
 
assert_eq!(a, [false, true, false]);
Source

const async fn not_assign_all_async(&mut self)
where T: Not<Output = T>,

Asynchronously applies the ! operator on all elements, in-place.

§Examples
use array__ops::ops::*;
 
let mut a = [true, false, true];
 
a.not_assign_all_async().await;
 
assert_eq!(a, [false, true, false]);

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<T, const N: usize> ArrayNotAssign<T, N> for [T; N]

Source§

fn not_assign_all(&mut self)
where T: Not<Output = T>,

Source§

async fn not_assign_all_async(&mut self)
where T: Not<Output = T>,

Implementors§