Skip to main content

location_of_link

Function location_of_link 

Source
pub fn location_of_link(link: &str) -> Option<String>
Expand description

The location a link stands for, or None if link is not one: no scheme, or nothing after it.

linklocation
https://example.com/orders/42?tab=items/orders/42?tab=items
https://example.com/
myapp://orders/42/orders/42
myapp:orders/42/orders/42
myapp:///orders/42/orders/42

A fragment is dropped: an application’s locations have none.