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§
source§impl<'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§
source§impl<'a> Clone for CharacterString<'a>
impl<'a> Clone for CharacterString<'a>
source§fn clone(&self) -> CharacterString<'a>
fn clone(&self) -> CharacterString<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for CharacterString<'a>
impl<'a> Debug for CharacterString<'a>
source§impl<'a> Display for CharacterString<'a>
impl<'a> Display for CharacterString<'a>
source§impl<'a> From<CharacterString<'a>> for X25<'a>
impl<'a> From<CharacterString<'a>> for X25<'a>
source§fn from(value: CharacterString<'a>) -> Self
fn from(value: CharacterString<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for CharacterString<'a>
impl<'a> Hash for CharacterString<'a>
source§impl<'a> PartialEq<CharacterString<'a>> for CharacterString<'a>
impl<'a> PartialEq<CharacterString<'a>> for CharacterString<'a>
source§fn 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 ==.