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

Represents parsing is done and succeeded completely.

Represents parsing is not done but valid.

Methods

impl<T> Status<T>
[src]

[src]

Unwraps a status if Complete(v).

[src]

Returns true if the status is a Complete.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Status<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Status<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl<T> Send for Status<T> where
    T: Send

impl<T> Sync for Status<T> where
    T: Sync