[−][src]Enum mail_headers::data::InnerUtf8
InnerUtf8 is string data container which can contain either a
owned String
or a str
reference into a shared
string buffer.
Variants
Owned(String)
Methods
impl InnerUtf8
[src]
pub fn into_shared(self) -> Self
[src]
converts this container into on which uses underlying shared data
if the data is already shared nothing is done.
If not the owned data is converted into the underlying string buffer
and OwningRef
is used to enable the shared reference
impl InnerUtf8
[src]
impl InnerUtf8
[src]
Trait Implementations
impl From<String> for InnerUtf8
[src]
impl Eq for InnerUtf8
[src]
impl Into<String> for InnerUtf8
[src]
impl AsRef<str> for InnerUtf8
[src]
impl PartialEq<InnerUtf8> for InnerUtf8
[src]
fn eq(&self, other: &InnerUtf8) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for InnerUtf8
[src]
fn clone(&self) -> InnerUtf8
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for InnerUtf8
[src]
impl Hash for InnerUtf8
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Deref for InnerUtf8
[src]
impl Serialize for InnerUtf8
[src]
impl<'de> Deserialize<'de> for InnerUtf8
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,