Module util
places
If p is a file URL, return it, otherwise try and make it one.
p
As best as possible, convert p into an absolute path, resolving all symlinks along the way.
Equivalent to &s[..max_len.min(s.len())], but handles the case where s.is_char_boundary(max_len) is false (which would otherwise panic).
&s[..max_len.min(s.len())]
s.is_char_boundary(max_len)
Path is basically just a str with no validation, and so in practice it could contain a file URL. Rusqlite takes advantage of this a bit, and says AsRef<Path> but really means "anything sqlite can take as an argument".
Path
str
AsRef<Path>