pub struct Positions {
pub scheme_end: usize,
pub authority_end: usize,
pub path_end: usize,
pub query_end: usize,
}Expand description
Cached component boundaries inside an IRI/URI string.
Indices are byte offsets.
scheme_end— index one past the:after the scheme (0 if no scheme)authority_end— index one past the last byte of the authority (equalsscheme_endif none)path_end— index one past the last byte of the pathquery_end— index one past the last byte of the query (equalspath_endif none)
Fields§
§scheme_end: usize§path_end: usize§query_end: usizeImplementations§
Trait Implementations§
impl Copy for Positions
impl Eq for Positions
impl StructuralPartialEq for Positions
Auto Trait Implementations§
impl Freeze for Positions
impl RefUnwindSafe for Positions
impl Send for Positions
impl Sync for Positions
impl Unpin for Positions
impl UnsafeUnpin for Positions
impl UnwindSafe for Positions
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