pub enum RemixRouteKind {
PageRoute,
ResourceRoute,
LayoutRoute,
IndexRoute,
PathlessLayoutRoute,
}Expand description
Remix route-kind labels.
Variants§
Implementations§
Source§impl RemixRouteKind
impl RemixRouteKind
Sourcepub const fn is_index_route(self) -> bool
pub const fn is_index_route(self) -> bool
Returns whether this kind describes an index route.
Sourcepub const fn is_resource_route(self) -> bool
pub const fn is_resource_route(self) -> bool
Returns whether this kind describes a resource route.
Sourcepub const fn is_layout_route(self) -> bool
pub const fn is_layout_route(self) -> bool
Returns whether this kind describes a layout route.
Trait Implementations§
Source§impl Clone for RemixRouteKind
impl Clone for RemixRouteKind
Source§fn clone(&self) -> RemixRouteKind
fn clone(&self) -> RemixRouteKind
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 RemixRouteKind
impl Debug for RemixRouteKind
Source§impl Display for RemixRouteKind
impl Display for RemixRouteKind
Source§impl FromStr for RemixRouteKind
impl FromStr for RemixRouteKind
Source§type Err = RemixNameError
type Err = RemixNameError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<RemixRouteKind, <RemixRouteKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<RemixRouteKind, <RemixRouteKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for RemixRouteKind
impl Hash for RemixRouteKind
Source§impl Ord for RemixRouteKind
impl Ord for RemixRouteKind
Source§fn cmp(&self, other: &RemixRouteKind) -> Ordering
fn cmp(&self, other: &RemixRouteKind) -> 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 RemixRouteKind
impl PartialEq for RemixRouteKind
Source§fn eq(&self, other: &RemixRouteKind) -> bool
fn eq(&self, other: &RemixRouteKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RemixRouteKind
impl PartialOrd for RemixRouteKind
impl Copy for RemixRouteKind
impl Eq for RemixRouteKind
impl StructuralPartialEq for RemixRouteKind
Auto Trait Implementations§
impl Freeze for RemixRouteKind
impl RefUnwindSafe for RemixRouteKind
impl Send for RemixRouteKind
impl Sync for RemixRouteKind
impl Unpin for RemixRouteKind
impl UnsafeUnpin for RemixRouteKind
impl UnwindSafe for RemixRouteKind
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