Trait nom8::input::InputIsStreaming
source · pub trait InputIsStreaming<const YES: bool>: Sized {
type Complete: InputIsStreaming<false>;
type Streaming: InputIsStreaming<true>;
// Required methods
fn into_complete(self) -> Self::Complete;
fn into_streaming(self) -> Self::Streaming;
}
Expand description
Marks the input as being the complete buffer or a partial buffer for streaming input
See Streaming for marking a presumed complete buffer type as a streaming buffer.
Required Associated Types§
sourcetype Complete: InputIsStreaming<false>
type Complete: InputIsStreaming<false>
Complete counterpart
- Set to
Self
if this is a complete buffer. - Set to
std::convert::Infallible
if there isn’t an associated complete buffer type
sourcetype Streaming: InputIsStreaming<true>
type Streaming: InputIsStreaming<true>
Streaming counterpart
- Set to
Self
if this is a streaming buffer. - Set to
std::convert::Infallible
if there isn’t an associated streaming buffer type
Required Methods§
sourcefn into_complete(self) -> Self::Complete
fn into_complete(self) -> Self::Complete
Convert to complete counterpart
sourcefn into_streaming(self) -> Self::Streaming
fn into_streaming(self) -> Self::Streaming
Convert to streaming counterpart