pub struct Flatten<'d>(/* private fields */);Expand description
Retained input or its single admitted, cooperatively copied output.
Implementations§
Source§impl<'d> Flatten<'d>
impl<'d> Flatten<'d>
pub const fn new(source: Segments<'d>) -> Self
pub fn try_push( self, segment: Segment<'d>, ) -> Result<Self, Rejected<(Self, Segment<'d>), Error>>
Sourcepub fn try_step(
self,
budget: NonZero<usize>,
) -> Result<ControlFlow<Shared<'d>, Self>, Rejected<Self, AllocError>>
pub fn try_step( self, budget: NonZero<usize>, ) -> Result<ControlFlow<Shared<'d>, Self>, Rejected<Self, AllocError>>
Empty and single-owner bodies complete without allocating or copying.
Multi-owner bodies reserve once, then copy at most budget bytes per call.
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Flatten<'d>
impl<'d> !Send for Flatten<'d>
impl<'d> !Sync for Flatten<'d>
impl<'d> !UnwindSafe for Flatten<'d>
impl<'d> Freeze for Flatten<'d>
impl<'d> Unpin for Flatten<'d>
impl<'d> UnsafeUnpin for Flatten<'d>
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