Struct NextJsParallelRouteName
pub struct NextJsParallelRouteName(/* private fields */);Expand description
Validated Next.js parallel route name metadata.
Implementations§
§impl NextJsParallelRouteName
impl NextJsParallelRouteName
pub fn new(input: &str) -> Result<NextJsParallelRouteName, NextJsRouteError>
pub fn new(input: &str) -> Result<NextJsParallelRouteName, NextJsRouteError>
Creates Next.js parallel route name metadata.
§Errors
Returns NextJsRouteError when input does not start with @ and include an ASCII-safe suffix.
Trait Implementations§
§impl Clone for NextJsParallelRouteName
impl Clone for NextJsParallelRouteName
§fn clone(&self) -> NextJsParallelRouteName
fn clone(&self) -> NextJsParallelRouteName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for NextJsParallelRouteName
impl Debug for NextJsParallelRouteName
§impl Display for NextJsParallelRouteName
impl Display for NextJsParallelRouteName
§impl FromStr for NextJsParallelRouteName
impl FromStr for NextJsParallelRouteName
§type Err = NextJsRouteError
type Err = NextJsRouteError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<NextJsParallelRouteName, <NextJsParallelRouteName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<NextJsParallelRouteName, <NextJsParallelRouteName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for NextJsParallelRouteName
impl Hash for NextJsParallelRouteName
§impl Ord for NextJsParallelRouteName
impl Ord for NextJsParallelRouteName
§fn cmp(&self, other: &NextJsParallelRouteName) -> Ordering
fn cmp(&self, other: &NextJsParallelRouteName) -> Ordering
1.21.0 · 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
§impl PartialEq for NextJsParallelRouteName
impl PartialEq for NextJsParallelRouteName
§impl PartialOrd for NextJsParallelRouteName
impl PartialOrd for NextJsParallelRouteName
§impl TryFrom<&str> for NextJsParallelRouteName
impl TryFrom<&str> for NextJsParallelRouteName
§type Error = NextJsRouteError
type Error = NextJsRouteError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<NextJsParallelRouteName, <NextJsParallelRouteName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<NextJsParallelRouteName, <NextJsParallelRouteName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for NextJsParallelRouteName
impl StructuralPartialEq for NextJsParallelRouteName
Auto Trait Implementations§
impl Freeze for NextJsParallelRouteName
impl RefUnwindSafe for NextJsParallelRouteName
impl Send for NextJsParallelRouteName
impl Sync for NextJsParallelRouteName
impl Unpin for NextJsParallelRouteName
impl UnsafeUnpin for NextJsParallelRouteName
impl UnwindSafe for NextJsParallelRouteName
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