pub enum CodeownersLine {
Comment(String),
Empty,
Rule {
pattern: String,
owners: Vec<String>,
},
}Expand description
The logical content of a CODEOWNERS line.
Variants§
Comment(String)
A comment line (starts with #). The stored string includes the #.
Empty
A blank or whitespace-only line.
Rule
A rule line: a glob pattern followed by zero or more owners.
Trait Implementations§
Source§impl Clone for CodeownersLine
impl Clone for CodeownersLine
Source§impl Debug for CodeownersLine
impl Debug for CodeownersLine
Source§impl Display for CodeownersLine
impl Display for CodeownersLine
Source§impl PartialEq for CodeownersLine
impl PartialEq for CodeownersLine
impl StructuralPartialEq for CodeownersLine
Auto Trait Implementations§
impl Freeze for CodeownersLine
impl RefUnwindSafe for CodeownersLine
impl Send for CodeownersLine
impl Sync for CodeownersLine
impl Unpin for CodeownersLine
impl UnsafeUnpin for CodeownersLine
impl UnwindSafe for CodeownersLine
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