Skip to main content

split_kind

Function split_kind 

Source
pub(crate) fn split_kind(atom: &str) -> Option<(&str, &str)>
Expand description

Splits an atom into its kind and everything after it.

An atom names its kind before the first :, or before the first ? when it has no positional value at all — blob?accept=image/* is the blob kind with no positional half, which is how the spec writes a scope carrying several values of one parameter.