devela::_dep::winnow::stream

Trait UpdateSlice

pub trait UpdateSlice: Stream {
    // Required method
    fn update_slice(self, inner: Self::Slice) -> Self;
}
Available on crate feature dep_winnow only.
Expand description

Convert a Stream into an appropriate Output type

Required Methods§

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§

§

impl UpdateSlice for &str

§

fn update_slice(self, inner: <&str as Stream>::Slice) -> &str

§

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

§

fn update_slice(self, inner: <&[T] as Stream>::Slice) -> &[T]

Implementors§

§

impl UpdateSlice for &BStr

§

impl UpdateSlice for &Bytes

§

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

§

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

§

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