File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use r2c2_statement::Iri;
4
4
use regex:: Regex ;
5
5
6
6
/// Extension trait for [`Iri`] providing validation methods.
7
- pub trait IriValid < ' a > {
7
+ pub trait IriValidation < ' a > {
8
8
/// Return a new [`Iri`] if the argument is a valid IRI, otherwise None.
9
9
#[ allow( clippy:: new_ret_no_self) ]
10
10
fn new ( txt : impl Into < Cow < ' a , str > > ) -> Option < Iri < ' a > > ;
@@ -16,7 +16,7 @@ pub trait IriValid<'a> {
16
16
fn debug_assert_is_valid ( & self ) ;
17
17
}
18
18
19
- impl < ' a > IriValid < ' a > for Iri < ' a > {
19
+ impl < ' a > IriValidation < ' a > for Iri < ' a > {
20
20
fn new ( txt : impl Into < Cow < ' a , str > > ) -> Option < Self > {
21
21
let inner = txt. into ( ) ;
22
22
IRI_REGEX
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use r2c2_statement::LangTag;
4
4
use regex:: Regex ;
5
5
6
6
/// Extension trait for [`LangTag`] providing validation methods.
7
- pub trait LangTagValid < ' a > {
7
+ pub trait LangTagValidation < ' a > {
8
8
/// Return a new [`LangTag`] if the argument is a valid IRI, otherwise None.
9
9
#[ allow( clippy:: new_ret_no_self) ]
10
10
fn new ( txt : impl Into < Cow < ' a , str > > ) -> Option < LangTag < ' a > > ;
@@ -16,7 +16,7 @@ pub trait LangTagValid<'a> {
16
16
fn debug_assert_is_valid ( & self ) ;
17
17
}
18
18
19
- impl < ' a > LangTagValid < ' a > for LangTag < ' a > {
19
+ impl < ' a > LangTagValidation < ' a > for LangTag < ' a > {
20
20
fn new ( txt : impl Into < Cow < ' a , str > > ) -> Option < Self > {
21
21
let inner = txt. into ( ) ;
22
22
TAG_REGEX
You can’t perform that action at this time.
0 commit comments