pub struct Complete;
Expand description
Helper type indicates that the search has been completed.
Trait Implementations§
Source§impl ConSubseq<Unit, Complete> for Unit
impl ConSubseq<Unit, Complete> for Unit
Source§fn con_subseq(self) -> Unit
fn con_subseq(self) -> Unit
Take out a contiguous subsequence. Read more
Source§fn con_subseq_ref(&self) -> <Unit as TupleLike>::AsRefOutput<'_>
fn con_subseq_ref(&self) -> <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) -> <Unit as TupleLike>::AsMutOutput<'_>
fn con_subseq_mut(&mut self) -> <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, _: &mut Unit)
fn swap_con_subseq(&mut self, _: &mut 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<F> ConSubseqMapReplace<Unit, F, Complete> for Unit
impl<F> ConSubseqMapReplace<Unit, F, Complete> for Unit
Source§type MapReplaceOutput = Unit
type MapReplaceOutput = Unit
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) -> Self::MapReplaceOutput
fn map_replace_con_subseq(self, _: F) -> Self::MapReplaceOutput
Replace elements of specific contiguous subsequence with another sequence
that may be of different element types. Read more
Source§impl<First, Other> Search<First, Complete> for Tuple<First, Other>where
Other: TupleLike,
impl<First, Other> Search<First, Complete> for Tuple<First, Other>where
Other: TupleLike,
Source§type TakeRemainder = Other
type TakeRemainder = Other
The type of the remainder of the tuple after taking out the searched element.
Source§type MapReplaceOutput<U> = Tuple<U, Other>
type MapReplaceOutput<U> = Tuple<U, Other>
The type of tuple that replace one element to another value that may be of a different type.
Source§fn take(self) -> (First, Self::TakeRemainder)
fn take(self) -> (First, Self::TakeRemainder)
Take out the searched element, and get the remainder of tuple. Read more
Source§fn get_mut(&mut self) -> &mut First
fn get_mut(&mut self) -> &mut First
Get a mutable reference of the searched element. Read more
Source§fn map_replace<U, F>(self, f: F) -> Self::MapReplaceOutput<U>where
F: FnOnce(First) -> U,
fn map_replace<U, F>(self, f: F) -> Self::MapReplaceOutput<U>where
F: FnOnce(First) -> U,
Replace a specific element with another value that may be of a different type. Read more
Source§impl Subseq<Unit, Complete> for Unit
impl Subseq<Unit, Complete> for Unit
Source§fn subseq_ref(&self) -> <Unit as TupleLike>::AsRefOutput<'_>
fn subseq_ref(&self) -> <Unit as TupleLike>::AsRefOutput<'_>
Source§fn subseq_mut(&mut self) -> <Unit as TupleLike>::AsMutOutput<'_>
fn subseq_mut(&mut self) -> <Unit as TupleLike>::AsMutOutput<'_>
Source§fn swap_subseq(&mut self, _: &mut Unit)
fn swap_subseq(&mut self, _: &mut Unit)
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<F> SubseqMapReplace<Unit, F, Complete> for Unit
impl<F> SubseqMapReplace<Unit, F, Complete> for Unit
Source§type MapReplaceOutput = Unit
type MapReplaceOutput = Unit
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) -> Self::MapReplaceOutput
fn map_replace_subseq(self, _: F) -> Self::MapReplaceOutput
Replace elements of specific subsequence with another sequence
that may be of different element types. Read more
Source§impl UninitConSubseq<Unit, Complete> for Unit
Available on crate feature uninit
only.
impl UninitConSubseq<Unit, Complete> for Unit
Available on crate feature
uninit
only.Source§type PartiallyInitialized = Unit
type PartiallyInitialized = Unit
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) -> Unit
unsafe fn assume_init_read_con_subseq(&self) -> Unit
Read the values of a specific contiguous subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_ref_con_subseq(
&self,
) -> <Unit as TupleLike>::AsRefOutput<'_>
unsafe fn assume_init_ref_con_subseq( &self, ) -> <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,
) -> <Unit as TupleLike>::AsMutOutput<'_>
unsafe fn assume_init_mut_con_subseq( &mut self, ) -> <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) -> <Unit as TupleLike>::AsPtrOutput
fn con_subseq_as_ptr(&self) -> <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) -> <Unit as TupleLike>::AsMutPtrOutput
fn con_subseq_as_mut_ptr(&mut self) -> <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, _: Unit) -> <Unit as TupleLike>::AsMutOutput<'_>
fn write_con_subseq(&mut self, _: Unit) -> <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 UninitSubseq<Unit, Complete> for Unit
Available on crate feature uninit
only.
impl UninitSubseq<Unit, Complete> for Unit
Available on crate feature
uninit
only.Source§type PartiallyInitialized = Unit
type PartiallyInitialized = Unit
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) -> Unit
unsafe fn assume_init_read_subseq(&self) -> Unit
Read the values of a specific subsequence consisting of
MaybeUninit
elements. Read moreSource§unsafe fn assume_init_ref_subseq(&self) -> <Unit as TupleLike>::AsRefOutput<'_>
unsafe fn assume_init_ref_subseq(&self) -> <Unit 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,
) -> <Unit as TupleLike>::AsMutOutput<'_>
unsafe fn assume_init_mut_subseq( &mut self, ) -> <Unit as TupleLike>::AsMutOutput<'_>
Get mutable references to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn subseq_as_ptr(&self) -> <Unit as TupleLike>::AsPtrOutput
fn subseq_as_ptr(&self) -> <Unit as TupleLike>::AsPtrOutput
Get pointers to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn subseq_as_mut_ptr(&mut self) -> <Unit as TupleLike>::AsMutPtrOutput
fn subseq_as_mut_ptr(&mut self) -> <Unit as TupleLike>::AsMutPtrOutput
Get mutable pointers to values of a specific subsequence
consisting of
MaybeUninit
elements. Read moreSource§fn write_subseq(&mut self, _: Unit) -> <Unit as TupleLike>::AsMutOutput<'_>
fn write_subseq(&mut self, _: Unit) -> <Unit 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 Freeze for Complete
impl RefUnwindSafe for Complete
impl Send for Complete
impl Sync for Complete
impl Unpin for Complete
impl UnwindSafe for Complete
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
Source§impl<T, U> TailReplaceable<T, Complete> for Uwhere
T: TupleLenEqTo<U>,
U: TupleLike,
impl<T, U> TailReplaceable<T, Complete> for Uwhere
T: TupleLenEqTo<U>,
U: TupleLike,
Source§type ReplaceOutput = T
type ReplaceOutput = T
The type of the tuple after replacing its elements.
Source§fn replace_tail(
self,
rhs: T,
) -> (<U as TailReplaceable<T, Complete>>::ReplaceOutput, <U as TailReplaceable<T, Complete>>::Replaced)
fn replace_tail( self, rhs: T, ) -> (<U as TailReplaceable<T, Complete>>::ReplaceOutput, <U as TailReplaceable<T, Complete>>::Replaced)
Replace the last N elements of the tuple with all elements of another tuple of N elements. Read more