Struct url::percent_encoding::EncodeSet [] [src]

pub struct EncodeSet {
    // some fields omitted
}

Represents a set of characters / bytes that should be percent-encoded.

See encode sets specification.

Different characters need to be encoded in different parts of an URL. For example, a literal ? question mark in an URL’s path would indicate the start of the query string. A question mark meant to be part of the path therefore needs to be percent-encoded. In the query string however, a question mark does not have any special meaning and does not need to be percent-encoded.

Since the implementation details of EncodeSet are private, the set of available encode sets is not extensible beyond the ones provided here. If you need a different encode set, please file a bug explaining the use case.

Trait Implementations

Derived Implementations

impl Clone for EncodeSet

fn clone(&self) -> EncodeSet

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for EncodeSet