pub struct ParsedLine {
pub line_number: u32,
pub content: CodeownersLine,
pub pattern_start: u32,
pub pattern_end: u32,
pub owners_start: u32,
pub comment_start: Option<u32>,
}Expand description
A parsed CODEOWNERS line with character offsets for editor tooling.
Fields§
§line_number: u320-indexed line number in the source file.
content: CodeownersLineThe logical content of the line (rule, comment, or empty).
pattern_start: u32Character offset where the pattern starts (0 for non-rule lines).
pattern_end: u32Character offset one past the end of the pattern.
owners_start: u32Character offset where owners start (equals pattern_end if no owners).
comment_start: Option<u32>Character offset of the inline comment’s #, if any.
Trait Implementations§
Source§impl Clone for ParsedLine
impl Clone for ParsedLine
Auto Trait Implementations§
impl Freeze for ParsedLine
impl RefUnwindSafe for ParsedLine
impl Send for ParsedLine
impl Sync for ParsedLine
impl Unpin for ParsedLine
impl UnsafeUnpin for ParsedLine
impl UnwindSafe for ParsedLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more