pub trait MappedGenericSequence<T, U>: GenericSequence<T> {
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§
sourcetype Mapped: GenericSequence<U, Length = Self::Length>
type Mapped: GenericSequence<U, Length = Self::Length>
Mapped sequence type
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'a, T, U, S> MappedGenericSequence<T, U> for &'a Swhere
&'a S: GenericSequence<T>,
S: GenericSequence<T, Length = <&'a S as GenericSequence<T>>::Length> + MappedGenericSequence<T, U>,
impl<'a, T, U, S> MappedGenericSequence<T, U> for &'a Swhere
&'a S: GenericSequence<T>,
S: GenericSequence<T, Length = <&'a S as GenericSequence<T>>::Length> + MappedGenericSequence<T, U>,
type Mapped = <S as MappedGenericSequence<T, U>>::Mapped
source§impl<'a, T, U, S> MappedGenericSequence<T, U> for &'a mut Swhere
&'a mut S: GenericSequence<T>,
S: GenericSequence<T, Length = <&'a mut S as GenericSequence<T>>::Length> + MappedGenericSequence<T, U>,
impl<'a, T, U, S> MappedGenericSequence<T, U> for &'a mut Swhere
&'a mut S: GenericSequence<T>,
S: GenericSequence<T, Length = <&'a mut S as GenericSequence<T>>::Length> + MappedGenericSequence<T, U>,
type Mapped = <S as MappedGenericSequence<T, U>>::Mapped
source§impl<T, U, N: ArrayLength> MappedGenericSequence<T, U> for Box<GenericArray<T, N>>
Available on crate feature alloc
only.
impl<T, U, N: ArrayLength> MappedGenericSequence<T, U> for Box<GenericArray<T, N>>
Available on crate feature
alloc
only.