c2_chacha::stream_cipher::generic_array::functional

Trait MappedGenericSequence

Source
pub unsafe trait MappedGenericSequence<T, U>: GenericSequence<T>
where Self::Length: ArrayLength<U>,
{ type Mapped: GenericSequence<U, Length = Self::Length>; }
Expand description

Defines the relationship between one generic sequence and another, for operations such as map and zip.

Required Associated Types§

Source

type Mapped: GenericSequence<U, Length = Self::Length>

Mapped sequence type

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<'a, T, U, S> MappedGenericSequence<T, U> for &'a S

Source§

impl<'a, T, U, S> MappedGenericSequence<T, U> for &'a mut S

Implementors§

Source§

impl<T, U, N> MappedGenericSequence<T, U> for GenericArray<T, N>
where N: ArrayLength<T> + ArrayLength<U>, GenericArray<U, N>: GenericSequence<U, Length = N>,