pub struct Searched;Expand description
Helper class for Search, indicates that the current element is the one searched for.
Trait Implementations§
source§impl<First, Other> Search<First, Searched> for Tuple<First, Other>where
Other: TupleLike,
impl<First, Other> Search<First, Searched> for Tuple<First, Other>where
Other: TupleLike,
§type TakeRemainder = Other
type TakeRemainder = Other
The type of the remainder of the tuple after taking out the searched element.
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 mut_of(&mut self) -> &mut First
fn mut_of(&mut self) -> &mut First
Get a mutable reference of the searched element. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Searched
impl Send for Searched
impl Sync for Searched
impl Unpin for Searched
impl UnwindSafe for Searched
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