Skip to main content

TryParseIp

Trait TryParseIp 

Source
pub trait TryParseIp {
    // Required method
    fn try_parse_ip(&self) -> Option<RData>;
}
Expand description

Types of this trait will can be attempted for conversion to an IP address

Required Methods§

Source

fn try_parse_ip(&self) -> Option<RData>

Attempts to parse self into an RData::A or RData::AAAA, None is returned if not possible

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TryParseIp for String

Source§

impl TryParseIp for str

Source§

impl<'a, T> TryParseIp for &'a T
where T: TryParseIp + ?Sized,

Implementors§