Enum thhp::Status
[−]
[src]
pub enum Status<T> { Complete(T), Incomplete, }
A variants of parsing status.
Complete
is used when done and succeeded.
Incomplete
is used when valid but parsing ended prematurely.
Variants
Complete(T)
Represents parsing is done and succeeded completely.
Incomplete
Represents parsing is not done but valid.
Methods
impl<T> Status<T>
[src]
pub fn unwrap(self) -> T
[src]
Unwraps a status if Complete(v)
.
pub fn is_complete(&self) -> bool
[src]
Returns true
if the status is a Complete
.
pub fn is_incomplete(&self) -> bool
[src]
Returns true
if the status is a Incomplete
.
Trait Implementations
impl<T: Copy> Copy for Status<T>
[src]
impl<T: Clone> Clone for Status<T>
[src]
fn clone(&self) -> Status<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Status<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more