Skip to main content

try_parse_trailing_attributes_with_pos

Function try_parse_trailing_attributes_with_pos 

Source
pub fn try_parse_trailing_attributes_with_pos(
    text: &str,
) -> Option<(AttributeBlock, &str, usize)>
Expand description

Try to parse an attribute block from the end of a string. Returns: (attribute_block, text_before_attributes, open_brace_position_in_trimmed_text)