pub enum SectionStyle {
Comment,
Bracket,
None,
}Expand description
Section formatting style for CODEOWNERS files.
Different platforms use different syntax for section headers:
- GitHub/Bitbucket:
# Section Name(comment style) - GitLab:
[Section Name](bracket style)
Variants§
Comment
# Section Name - comment-based sections (GitHub, Bitbucket)
Bracket
[Section Name] - bracket-based sections (GitLab)
None
No section headers in output
Trait Implementations§
Source§impl Clone for SectionStyle
impl Clone for SectionStyle
Source§fn clone(&self) -> SectionStyle
fn clone(&self) -> SectionStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionStyle
impl Debug for SectionStyle
Source§impl Default for SectionStyle
impl Default for SectionStyle
Source§fn default() -> SectionStyle
fn default() -> SectionStyle
Returns the “default value” for a type. Read more
Source§impl Display for SectionStyle
impl Display for SectionStyle
Source§impl PartialEq for SectionStyle
impl PartialEq for SectionStyle
impl Copy for SectionStyle
impl Eq for SectionStyle
impl StructuralPartialEq for SectionStyle
Auto Trait Implementations§
impl Freeze for SectionStyle
impl RefUnwindSafe for SectionStyle
impl Send for SectionStyle
impl Sync for SectionStyle
impl Unpin for SectionStyle
impl UnsafeUnpin for SectionStyle
impl UnwindSafe for SectionStyle
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