Enum rustful::context::UriPath [] [src]

pub enum UriPath {
    Path(MaybeUtf8Owned),
    Asterisk,
}

A URI Path that can be a path or an asterisk (*).

The URI Path may be an invalid UTF-8 path and it is therefore represented as a percent decoded byte vector, but can easily be parsed as a string.

Variants

A path URI.

An asterisk (*) URI.

Methods

impl UriPath
[src]

Borrow the URI as a raw path.

Borrow the URI as a UTF-8 path, if valid.

Borrow the URI as a UTF-8 path, if valid, or convert it to a valid UTF-8 string.

Check if the URI is a path.

Check if the URI is an asterisk (*).

Trait Implementations

impl Clone for UriPath
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for UriPath
[src]

Formats the value using the given formatter. Read more

impl PartialEq for UriPath
[src]

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

This method tests for !=.

impl Eq for UriPath
[src]

impl Display for UriPath
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for UriPath

impl Sync for UriPath