Complete

Struct Complete 

Source
pub struct Complete;
Expand description

Helper type indicates that the search has been completed.

Trait Implementations§

Source§

impl ConSubseq<Unit, Complete> for Unit

Source§

fn con_subseq(self) -> Unit

Take out a contiguous subsequence. Read more
Source§

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 more
Source§

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 more
Source§

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

Replace elements with a contiguous subsequence. Read more
Source§

impl<F> ConSubseqMapReplace<Unit, F, Complete> for Unit

Source§

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

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,

Source§

type TakeRemainder = Other

The type of the remainder of the tuple after taking out the searched element.
Source§

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)

Take out the searched element, and get the remainder of tuple. Read more
Source§

fn get_ref(&self) -> &First

Get an immutable reference of the searched element. Read more
Source§

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,

Replace a specific element with another value that may be of a different type. Read more
Source§

fn swap(&mut self, value: &mut T)

Swap a specific element of the same type with another value. Read more
Source§

fn replace(&mut self, value: T) -> T

Replace a specific element of the same type with another value. Read more
Source§

impl Subseq<Unit, Complete> for Unit

Source§

fn subseq(self) -> Unit

Take out a subsequence. Read more
Source§

fn subseq_ref(&self) -> <Unit as TupleLike>::AsRefOutput<'_>

Similar to subseq(), but all its elements are immutable references to the supersequence’s elements. Read more
Source§

fn subseq_mut(&mut self) -> <Unit as TupleLike>::AsMutOutput<'_>

Similar to subseq(), but all its elements are mutable references to the supersequence’s elements. Read more
Source§

fn swap_subseq(&mut self, _: &mut Unit)

Swap elements with a subsequence. Read more
Source§

fn replace_subseq(&mut self, subseq: Seq) -> Seq

Replace elements with a subsequence. Read more
Source§

impl<F> SubseqMapReplace<Unit, F, Complete> for Unit

Source§

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

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.
Source§

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

Extract values of a specific contiguous subsequence consisting of MaybeUninit elements. Read more
Source§

unsafe fn assume_init_read_con_subseq(&self) -> Unit

Read the values of a specific contiguous subsequence consisting of MaybeUninit elements. Read more
Source§

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 more
Source§

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 more
Source§

fn con_subseq_as_ptr(&self) -> <Unit as TupleLike>::AsPtrOutput

Get pointers to values of a specific contiguous subsequence consisting of MaybeUninit elements. Read more
Source§

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 more
Source§

fn write_con_subseq(&mut self, _: Unit) -> <Unit as TupleLike>::AsMutOutput<'_>

Set values to a contiguous subsequence consisting of MaybeUninit elements. Read more
Source§

unsafe fn assume_init_drop_con_subseq(&mut self)

Drop values in place for a contiguous subsequence consisting of MaybeUninit elements. Read more
Source§

impl UninitSubseq<Unit, Complete> for Unit

Available on crate feature uninit only.
Source§

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

Extract values of a specific subsequence consisting of MaybeUninit elements. Read more
Source§

unsafe fn assume_init_read_subseq(&self) -> Unit

Read the values of a specific subsequence consisting of MaybeUninit elements. Read more
Source§

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 more
Source§

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 more
Source§

fn subseq_as_ptr(&self) -> <Unit as TupleLike>::AsPtrOutput

Get pointers to values of a specific subsequence consisting of MaybeUninit elements. Read more
Source§

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 more
Source§

fn write_subseq(&mut self, _: Unit) -> <Unit as TupleLike>::AsMutOutput<'_>

Set values to a subsequence consisting of MaybeUninit elements. Read more
Source§

unsafe fn assume_init_drop_subseq(&mut self)

Drop values in place for a subsequence consisting of MaybeUninit elements. Read more

Auto Trait Implementations§

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> 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, U> TailReplaceable<T, Complete> for U
where T: TupleLenEqTo<U>, U: TupleLike,

Source§

type ReplaceOutput = T

The type of the tuple after replacing its elements.
Source§

type Replaced = U

The type of the tuple that collect all replaced elements.
Source§

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
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.