Struct urlencoding::Encoded [−][src]
#[repr(transparent)]pub struct Encoded<Str>(pub Str);
Expand description
Wrapper type that implements Display. Encodes on the fly, without allocating.
Percent-encodes every byte except alphanumerics and -, _, ., ~. Assumes UTF-8 encoding.
use urlencoding::Encoded; format!("{}", Encoded("hello!"));
Implementations
Long way of writing Encoded(data)
Takes any string-like type or a slice of bytes, either owned or borrowed.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<Str> RefUnwindSafe for Encoded<Str> where
Str: RefUnwindSafe, impl<Str> UnwindSafe for Encoded<Str> where
Str: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more