pub struct ForEachRefFormat { /* private fields */ }Implementations§
Source§impl ForEachRefFormat
impl ForEachRefFormat
pub fn parse(format_spec: &str) -> Result<Self>
pub fn segments(&self) -> &[ForEachRefFormatSegment]
Sourcepub fn ends_with_unreset_color(&self) -> bool
pub fn ends_with_unreset_color(&self) -> bool
Mirror git’s need_color_reset_at_eol: true when the format contains at
least one %(color:...) atom and the last such atom is not
%(color:reset). The caller still gates this on color being enabled.
Trait Implementations§
Source§impl Clone for ForEachRefFormat
impl Clone for ForEachRefFormat
Source§fn clone(&self) -> ForEachRefFormat
fn clone(&self) -> ForEachRefFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForEachRefFormat
impl Debug for ForEachRefFormat
impl Eq for ForEachRefFormat
Source§impl PartialEq for ForEachRefFormat
impl PartialEq for ForEachRefFormat
impl StructuralPartialEq for ForEachRefFormat
Auto Trait Implementations§
impl Freeze for ForEachRefFormat
impl RefUnwindSafe for ForEachRefFormat
impl Send for ForEachRefFormat
impl Sync for ForEachRefFormat
impl Unpin for ForEachRefFormat
impl UnsafeUnpin for ForEachRefFormat
impl UnwindSafe for ForEachRefFormat
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