[−][src]Struct yew_router::matcher::RouteMatcher
Attempts to match routes, transform the route to Component props and render that Component.
Fields
tokens: Vec<MatcherToken>
Tokens used to determine how the matcher will match a route string.
settings: MatcherSettings
Settings
Implementations
impl RouteMatcher
[src]
pub fn try_from(i: &str) -> Result<Self, PrettyParseError>
[src]
Attempt to create a RouteMatcher from a "matcher string".
pub fn new(i: &str, settings: MatcherSettings) -> Result<Self, PrettyParseError>
[src]
Creates a new Matcher with settings.
pub fn capture_route_into_map<'a, 'b: 'a>(
&'b self,
i: &'a str
) -> IResult<&'a str, Captures<'a>>
[src]
&'b self,
i: &'a str
) -> IResult<&'a str, Captures<'a>>
Match a route string, collecting the results into a map.
pub fn capture_route_into_vec<'a, 'b: 'a>(
&'b self,
i: &'a str
) -> IResult<&'a str, Vec<String>>
[src]
&'b self,
i: &'a str
) -> IResult<&'a str, Vec<String>>
Match a route string, collecting the results into a vector.
pub fn capture_names(&self) -> HashSet<&str>
[src]
Gets a set of all names that will be captured. This is useful in determining if a given struct will be able to be populated by a given path matcher before being given a concrete path to match.
Trait Implementations
impl Clone for RouteMatcher
[src]
fn clone(&self) -> RouteMatcher
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RouteMatcher
[src]
impl PartialEq<RouteMatcher> for RouteMatcher
[src]
fn eq(&self, other: &RouteMatcher) -> bool
[src]
fn ne(&self, other: &RouteMatcher) -> bool
[src]
impl StructuralPartialEq for RouteMatcher
[src]
Auto Trait Implementations
impl RefUnwindSafe for RouteMatcher
impl Send for RouteMatcher
impl Sync for RouteMatcher
impl Unpin for RouteMatcher
impl UnwindSafe for RouteMatcher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,