Function rustfmt_nightly::string::detect_url
source · fn detect_url(s: &[&str], index: usize) -> Option<usize>
Expand description
Returns the index to the end of the URL if the split at index of the given string includes a
URL or alike. Otherwise, returns None
.