[−][src]Struct envoy_sdk::host::ByteString
Represents a string value that is not necessarily UTF-8 encoded, e.g. an HTTP header value.
Implementations
impl ByteString
[src]
pub fn new() -> ByteString
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn len(&self) -> usize
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn into_bytes(self) -> Vec<u8>
[src]
pub fn into_string(self) -> Result<String, FromUtf8Error>
[src]
Trait Implementations
impl AsMut<[u8]> for ByteString
[src]
impl AsRef<[u8]> for ByteString
[src]
impl Clone for ByteString
[src]
fn clone(&self) -> ByteString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ByteString
[src]
impl Default for ByteString
[src]
fn default() -> ByteString
[src]
impl Deref for ByteString
[src]
impl DerefMut for ByteString
[src]
impl Display for ByteString
[src]
impl Eq for ByteString
[src]
impl<'_> From<&'_ [u8]> for ByteString
[src]
impl<'_> From<&'_ ByteString> for ByteString
[src]
fn from(data: &ByteString) -> ByteString
[src]
impl<'_> From<&'_ str> for ByteString
[src]
fn from(text: &str) -> ByteString
[src]
impl From<String> for ByteString
[src]
fn from(text: String) -> ByteString
[src]
impl From<Vec<u8>> for ByteString
[src]
fn from(bytes: Vec<u8>) -> ByteString
[src]
impl Hash for ByteString
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_> PartialEq<&'_ [u8]> for ByteString
[src]
impl<'_> PartialEq<&'_ str> for ByteString
[src]
impl PartialEq<[u8]> for ByteString
[src]
impl PartialEq<ByteString> for ByteString
[src]
impl PartialEq<String> for ByteString
[src]
impl PartialEq<Vec<u8>> for ByteString
[src]
impl PartialEq<str> for ByteString
[src]
Auto Trait Implementations
impl RefUnwindSafe for ByteString
impl Send for ByteString
impl Sync for ByteString
impl Unpin for ByteString
impl UnwindSafe for ByteString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,