[−][src]Enum pear::ParseResult
Variants
Done(R)
Error(ParseError<I>)
Methods
impl<I: Input, R> ParseResult<I, R>
[src]
impl<I: Input, R> ParseResult<I, R>
pub fn unwrap(self) -> R
[src]
pub fn unwrap(self) -> R
pub fn map<U, F: FnOnce(R) -> U>(self, f: F) -> Result<U, ParseError<I>>
[src]
pub fn map<U, F: FnOnce(R) -> U>(self, f: F) -> Result<U, ParseError<I>>
pub fn ok(self) -> Option<R>
[src]
pub fn ok(self) -> Option<R>
Trait Implementations
impl<I: Input, T, E: Display> From<Result<T, E>> for ParseResult<I, T>
[src]
impl<I: Input, T, E: Display> From<Result<T, E>> for ParseResult<I, T>
fn from(result: Result<T, E>) -> ParseResult<I, T>
[src]
fn from(result: Result<T, E>) -> ParseResult<I, T>
impl<I: Input, R> Into<Result<R, ParseError<I>>> for ParseResult<I, R>
[src]
impl<I: Input, R> Into<Result<R, ParseError<I>>> for ParseResult<I, R>
fn into(self) -> Result<R, ParseError<I>>
[src]
fn into(self) -> Result<R, ParseError<I>>
impl<I: Debug + Input, R: Debug> Debug for ParseResult<I, R>
[src]
impl<I: Debug + Input, R: Debug> Debug for ParseResult<I, R>
Auto Trait Implementations
impl<I, R> Send for ParseResult<I, R> where
R: Send,
<I as Input>::InSlice: Send,
<I as Input>::Slice: Send,
<I as Input>::Token: Send,
impl<I, R> Send for ParseResult<I, R> where
R: Send,
<I as Input>::InSlice: Send,
<I as Input>::Slice: Send,
<I as Input>::Token: Send,
impl<I, R> Sync for ParseResult<I, R> where
R: Sync,
<I as Input>::InSlice: Sync,
<I as Input>::Slice: Sync,
<I as Input>::Token: Sync,
impl<I, R> Sync for ParseResult<I, R> where
R: Sync,
<I as Input>::InSlice: Sync,
<I as Input>::Slice: Sync,
<I as Input>::Token: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T