#[repr(transparent)]pub struct Unsplit<P>(pub P);Expand description
Marker for values that should live in the opposite half of a Split.
To be used in Split<Unsplit<P>, ()> and Split<(), Unsplit<P>>
to mark processors requiring no state and no configuration respectively.
Most users will not construct this directly and should prefer
Split::stateless and Split::stateful.
Tuple Fields§
§0: PTrait Implementations§
impl<P: Copy> Copy for Unsplit<P>
Auto Trait Implementations§
impl<P> Freeze for Unsplit<P>where
P: Freeze,
impl<P> RefUnwindSafe for Unsplit<P>where
P: RefUnwindSafe,
impl<P> Send for Unsplit<P>where
P: Send,
impl<P> Sync for Unsplit<P>where
P: Sync,
impl<P> Unpin for Unsplit<P>where
P: Unpin,
impl<P> UnsafeUnpin for Unsplit<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Unsplit<P>where
P: 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