Skip to main content

claim

Function claim 

Source
fn claim(
    claimed: &mut Vec<(String, &'static str)>,
    name: &str,
    id: &'static str,
) -> Result<(), String>
Expand description

Claims the carrier class name for the type with ID id. Two serde types of one crate with the same name would share the class, and each would read the other’s saves, so the second one is an error naming both types’ paths. Claiming a name again for the same type is a no-op.