Struct simple_dns::CharacterString
source · [−]pub struct CharacterString<'a> { /* private fields */ }
Expand description
CharacterString is expressed in one or two ways:
- as a contiguous set of characters without interior spaces,
- or as a string beginning with a “ and ending with a “.
Inside a “ delimited string any character can occur, except for a “ itself,
which must be quoted using \ (back slash).
Implementations
sourceimpl<'a> CharacterString<'a>
impl<'a> CharacterString<'a>
sourcepub fn into_owned<'b>(self) -> CharacterString<'b>
pub fn into_owned<'b>(self) -> CharacterString<'b>
Transforms the inner data into it’s owned type
Trait Implementations
sourceimpl<'a> Clone for CharacterString<'a>
impl<'a> Clone for CharacterString<'a>
sourcefn clone(&self) -> CharacterString<'a>
fn clone(&self) -> CharacterString<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CharacterString<'a>
impl<'a> Debug for CharacterString<'a>
sourceimpl<'a> Display for CharacterString<'a>
impl<'a> Display for CharacterString<'a>
sourceimpl<'a> Hash for CharacterString<'a>
impl<'a> Hash for CharacterString<'a>
sourceimpl<'a> PartialEq<CharacterString<'a>> for CharacterString<'a>
impl<'a> PartialEq<CharacterString<'a>> for CharacterString<'a>
sourcefn eq(&self, other: &CharacterString<'a>) -> bool
fn eq(&self, other: &CharacterString<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CharacterString<'a>) -> bool
fn ne(&self, other: &CharacterString<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> TryFrom<&'a str> for CharacterString<'a>
impl<'a> TryFrom<&'a str> for CharacterString<'a>
sourceimpl<'a> TryFrom<String> for CharacterString<'a>
impl<'a> TryFrom<String> for CharacterString<'a>
impl<'a> Eq for CharacterString<'a>
impl<'a> StructuralEq for CharacterString<'a>
impl<'a> StructuralPartialEq for CharacterString<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CharacterString<'a>
impl<'a> Send for CharacterString<'a>
impl<'a> Sync for CharacterString<'a>
impl<'a> Unpin for CharacterString<'a>
impl<'a> UnwindSafe for CharacterString<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more