pub(crate) struct Component<R: RegExp> {
pub pattern_string: String,
pub regexp: Result<R, Error>,
pub group_name_list: Vec<String>,
pub matcher: Matcher<R>,
pub has_regexp_group: bool,
}
Fields§
§pattern_string: String
§regexp: Result<R, Error>
§group_name_list: Vec<String>
§matcher: Matcher<R>
§has_regexp_group: bool
Implementations§
Source§impl<R: RegExp> Component<R>
impl<R: RegExp> Component<R>
pub(crate) fn compile<F>( input: Option<&str>, encoding_callback: F, options: Options, ) -> Result<Self, Error>
pub(crate) fn protocol_component_matches_special_scheme(&self) -> bool
pub(crate) fn create_match_result( &self, input: String, exec_result: Vec<Option<&str>>, ) -> UrlPatternComponentResult
pub(crate) fn optionally_transpose_regex_error( self, do_transpose: bool, ) -> Result<Self, Error>
Trait Implementations§
Source§impl From<Component<EcmaRegexp>> for UrlPatternComponent
impl From<Component<EcmaRegexp>> for UrlPatternComponent
Source§fn from(component: Component<EcmaRegexp>) -> Self
fn from(component: Component<EcmaRegexp>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for Component<R>where
R: Freeze,
impl<R> RefUnwindSafe for Component<R>where
R: RefUnwindSafe,
impl<R> Send for Component<R>where
R: Send,
impl<R> Sync for Component<R>where
R: Sync,
impl<R> Unpin for Component<R>where
R: Unpin,
impl<R> UnwindSafe for Component<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more