Enum sycamore_router::Segment
source · [−]pub enum Segment {
Param(String),
DynParam,
DynSegments,
}
Expand description
Represents an URL segment or segments.
Variants
Param(String)
Match a specific segment.
DynParam
Match an arbitrary segment that is captured.
DynSegments
Match an arbitrary amount of segments that are captured.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more