Skip to main content

split_collection

Function split_collection 

Source
pub fn split_collection(text: &str) -> Option<(&str, &str)>
Expand description

Splits @ID:REST at the first : after the @.

Returns the id and the rest, or None if text does not start with @ or has no : after it. The call does not check the id or the rest. Use is_valid_collection_id for the id.