Trait rdftk_iri::PercentEncoding[][src]

pub trait PercentEncoding {
    fn encode(&self, for_uri: bool) -> Self
    where
        Self: Sized
; }
Expand description

Encode the corresponding type using percent-encoding rules.

Required methods

Construct a new value that has been percent encoded. If for_uri is true this method will also encode all non-ascii characters as a sequence of UTF-8 octets in percent encoded form.

Implementors