pub struct BranchSettings {
pub persistence: Vec<Regex>,
pub order: Vec<Regex>,
pub terminal_colors: Vec<(Regex, Vec<String>)>,
pub terminal_colors_unknown: Vec<String>,
pub svg_colors: Vec<(Regex, Vec<String>)>,
pub svg_colors_unknown: Vec<String>,
}
Expand description
Settings defining branching models
Fields§
§persistence: Vec<Regex>
Branch persistence
order: Vec<Regex>
Branch ordering
terminal_colors: Vec<(Regex, Vec<String>)>
Branch colors
terminal_colors_unknown: Vec<String>
Colors for branches not matching any of colors
svg_colors: Vec<(Regex, Vec<String>)>
Branch colors for SVG output
svg_colors_unknown: Vec<String>
Colors for branches not matching any of colors
for SVG output
Implementations§
Source§impl BranchSettings
impl BranchSettings
pub fn from(def: BranchSettingsDef) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for BranchSettings
impl RefUnwindSafe for BranchSettings
impl Send for BranchSettings
impl Sync for BranchSettings
impl Unpin for BranchSettings
impl UnwindSafe for BranchSettings
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more