Skip to main content

in_security_field_position

Function in_security_field_position 

Source
pub fn in_security_field_position(text: &str, offset: usize) -> bool
Expand description

v0.141: the cursor is at a field-name position inside a security { … } block — the innermost open brace is opened by security, and the current field segment has no : yet. Mirrors in_cors_field_position.