Trait StreamIsPartial
trait StreamIsPartial: Sized
Marks the input as being the complete buffer or a partial buffer for streaming input
See Partial for marking a presumed complete buffer type as a streaming buffer.
Associated Types
type PartialStateWhether the stream is currently partial or complete
Required Methods
fn complete(self: &mut Self) -> <Self as >::PartialStateMark the stream is complete
fn restore_partial(self: &mut Self, state: <Self as >::PartialState)Restore the stream back to its previous state
fn is_partial_supported() -> boolReport whether the
Streamis can ever be incomplete
Provided Methods
fn is_partial(self: &Self) -> boolReport whether the
Streamis currently incomplete
Implementors
impl<I> StreamIsPartial for (I, usize)impl<I> StreamIsPartial for Partial<I>impl<'t, T> StreamIsPartial for TokenSlice<'t, T>impl StreamIsPartial for &Bytesimpl<I, S> StreamIsPartial for Stateful<I, S>impl<I> StreamIsPartial for LocatingSlice<I>impl StreamIsPartial for &BStrimpl StreamIsPartial for &strimpl<T> StreamIsPartial for &[T]