pub struct NextJsInterceptingRoutePattern(/* private fields */);Expand description
Validated Next.js intercepting route pattern metadata.
Implementations§
Source§impl NextJsInterceptingRoutePattern
impl NextJsInterceptingRoutePattern
Sourcepub fn new(
input: &str,
) -> Result<NextJsInterceptingRoutePattern, NextJsRouteError>
pub fn new( input: &str, ) -> Result<NextJsInterceptingRoutePattern, NextJsRouteError>
Creates Next.js intercepting route pattern metadata.
§Errors
Returns NextJsRouteError when input is empty or is not ASCII-safe intercepting route text.
Trait Implementations§
Source§impl Clone for NextJsInterceptingRoutePattern
impl Clone for NextJsInterceptingRoutePattern
Source§fn clone(&self) -> NextJsInterceptingRoutePattern
fn clone(&self) -> NextJsInterceptingRoutePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromStr for NextJsInterceptingRoutePattern
impl FromStr for NextJsInterceptingRoutePattern
Source§type Err = NextJsRouteError
type Err = NextJsRouteError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<NextJsInterceptingRoutePattern, <NextJsInterceptingRoutePattern as FromStr>::Err>
fn from_str( input: &str, ) -> Result<NextJsInterceptingRoutePattern, <NextJsInterceptingRoutePattern as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for NextJsInterceptingRoutePattern
impl Ord for NextJsInterceptingRoutePattern
Source§fn cmp(&self, other: &NextJsInterceptingRoutePattern) -> Ordering
fn cmp(&self, other: &NextJsInterceptingRoutePattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NextJsInterceptingRoutePattern
impl PartialEq for NextJsInterceptingRoutePattern
Source§fn eq(&self, other: &NextJsInterceptingRoutePattern) -> bool
fn eq(&self, other: &NextJsInterceptingRoutePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NextJsInterceptingRoutePattern
impl PartialOrd for NextJsInterceptingRoutePattern
Source§impl TryFrom<&str> for NextJsInterceptingRoutePattern
impl TryFrom<&str> for NextJsInterceptingRoutePattern
Source§type Error = NextJsRouteError
type Error = NextJsRouteError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<NextJsInterceptingRoutePattern, <NextJsInterceptingRoutePattern as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<NextJsInterceptingRoutePattern, <NextJsInterceptingRoutePattern as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for NextJsInterceptingRoutePattern
impl StructuralPartialEq for NextJsInterceptingRoutePattern
Auto Trait Implementations§
impl Freeze for NextJsInterceptingRoutePattern
impl RefUnwindSafe for NextJsInterceptingRoutePattern
impl Send for NextJsInterceptingRoutePattern
impl Sync for NextJsInterceptingRoutePattern
impl Unpin for NextJsInterceptingRoutePattern
impl UnsafeUnpin for NextJsInterceptingRoutePattern
impl UnwindSafe for NextJsInterceptingRoutePattern
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