pub struct NextJsParallelRouteName(/* private fields */);Expand description
Validated Next.js parallel route name metadata.
Implementations§
Source§impl NextJsParallelRouteName
impl NextJsParallelRouteName
Sourcepub fn new(input: &str) -> Result<Self, NextJsRouteError>
pub fn new(input: &str) -> Result<Self, 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§
Source§impl Clone for NextJsParallelRouteName
impl Clone for NextJsParallelRouteName
Source§fn clone(&self) -> NextJsParallelRouteName
fn clone(&self) -> NextJsParallelRouteName
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 Debug for NextJsParallelRouteName
impl Debug for NextJsParallelRouteName
Source§impl Display for NextJsParallelRouteName
impl Display for NextJsParallelRouteName
Source§impl FromStr for NextJsParallelRouteName
impl FromStr for NextJsParallelRouteName
Source§impl Hash for NextJsParallelRouteName
impl Hash for NextJsParallelRouteName
Source§impl Ord for NextJsParallelRouteName
impl Ord for NextJsParallelRouteName
Source§fn cmp(&self, other: &NextJsParallelRouteName) -> Ordering
fn cmp(&self, other: &NextJsParallelRouteName) -> 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 NextJsParallelRouteName
impl PartialEq for NextJsParallelRouteName
Source§fn eq(&self, other: &NextJsParallelRouteName) -> bool
fn eq(&self, other: &NextJsParallelRouteName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NextJsParallelRouteName
impl PartialOrd for NextJsParallelRouteName
Source§impl TryFrom<&str> for NextJsParallelRouteName
impl TryFrom<&str> for NextJsParallelRouteName
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