[go: up one dir, main page]

Function cargo_deny::cfg::deprecated

source ·
pub fn deprecated<'de, T>(
    th: &mut TableHelper<'de>,
    field: &'static str,
    spans: &mut Vec<Span>,
) -> Option<T>
where T: Deserialize<'de>,
Expand description

Deserialize a field from the table if it exists, but append the key’s span so it can be marked as deprecated