pub trait ValidateUrl {
// Required method
fn as_url_string(&self) -> Option<Cow<'_, str>>;
// Provided method
fn validate_url(&self) -> bool { ... }
}Expand description
Validates whether the string given is a url
Required Methods§
fn as_url_string(&self) -> Option<Cow<'_, str>>
Provided Methods§
fn validate_url(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".