Struct domain::rdata::rfc1035::Ptr [−][src]
pub struct Ptr<N: DName> { /* fields omitted */ }
Methods
impl<N: DName> Ptr<N>
[src]
impl<N: DName> Ptr<N>
impl Ptr<DNameBuf>
[src]
impl Ptr<DNameBuf>
pub fn scan<S: Scanner>(
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self>
[src]
pub fn scan<S: Scanner>(
scanner: &mut S,
origin: Option<&DNameSlice>
) -> ScanResult<Self>
Trait Implementations
impl<N: Clone + DName> Clone for Ptr<N>
[src]
impl<N: Clone + DName> Clone for Ptr<N>
fn clone(&self) -> Ptr<N>
[src]
fn clone(&self) -> Ptr<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<N: Debug + DName> Debug for Ptr<N>
[src]
impl<N: Debug + DName> Debug for Ptr<N>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N: Eq + DName> Eq for Ptr<N>
[src]
impl<N: Eq + DName> Eq for Ptr<N>
impl<N: Ord + DName> Ord for Ptr<N>
[src]
impl<N: Ord + DName> Ord for Ptr<N>
fn cmp(&self, other: &Ptr<N>) -> Ordering
[src]
fn cmp(&self, other: &Ptr<N>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<N: PartialEq + DName> PartialEq for Ptr<N>
[src]
impl<N: PartialEq + DName> PartialEq for Ptr<N>
fn eq(&self, other: &Ptr<N>) -> bool
[src]
fn eq(&self, other: &Ptr<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Ptr<N>) -> bool
[src]
fn ne(&self, other: &Ptr<N>) -> bool
This method tests for !=
.
impl<N: PartialOrd + DName> PartialOrd for Ptr<N>
[src]
impl<N: PartialOrd + DName> PartialOrd for Ptr<N>
fn partial_cmp(&self, other: &Ptr<N>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Ptr<N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Ptr<N>) -> bool
[src]
fn lt(&self, other: &Ptr<N>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Ptr<N>) -> bool
[src]
fn le(&self, other: &Ptr<N>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Ptr<N>) -> bool
[src]
fn gt(&self, other: &Ptr<N>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Ptr<N>) -> bool
[src]
fn ge(&self, other: &Ptr<N>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<N: DName> RecordData for Ptr<N>
[src]
impl<N: DName> RecordData for Ptr<N>
fn rtype(&self) -> Rtype
[src]
fn rtype(&self) -> Rtype
Returns the record type for this record data instance. Read more
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
[src]
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
Appends the record data to the end of a composer.
impl<'a> ParsedRecordData<'a> for Ptr<ParsedDName<'a>>
[src]
impl<'a> ParsedRecordData<'a> for Ptr<ParsedDName<'a>>
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
[src]
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
Parses the record data out of a parser. Read more
impl<N: DName> From<N> for Ptr<N>
[src]
impl<N: DName> From<N> for Ptr<N>
impl<N: DName + Display> Display for Ptr<N>
[src]
impl<N: DName + Display> Display for Ptr<N>