pub struct Match {
pub path: Vec<Segment>,
pub body: Body,
pub span: Span,
}Expand description
match /path/{var}/{rest=**} { … }.
Fields§
§path: Vec<Segment>§body: Body§span: SpanThe match keyword.
Trait Implementations§
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Forget for Match
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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