Skip to main content

AtomicBitFieldVec

Struct AtomicBitFieldVec 

Source
pub struct AtomicBitFieldVec<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>> = Vec<Atomic<usize>>> { /* private fields */ }
Expand description

A tentatively thread-safe vector of bit fields of fixed width (AKA “compact arrays”, “bit array”, etc.)

This implementation provides some concurrency guarantees, albeit not full-fledged thread safety: more precisely, we can guarantee thread-safety if the bit width is a power of two; otherwise, concurrent writes to values that cross word boundaries might end up in different threads succeeding in writing only part of a value. If the user can guarantee that no two threads ever write to the same boundary-crossing value, then no race condition can happen.

See the module documentation for more details.

Implementations§

Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> AtomicBitFieldVec<B>

Source

pub unsafe fn from_raw_parts(bits: B, bit_width: usize, len: usize) -> Self

§Safety

len * bit_width must be between 0 (included) and the number of bits in bits (included).

Source

pub fn into_raw_parts(self) -> (B, usize, usize)

Returns the backend, the bit width, and the length, consuming this vector.

Source

pub const fn mask(&self) -> <B::Word as PrimitiveAtomic>::Value

Returns the mask used to extract values from the vector. This will keep the lowest bit_width bits.

Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>> + AsRef<[B::Word]>> AtomicBitFieldVec<B>

Source

pub fn as_slice(&self) -> &[B::Word]

Returns the backend of the AtomicBitFieldVec as a slice of atomic words.

Source§

impl<A: PrimitiveAtomicUnsigned<Value: Word>> AtomicBitFieldVec<Vec<A>>

Source

pub fn new(bit_width: usize, len: usize) -> AtomicBitFieldVec<Vec<A>>

Trait Implementations§

Source§

impl<B> AlignHash for AtomicBitFieldVec<B>
where B: SerInner<SerType: AlignHash> + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>, usize: SerInner<SerType: AlignHash>, <B::Word as PrimitiveAtomic>::Value: SerInner<SerType: AlignHash>,

Source§

fn align_hash(hasher: &mut impl Hasher, offset_of: &mut usize)

Accumulates alignment information in hasher assuming to be positioned at offset_of.
Source§

fn align_hash_val(&self, hasher: &mut impl Hasher, offset_of: &mut usize)

Calls AlignHash::align_hash on a value.
Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>> + AsRef<[B::Word]>> AtomicBitFieldSlice<<B as Backend>::Word> for AtomicBitFieldVec<B>

Source§

fn set_atomic( &self, index: usize, value: <B::Word as PrimitiveAtomic>::Value, order: Ordering, )

Sets the element of the slice at the specified index.

May panic if the index is not in [0..len) or the value does not fit in BitWidth::bit_width bits.

Source§

fn len(&self) -> usize

Source§

unsafe fn get_atomic_unchecked( &self, index: usize, order: Ordering, ) -> <B::Word as PrimitiveAtomic>::Value

Returns the value at the specified index. Read more
Source§

unsafe fn set_atomic_unchecked( &self, index: usize, value: <B::Word as PrimitiveAtomic>::Value, order: Ordering, )

Sets the element of the slice at the specified index. Read more
Source§

fn reset_atomic(&mut self, ordering: Ordering)

Sets all values to zero. Read more
Source§

fn par_reset_atomic(&mut self, ordering: Ordering)

Available on crate feature rayon only.
Sets all values to zero using a parallel implementation. Read more
Source§

fn is_empty(&self) -> bool

Source§

fn get_atomic(&self, index: usize, order: Ordering) -> A::Value

Returns the value at the specified index. Read more
Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> AtomicBitWidth for AtomicBitFieldVec<B>

Source§

fn atomic_bit_width(&self) -> usize

Returns the bit width of the atomic slice.
Source§

impl<B> Backend for AtomicBitFieldVec<B>
where B: Backend + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>,

Source§

type Word = <B as Backend>::Word

The word type used by this backend.
Source§

impl<B: Clone + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> Clone for AtomicBitFieldVec<B>
where B::Word: Clone,

Source§

fn clone(&self) -> AtomicBitFieldVec<B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> CopyType for AtomicBitFieldVec<B>

Source§

impl<B: Debug + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> Debug for AtomicBitFieldVec<B>
where B::Word: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B> DeserInner for AtomicBitFieldVec<B>
where B: DeserInner + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>, usize: DeserInner, <B::Word as PrimitiveAtomic>::Value: DeserInner, for<'a> <B as DeserInner>::DeserType<'a>: Backend<Word = B::Word>, for<'__epserde_desertype> DeserType<'__epserde_desertype, B>: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>,

Source§

type DeserType<'__epserde_desertype> = AtomicBitFieldVec<<B as DeserInner>::DeserType<'__epserde_desertype>>

The deserialization type associated with this type. It can be retrieved conveniently with the alias DeserType.
Source§

fn __check_covariance<'__long: '__short, '__short>( proof: CovariantProof<Self::DeserType<'__long>>, ) -> CovariantProof<Self::DeserType<'__short>>

Internal method for checking the covariance of DeserType. Read more
Source§

unsafe fn _deser_full_inner( backend: &mut impl ReadWithPos, ) -> Result<Self, Error>

Safety Read more
Source§

unsafe fn _deser_eps_inner<'deser_eps_inner_lifetime>( backend: &mut SliceWithPos<'deser_eps_inner_lifetime>, ) -> Result<Self::DeserType<'deser_eps_inner_lifetime>, Error>

Safety Read more
Source§

impl<B> FlatType for AtomicBitFieldVec<B>

Source§

impl<'a, W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<AtomicBitFieldVec<&'a [<W as AtomicPrimitive>::Atomic]>> for BitFieldVec<&'a [W]>

Source§

fn from(value: AtomicBitFieldVec<&'a [W::Atomic]>) -> Self

Converts to this type from the input type.
Source§

impl<'a, W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<AtomicBitFieldVec<&'a mut [<W as AtomicPrimitive>::Atomic]>> for BitFieldVec<&'a mut [W]>

Source§

fn from(value: AtomicBitFieldVec<&'a mut [W::Atomic]>) -> Self

Converts to this type from the input type.
Source§

impl<W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<AtomicBitFieldVec<Box<[<W as AtomicPrimitive>::Atomic]>>> for BitFieldVec<Box<[W]>>

Source§

fn from(value: AtomicBitFieldVec<Box<[W::Atomic]>>) -> Self

Converts to this type from the input type.
Source§

impl<W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<AtomicBitFieldVec<Vec<<W as AtomicPrimitive>::Atomic>>> for BitFieldVec<Vec<W>>

Source§

fn from(value: AtomicBitFieldVec<Vec<W::Atomic>>) -> Self

Converts to this type from the input type.
Source§

impl<W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<BitFieldVec<Box<[W]>>> for AtomicBitFieldVec<Box<[W::Atomic]>>

Source§

fn from(value: BitFieldVec<Box<[W]>>) -> Self

Converts to this type from the input type.
Source§

impl<W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> From<BitFieldVec<Vec<W>>> for AtomicBitFieldVec<Vec<W::Atomic>>

Source§

fn from(value: BitFieldVec<Vec<W>>) -> Self

Converts to this type from the input type.
Source§

impl<B: Hash + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>> Hash for AtomicBitFieldVec<B>
where B::Word: Hash,

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<B> MemDbgImpl for AtomicBitFieldVec<B>

Source§

fn _mem_dbg_rec_on( &self, _memdbg_writer: &mut impl Write, _memdbg_total_size: usize, _memdbg_max_depth: usize, _memdbg_prefix: &mut String, _memdbg_is_last: bool, _memdbg_flags: DbgFlags, _memdbg_refs: &mut HashSet<usize>, ) -> Result

Source§

fn _mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, padded_size: usize, flags: DbgFlags, dbg_refs: &mut HashSet<usize>, ) -> Result<(), Error>

Source§

fn _mem_dbg_depth_on_impl( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, padded_size: usize, flags: DbgFlags, dbg_refs: &mut HashSet<usize>, ref_display: RefDisplay, ) -> Result<(), Error>

Internal implementation for depth display. Read more
Source§

impl<B> MemSize for AtomicBitFieldVec<B>

Source§

fn mem_size_rec( &self, _memsize_flags: SizeFlags, _memsize_refs: &mut HashMap<usize, usize>, ) -> usize

Recursive implementation that tracks visited references for deduplication. Read more
Source§

fn mem_size(&self, flags: SizeFlags) -> usize

Returns the (recursively computed) overall memory size of the structure in bytes.
Source§

impl<B> SerInner for AtomicBitFieldVec<B>

Source§

const IS_ZERO_COPY: bool

Inner constant used by the derive macros to keep track recursively of whether the type satisfies the conditions for being zero-copy. It is checked at runtime against the trait implemented by the type, and if a ZeroCopy type has this constant set to false serialization will panic.
Source§

type SerType = AtomicBitFieldVec<<B as SerInner>::SerType>

This is the type that will be written in the header of the file, and thus the type that will be deserialized. In most cases it is Self, but in some cases, as for references to slices, it is customized.
Source§

unsafe fn _ser_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>

Serializes this structure using the given backend. Read more
Source§

impl<B: Backend<Word: PrimitiveAtomicUnsigned<Value: Word>> + AsRef<[B::Word]>> SliceByValue for AtomicBitFieldVec<B>

Source§

type Value = <<B as Backend>::Word as PrimitiveAtomic>::Value

The type of the values in the slice.
Source§

fn len(&self) -> usize

Source§

unsafe fn get_value_unchecked(&self, index: usize) -> Self::Value

Source§

fn is_empty(&self) -> bool

Source§

fn index_value(&self, index: usize) -> Self::Value

Source§

fn get_value(&self, index: usize) -> Option<Self::Value>

Source§

impl<'a, W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> TryFrom<BitFieldVec<&'a [W]>> for AtomicBitFieldVec<&'a [W::Atomic]>

Source§

type Error = CannotCastToAtomicError<W>

The type returned in the event of a conversion error.
Source§

fn try_from(value: BitFieldVec<&'a [W]>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, W: Word + AtomicPrimitive<Atomic: PrimitiveAtomicUnsigned>> TryFrom<BitFieldVec<&'a mut [W]>> for AtomicBitFieldVec<&'a mut [W::Atomic]>

Source§

type Error = CannotCastToAtomicError<W>

The type returned in the event of a conversion error.
Source§

fn try_from(value: BitFieldVec<&'a mut [W]>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<B> TypeHash for AtomicBitFieldVec<B>
where B: SerInner<SerType: TypeHash> + Backend<Word: PrimitiveAtomicUnsigned<Value: Word>>, usize: SerInner<SerType: TypeHash>, <B::Word as PrimitiveAtomic>::Value: SerInner<SerType: TypeHash>,

Source§

fn type_hash(hasher: &mut impl Hasher)

Accumulates type information in hasher.
Source§

fn type_hash_val(&self, hasher: &mut impl Hasher)

Calls TypeHash::type_hash on a value.

Auto Trait Implementations§

§

impl<B> Freeze for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized + Freeze, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: Freeze,

§

impl<B> RefUnwindSafe for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: RefUnwindSafe,

§

impl<B> Send for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: Send,

§

impl<B> Sync for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: Sync,

§

impl<B> Unpin for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: Unpin,

§

impl<B> UnsafeUnpin for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized + UnsafeUnpin, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: UnsafeUnpin,

§

impl<B> UnwindSafe for AtomicBitFieldVec<B>
where <<B as Backend>::Word as PrimitiveAtomic>::Value: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryInto<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<usize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<u8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<isize>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i128>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i64>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i32>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i16>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as TryFrom<i8>>::Error: Sized, <<<B as Backend>::Word as PrimitiveAtomic>::Value as FromStr>::Err: Sized, <B as Backend>::Word: Sized, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> MemDbg for T
where T: MemDbgImpl,

Source§

fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>

Available on crate feature std only.
Writes to stderr debug info about the structure memory usage, expanding all levels of nested structures.
Source§

fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags, ) -> Result<(), Error>

Writes to a core::fmt::Write debug info about the structure memory usage, expanding all levels of nested structures.
Source§

fn mem_dbg_depth(&self, max_depth: usize, flags: DbgFlags) -> Result<(), Error>

Available on crate feature std only.
Writes to stderr debug info about the structure memory usage as mem_dbg, but expanding only up to max_depth levels of nested structures.
Source§

fn mem_dbg_depth_on( &self, writer: &mut impl Write, max_depth: usize, flags: DbgFlags, ) -> Result<(), Error>

Writes to a core::fmt::Write debug info about the structure memory usage as mem_dbg_on, but expanding only up to max_depth levels of nested structures.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.