winnow::stream

Trait UpdateSlice

Source
pub trait UpdateSlice: Stream {
    // Required method
    fn update_slice(self, inner: Self::Slice) -> Self;
}
Expand description

Convert a Stream into an appropriate Output type

Required Methods§

Source

fn update_slice(self, inner: Self::Slice) -> Self

Convert an Output type to be used as Stream

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UpdateSlice for &str

Source§

fn update_slice(self, inner: Self::Slice) -> Self

Source§

impl<T> UpdateSlice for &[T]
where T: Clone + Debug,

Source§

fn update_slice(self, inner: Self::Slice) -> Self

Implementors§

Source§

impl UpdateSlice for &BStr

Source§

impl UpdateSlice for &Bytes

Source§

impl<I> UpdateSlice for LocatingSlice<I>
where I: UpdateSlice,

Source§

impl<I> UpdateSlice for Partial<I>
where I: UpdateSlice,

Source§

impl<I, E> UpdateSlice for Recoverable<I, E>
where I: Stream + UpdateSlice, E: Debug,

Available on crate features unstable-recover and std only.
Source§

impl<I, S> UpdateSlice for Stateful<I, S>
where I: UpdateSlice, S: Clone + Debug,