pub struct Used<T>(/* private fields */);
Expand description
Helper type indicates that current element is included by the search result.
Trait Implementations§
Source§impl<First, Other, I> ConSubseq<Tuple<First, Unit>, Used<I>> for Tuple<First, Other>
impl<First, Other, I> ConSubseq<Tuple<First, Unit>, Used<I>> for Tuple<First, Other>
Source§fn con_subseq_ref(&self) -> <Tuple<First, Unit> as TupleLike>::AsRefOutput<'_>
fn con_subseq_ref(&self) -> <Tuple<First, Unit> as TupleLike>::AsRefOutput<'_>
Similar to
con_subseq()
,
but all its elements are immutable references to the supersequence’s elements. Read moreSource§fn con_subseq_mut(
&mut self,
) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
fn con_subseq_mut( &mut self, ) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
Similar to
con_subseq()
,
but all its elements are mutable references to the supersequence’s elements. Read moreSource§fn swap_con_subseq(&mut self, subseq: &mut Tuple<First, Unit>)
fn swap_con_subseq(&mut self, subseq: &mut Tuple<First, Unit>)
Swap elements with a contiguous subsequence. Read more
Source§fn replace_con_subseq(&mut self, subseq: Seq) -> Seq
fn replace_con_subseq(&mut self, subseq: Seq) -> Seq
Replace elements with a contiguous subsequence. Read more
Source§impl<First1, First2, Other1, Other2, I> ConSubseq<Tuple<First1, Tuple<First2, Other2>>, Used<I>> for Tuple<First1, Other1>
impl<First1, First2, Other1, Other2, I> ConSubseq<Tuple<First1, Tuple<First2, Other2>>, Used<I>> for Tuple<First1, Other1>
Source§fn con_subseq(self) -> Tuple<First1, Tuple<First2, Other2>>
fn con_subseq(self) -> Tuple<First1, Tuple<First2, Other2>>
Take out a contiguous subsequence. Read more
Source§fn con_subseq_ref(
&self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsRefOutput<'_>
fn con_subseq_ref( &self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsRefOutput<'_>
Similar to
con_subseq()
,
but all its elements are immutable references to the supersequence’s elements. Read moreSource§fn con_subseq_mut(
&mut self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
fn con_subseq_mut( &mut self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
Similar to
con_subseq()
,
but all its elements are mutable references to the supersequence’s elements. Read moreSource§fn swap_con_subseq(&mut self, subseq: &mut Tuple<First1, Tuple<First2, Other2>>)
fn swap_con_subseq(&mut self, subseq: &mut Tuple<First1, Tuple<First2, Other2>>)
Swap elements with a contiguous subsequence. Read more
Source§fn replace_con_subseq(&mut self, subseq: Seq) -> Seq
fn replace_con_subseq(&mut self, subseq: Seq) -> Seq
Replace elements with a contiguous subsequence. Read more
Source§impl<First, Other, F, I> ConSubseqMapReplace<Tuple<First, Unit>, F, Used<I>> for Tuple<First, Other>
impl<First, Other, F, I> ConSubseqMapReplace<Tuple<First, Unit>, F, Used<I>> for Tuple<First, Other>
Source§type MapReplaceOutput = Tuple<<F as Mapper<First>>::Output, Other>
type MapReplaceOutput = Tuple<<F as Mapper<First>>::Output, Other>
The type of tuple that replace elements of a specific contiguous subsequence
to another sequence that may be of different element types.
Source§fn map_replace_con_subseq(self, f: F) -> Self::MapReplaceOutput
fn map_replace_con_subseq(self, f: F) -> Self::MapReplaceOutput
Replace elements of specific contiguous subsequence with another sequence
that may be of different element types. Read more
Source§impl<First1, First2, Other1, Other2, F, I> ConSubseqMapReplace<Tuple<First1, Tuple<First2, Other2>>, F, Used<I>> for Tuple<First1, Other1>where
Other1: ConSubseqMapReplace<Tuple<First2, Other2>, <F as Mapper<First1>>::NextMapper, Used<I>>,
Other2: TupleLike,
F: Mapper<First1>,
impl<First1, First2, Other1, Other2, F, I> ConSubseqMapReplace<Tuple<First1, Tuple<First2, Other2>>, F, Used<I>> for Tuple<First1, Other1>where
Other1: ConSubseqMapReplace<Tuple<First2, Other2>, <F as Mapper<First1>>::NextMapper, Used<I>>,
Other2: TupleLike,
F: Mapper<First1>,
Source§type MapReplaceOutput = Tuple<<F as Mapper<First1>>::Output, <Other1 as ConSubseqMapReplace<Tuple<First2, Other2>, <F as Mapper<First1>>::NextMapper, Used<I>>>::MapReplaceOutput>
type MapReplaceOutput = Tuple<<F as Mapper<First1>>::Output, <Other1 as ConSubseqMapReplace<Tuple<First2, Other2>, <F as Mapper<First1>>::NextMapper, Used<I>>>::MapReplaceOutput>
The type of tuple that replace elements of a specific contiguous subsequence
to another sequence that may be of different element types.
Source§fn map_replace_con_subseq(self, f: F) -> Self::MapReplaceOutput
fn map_replace_con_subseq(self, f: F) -> Self::MapReplaceOutput
Replace elements of specific contiguous subsequence with another sequence
that may be of different element types. Read more
Source§impl<First, Other1, Other2, I> Subseq<Tuple<First, Other2>, Used<I>> for Tuple<First, Other1>
impl<First, Other1, Other2, I> Subseq<Tuple<First, Other2>, Used<I>> for Tuple<First, Other1>
Source§fn subseq_ref(&self) -> <Tuple<First, Other2> as TupleLike>::AsRefOutput<'_>
fn subseq_ref(&self) -> <Tuple<First, Other2> as TupleLike>::AsRefOutput<'_>
Source§fn subseq_mut(&mut self) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
fn subseq_mut(&mut self) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
Source§fn swap_subseq(&mut self, subseq: &mut Tuple<First, Other2>)
fn swap_subseq(&mut self, subseq: &mut Tuple<First, Other2>)
Swap elements with a subsequence. Read more
Source§fn replace_subseq(&mut self, subseq: Seq) -> Seq
fn replace_subseq(&mut self, subseq: Seq) -> Seq
Replace elements with a subsequence. Read more
Source§impl<First, Other1, Other2, F, I> SubseqMapReplace<Tuple<First, Other2>, F, Used<I>> for Tuple<First, Other1>where
Other1: TupleLike + SubseqMapReplace<Other2, <F as Mapper<First>>::NextMapper, I>,
Other2: TupleLike,
F: Mapper<First>,
impl<First, Other1, Other2, F, I> SubseqMapReplace<Tuple<First, Other2>, F, Used<I>> for Tuple<First, Other1>where
Other1: TupleLike + SubseqMapReplace<Other2, <F as Mapper<First>>::NextMapper, I>,
Other2: TupleLike,
F: Mapper<First>,
Source§type MapReplaceOutput = Tuple<<F as Mapper<First>>::Output, <Other1 as SubseqMapReplace<Other2, <F as Mapper<First>>::NextMapper, I>>::MapReplaceOutput>
type MapReplaceOutput = Tuple<<F as Mapper<First>>::Output, <Other1 as SubseqMapReplace<Other2, <F as Mapper<First>>::NextMapper, I>>::MapReplaceOutput>
The type of tuple that replace elements of a specific subsequence
to another sequence that may be of different element types.
Source§fn map_replace_subseq(self, f: F) -> Self::MapReplaceOutput
fn map_replace_subseq(self, f: F) -> Self::MapReplaceOutput
Replace elements of specific subsequence with another sequence
that may be of different element types. Read more
Source§impl<First, Other, I> UninitConSubseq<Tuple<First, Unit>, Used<I>> for Tuple<MaybeUninit<First>, Other>where
Other: UninitConSubseq<Unit, I>,
Available on crate feature uninit
only.
impl<First, Other, I> UninitConSubseq<Tuple<First, Unit>, Used<I>> for Tuple<MaybeUninit<First>, Other>where
Other: UninitConSubseq<Unit, I>,
Available on crate feature
uninit
only.Source§type PartiallyInitialized = Tuple<First, Other>
type PartiallyInitialized = Tuple<First, Other>
The type of tuple consisting of elements not in the contiguous subsequence and
values of each
MaybeUninit
elements in the contiguous subsequence.Source§unsafe fn assume_init_con_subseq(self) -> Self::PartiallyInitialized
unsafe fn assume_init_con_subseq(self) -> Self::PartiallyInitialized
Extract values of a specific contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_read_con_subseq(&self) -> Tuple<First, Unit>
unsafe fn assume_init_read_con_subseq(&self) -> Tuple<First, Unit>
Read the values of a specific contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_ref_con_subseq(
&self,
) -> <Tuple<First, Unit> as TupleLike>::AsRefOutput<'_>
unsafe fn assume_init_ref_con_subseq( &self, ) -> <Tuple<First, Unit> as TupleLike>::AsRefOutput<'_>
Get immutable references to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_mut_con_subseq(
&mut self,
) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
unsafe fn assume_init_mut_con_subseq( &mut self, ) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
Get mutable references to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn con_subseq_as_ptr(&self) -> <Tuple<First, Unit> as TupleLike>::AsPtrOutput
fn con_subseq_as_ptr(&self) -> <Tuple<First, Unit> as TupleLike>::AsPtrOutput
Get pointers to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn con_subseq_as_mut_ptr(
&mut self,
) -> <Tuple<First, Unit> as TupleLike>::AsMutPtrOutput
fn con_subseq_as_mut_ptr( &mut self, ) -> <Tuple<First, Unit> as TupleLike>::AsMutPtrOutput
Get mutable pointers to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn write_con_subseq(
&mut self,
subseq: Tuple<First, Unit>,
) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
fn write_con_subseq( &mut self, subseq: Tuple<First, Unit>, ) -> <Tuple<First, Unit> as TupleLike>::AsMutOutput<'_>
Set values to a contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_drop_con_subseq(&mut self)
unsafe fn assume_init_drop_con_subseq(&mut self)
Drop values in place for a contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§impl<First1, First2, Other1, Other2, I> UninitConSubseq<Tuple<First1, Tuple<First2, Other2>>, Used<I>> for Tuple<MaybeUninit<First1>, Other1>
Available on crate feature uninit
only.
impl<First1, First2, Other1, Other2, I> UninitConSubseq<Tuple<First1, Tuple<First2, Other2>>, Used<I>> for Tuple<MaybeUninit<First1>, Other1>
Available on crate feature
uninit
only.Source§type PartiallyInitialized = Tuple<First1, <Other1 as UninitConSubseq<Tuple<First2, Other2>, Used<I>>>::PartiallyInitialized>
type PartiallyInitialized = Tuple<First1, <Other1 as UninitConSubseq<Tuple<First2, Other2>, Used<I>>>::PartiallyInitialized>
The type of tuple consisting of elements not in the contiguous subsequence and
values of each
MaybeUninit
elements in the contiguous subsequence.Source§unsafe fn assume_init_con_subseq(self) -> Self::PartiallyInitialized
unsafe fn assume_init_con_subseq(self) -> Self::PartiallyInitialized
Extract values of a specific contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_read_con_subseq(
&self,
) -> Tuple<First1, Tuple<First2, Other2>>
unsafe fn assume_init_read_con_subseq( &self, ) -> Tuple<First1, Tuple<First2, Other2>>
Read the values of a specific contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_ref_con_subseq(
&self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsRefOutput<'_>
unsafe fn assume_init_ref_con_subseq( &self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsRefOutput<'_>
Get immutable references to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_mut_con_subseq(
&mut self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
unsafe fn assume_init_mut_con_subseq( &mut self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
Get mutable references to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn con_subseq_as_ptr(
&self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsPtrOutput
fn con_subseq_as_ptr( &self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsPtrOutput
Get pointers to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn con_subseq_as_mut_ptr(
&mut self,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutPtrOutput
fn con_subseq_as_mut_ptr( &mut self, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutPtrOutput
Get mutable pointers to values of a specific contiguous subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn write_con_subseq(
&mut self,
subseq: Tuple<First1, Tuple<First2, Other2>>,
) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
fn write_con_subseq( &mut self, subseq: Tuple<First1, Tuple<First2, Other2>>, ) -> <Tuple<First1, Tuple<First2, Other2>> as TupleLike>::AsMutOutput<'_>
Set values to a contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_drop_con_subseq(&mut self)
unsafe fn assume_init_drop_con_subseq(&mut self)
Drop values in place for a contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§impl<First, Other1, Other2, I> UninitSubseq<Tuple<First, Other2>, Used<I>> for Tuple<MaybeUninit<First>, Other1>where
Other2: TupleLike,
Other1: UninitSubseq<Other2, I>,
Available on crate feature uninit
only.
impl<First, Other1, Other2, I> UninitSubseq<Tuple<First, Other2>, Used<I>> for Tuple<MaybeUninit<First>, Other1>where
Other2: TupleLike,
Other1: UninitSubseq<Other2, I>,
Available on crate feature
uninit
only.Source§type PartiallyInitialized = Tuple<First, <Other1 as UninitSubseq<Other2, I>>::PartiallyInitialized>
type PartiallyInitialized = Tuple<First, <Other1 as UninitSubseq<Other2, I>>::PartiallyInitialized>
The type of tuple consisting of elements not in the subsequence and
values of each
MaybeUninit
elements in the subsequence.Source§unsafe fn assume_init_subseq(self) -> Self::PartiallyInitialized
unsafe fn assume_init_subseq(self) -> Self::PartiallyInitialized
Extract values of a specific subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_read_subseq(&self) -> Tuple<First, Other2>
unsafe fn assume_init_read_subseq(&self) -> Tuple<First, Other2>
Read the values of a specific subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_ref_subseq(
&self,
) -> <Tuple<First, Other2> as TupleLike>::AsRefOutput<'_>
unsafe fn assume_init_ref_subseq( &self, ) -> <Tuple<First, Other2> as TupleLike>::AsRefOutput<'_>
Get immutable references to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_mut_subseq(
&mut self,
) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
unsafe fn assume_init_mut_subseq( &mut self, ) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
Get mutable references to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn subseq_as_ptr(&self) -> <Tuple<First, Other2> as TupleLike>::AsPtrOutput
fn subseq_as_ptr(&self) -> <Tuple<First, Other2> as TupleLike>::AsPtrOutput
Get pointers to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn subseq_as_mut_ptr(
&mut self,
) -> <Tuple<First, Other2> as TupleLike>::AsMutPtrOutput
fn subseq_as_mut_ptr( &mut self, ) -> <Tuple<First, Other2> as TupleLike>::AsMutPtrOutput
Get mutable pointers to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn write_subseq(
&mut self,
subseq: Tuple<First, Other2>,
) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
fn write_subseq( &mut self, subseq: Tuple<First, Other2>, ) -> <Tuple<First, Other2> as TupleLike>::AsMutOutput<'_>
Set values to a subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_drop_subseq(&mut self)
unsafe fn assume_init_drop_subseq(&mut self)
Drop values in place for a subsequence consisting of
MaybeUninit
elements. Read moreAuto Trait Implementations§
impl<T> Freeze for Used<T>
impl<T> RefUnwindSafe for Used<T>where
T: RefUnwindSafe,
impl<T> Send for Used<T>where
T: Send,
impl<T> Sync for Used<T>where
T: Sync,
impl<T> Unpin for Used<T>where
T: Unpin,
impl<T> UnwindSafe for Used<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more