pub trait Unspecified: Sized {
// Required method
fn is_unspecified(&self) -> bool;
// Provided method
fn filter_unspecified(self) -> Option<Self> { ... }
}Expand description
A trait to determine if the value is left unspecified, usually containing the default value.
See: https://en.wikipedia.org/wiki/IPv6_address#Unspecified_address
Required Methods§
Sourcefn is_unspecified(&self) -> bool
fn is_unspecified(&self) -> bool
Returns true if the value is unspecified
Provided Methods§
Sourcefn filter_unspecified(self) -> Option<Self>
fn filter_unspecified(self) -> Option<Self>
Coerce a potentially unspecified value into an Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.