Trait rdftk_iri::ValidateStr[][src]

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

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

fn is_valid(s: &str) -> bool[src]

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

Loading content...

Implementors

Loading content...