pub struct PathPrefixOffset(pub usize);Expand description
Byte offset into parts.uri.path() where the post-prefix path begins.
Inserted into request extensions by the router only when a prefix is
configured. Absent (treated as 0) for the no-prefix case so we don’t
touch the extensions map on the hot path.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for PathPrefixOffset
impl Clone for PathPrefixOffset
Source§fn clone(&self) -> PathPrefixOffset
fn clone(&self) -> PathPrefixOffset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PathPrefixOffset
Auto Trait Implementations§
impl Freeze for PathPrefixOffset
impl RefUnwindSafe for PathPrefixOffset
impl Send for PathPrefixOffset
impl Sync for PathPrefixOffset
impl Unpin for PathPrefixOffset
impl UnsafeUnpin for PathPrefixOffset
impl UnwindSafe for PathPrefixOffset
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