Trait rdftk_iri::ValidateStr[][src]

pub trait ValidateStr: FromStr {
    fn is_valid(s: &str) -> bool { ... }
}
Expand description

This trait is implemented by most components to provide a way to determine whether a string value is valid. It can be assumed that the action is less expensive than performing the FromStr conversion and checking it’s result.

Provided methods

Return true if the string is a valid representation of Self, else false.

Implementors