Skip to main content

split_stamped_label

Function split_stamped_label 

Source
pub fn split_stamped_label(label: &str) -> Option<(&str, &str)>
Expand description

Split a kind:id label when kind is one of RUNTIME_STAMPED_ACTOR_KINDS.

Returns None when the label has no : or its prefix is not a stamped kind, so an id that merely contains a colon (such as svc:build) is left whole.