pub enum RouteModification<T> {
Insert(T),
Remove,
Noop,
}Expand description
A set of actions that can be taken as part of a call to modify.
Variants§
Insert(T)
Insert the contained value into the route.
Remove
Remove the route.
Noop
Take no further action on the route. (May modify the route value in-place.)
Trait Implementations§
Source§impl<T: Debug> Debug for RouteModification<T>
impl<T: Debug> Debug for RouteModification<T>
Source§impl<T> Default for RouteModification<T>
impl<T> Default for RouteModification<T>
Source§fn default() -> RouteModification<T>
fn default() -> RouteModification<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for RouteModification<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouteModification<T>where
T: RefUnwindSafe,
impl<T> Send for RouteModification<T>where
T: Send,
impl<T> Sync for RouteModification<T>where
T: Sync,
impl<T> Unpin for RouteModification<T>where
T: Unpin,
impl<T> UnsafeUnpin for RouteModification<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RouteModification<T>where
T: UnwindSafe,
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