Skip to main content

annotate_custom_types

Function annotate_custom_types 

Source
pub fn annotate_custom_types(layout: &mut StructLayout, custom_types: &[String])
Expand description

Annotate fields whose type name contains any of custom_types as Concurrent.

Called after the built-in heuristic pass to extend detection to project-specific synchronization wrappers (e.g. SeqLock, TicketLock) registered in .padlock.toml under [padlock] custom_sync_types.