Skip to main content

PResultExt

Trait PResultExt 

Source
pub trait PResultExt<T> {
    // Required methods
    fn no_eof(self) -> PResult<T>;
    fn allow_eof(self) -> PResult<Option<T>>;
    fn is_eof(&self) -> bool;
}

Required Methods§

Source

fn no_eof(self) -> PResult<T>

Source

fn allow_eof(self) -> PResult<Option<T>>

Source

fn is_eof(&self) -> bool

Returns whether this is Err containing ParseError::EOF

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> PResultExt<T> for PResult<T>