#[repr(transparent)]pub struct Encode<T> {
pub inner: T,
}
Expand description
string
which is to be encoded.
This is an auto-generated wrapper over T
Fields§
§inner: T
Inner value
Implementations§
Trait Implementations§
Source§impl<T> StringExtT for Encode<T>where
T: StringT,
impl<T> StringExtT for Encode<T>where
T: StringT,
Source§fn with_prefix<P: StringExtT + Copy>(self, prefix: P) -> impl StringExtT
fn with_prefix<P: StringExtT + Copy>(self, prefix: P) -> impl StringExtT
With prefix.
Source§fn with_suffix<S: StringExtT + Copy>(self, suffix: S) -> impl StringExtT
fn with_suffix<S: StringExtT + Copy>(self, suffix: S) -> impl StringExtT
With suffix.
Source§fn to_string_ext(self) -> String
fn to_string_ext(self) -> String
Encode the value to the string.
Source§fn to_string_ext_with_separator(self, separator: &str) -> String
fn to_string_ext_with_separator(self, separator: &str) -> String
Encode the value(s) to the string with separator.
Source§fn to_http_header_value(self) -> Result<HeaderValue, InvalidHeaderValue>
fn to_http_header_value(self) -> Result<HeaderValue, InvalidHeaderValue>
Encode the value to the string as a HTTP header value.
Source§impl<T> StringT for Encode<T>where
T: StringT,
impl<T> StringT for Encode<T>where
T: StringT,
Source§fn encode_to_buf(self, string: &mut Vec<u8>)
fn encode_to_buf(self, string: &mut Vec<u8>)
Push the value to the string (the underlying
Vec<u8>
).Source§fn encode_to_buf_with_separator(self, string: &mut Vec<u8>, separator: &str)
fn encode_to_buf_with_separator(self, string: &mut Vec<u8>, separator: &str)
Push the value to the string (the underlying
Vec<u8>
) with a
separator. Read moreSource§fn encode_to_bytes_buf(self, string: &mut BytesMut)
fn encode_to_bytes_buf(self, string: &mut BytesMut)
Push the value to the string (the underlying
bytes::BytesMut
).Auto Trait Implementations§
impl<T> Freeze for Encode<T>where
T: Freeze,
impl<T> RefUnwindSafe for Encode<T>where
T: RefUnwindSafe,
impl<T> Send for Encode<T>where
T: Send,
impl<T> Sync for Encode<T>where
T: Sync,
impl<T> Unpin for Encode<T>where
T: Unpin,
impl<T> UnwindSafe for Encode<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more