Skip to main content

split_type_id

Function split_type_id 

Source
fn split_type_id(id: &str) -> (Option<&str>, Option<&str>, &str)
Expand description

Splits a type ID of the derive’s form, crate@version::module::Type, into (crate, version, module::Type); a hand-written ID without a version is (None, None, id).