[−][src]Struct domain_core::rdata::rfc1035::Txt
Txt record data.
Txt records hold descriptive text.
The Txt record type is defined in RFC 1035, section 3.3.14.
Methods
impl Txt
[src]
pub fn new(text: CharStr) -> Self
[src]
Creates a new Txt record from a single character string.
ⓘImportant traits for TxtIterpub fn iter(&self) -> TxtIter
[src]
Returns an iterator over the text items.
The Txt format contains one or more length-delimited byte strings. This method returns an iterator over each of them.
pub fn text(&self) -> Bytes
[src]
Returns the text content.
If the data is only one single character string, returns a simple clone of the slice with the data. If there are several character strings, their content will be copied together into one single, newly allocated bytes value.
Access to the individual character strings is possible via iteration.
Trait Implementations
impl Compose for Txt
[src]
impl Compress for Txt
[src]
impl ParseAll for Txt
[src]
type Err = ParseOpenError
The type returned when parsing fails.
fn parse_all(parser: &mut Parser, len: usize) -> Result<Self, Self::Err>
[src]
impl RtypeRecordData for Txt
[src]
impl Scan for Txt
[src]
impl<N> From<Txt> for MasterRecordData<N>
[src]
impl<N> From<Txt> for AllRecordData<N>
[src]
impl PartialEq<Txt> for Txt
[src]
impl PartialOrd<Txt> for Txt
[src]
fn partial_cmp(&self, other: &Txt) -> Option<Ordering>
[src]
fn lt(&self, other: &Txt) -> bool
[src]
fn le(&self, other: &Txt) -> bool
[src]
fn gt(&self, other: &Txt) -> bool
[src]
fn ge(&self, other: &Txt) -> bool
[src]
impl Eq for Txt
[src]
impl Ord for Txt
[src]
fn cmp(&self, other: &Txt) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for Txt
[src]
fn clone(&self) -> Txt
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl IntoIterator for Txt
[src]
type Item = CharStr
The type of the elements being iterated over.
type IntoIter = TxtIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> IntoIterator for &'a Txt
[src]
type Item = CharStr
The type of the elements being iterated over.
type IntoIter = TxtIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Debug for Txt
[src]
impl Display for Txt
[src]
impl Hash for Txt
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> RecordData for T where
T: Compose + Compress + RtypeRecordData,
[src]
T: Compose + Compress + RtypeRecordData,
impl<T> ParseRecordData for T where
T: Compose + Compress + ParseAll + RtypeRecordData,
[src]
T: Compose + Compress + ParseAll + RtypeRecordData,
type Err = <T as ParseAll>::Err
The type of an error returned when parsing fails.
fn parse_data(
Rtype,
&mut Parser,
usize
) -> Result<Option<T>, <T as ParseRecordData>::Err>
[src]
Rtype,
&mut Parser,
usize
) -> Result<Option<T>, <T as ParseRecordData>::Err>
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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>,