Lines Matching refs:flags
26 pub flags: LineState, field
43 flags: LineState::empty(), in new()
223 if previous_line.flags.contains(LineState::LOCKED) in merge_line()
224 || cur_line.flags.contains(LineState::LOCKED) in merge_line()
279 pub fn add_line_flags(&self, line_index: usize, flags: LineState) { in add_line_flags()
290 line.flags.insert(flags); in add_line_flags()
293 if flags.contains(LineState::FLAGED) { in add_line_flags()
298 if flags.contains(LineState::LOCKED) { in add_line_flags()
303 pub fn remove_line_flags(&self, line_index: usize, flags: LineState) { in remove_line_flags()
314 line.flags.remove(flags); in remove_line_flags()
317 if flags.contains(LineState::FLAGED) { in remove_line_flags()
322 if flags.contains(LineState::LOCKED) { in remove_line_flags()
329 self.get_line(line).flags in line_flags()
380 if line.flags.contains(LineState::LOCKED) { in delete_lines()
402 if !line.flags.contains(LineState::LOCKED) { in delete_line()