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 its 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 for CharacterString<'a>
impl<'a> PartialEq 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 ==
.source§impl<'a> TryFrom<&'a str> for CharacterString<'a>
impl<'a> TryFrom<&'a str> for CharacterString<'a>
source§impl<'a> TryFrom<CharacterString<'a>> for String
impl<'a> TryFrom<CharacterString<'a>> for String
§type Error = SimpleDnsError
type Error = SimpleDnsError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<String> for CharacterString<'a>
impl<'a> TryFrom<String> for CharacterString<'a>
impl<'a> Eq 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§
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