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§
Sourcefn no_eof(self) -> PResult<T>
fn no_eof(self) -> PResult<T>
Turns ParseError::EOF into ParseError::UnexpectedEOF
Sourcefn is_eof(&self) -> bool
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".