pub struct BranchConstraint {
pub names: Vec<String>,
pub exclude: bool,
}Expand description
Branch constraints representation.
names: list of branch namesexclude: if true, all branches EXCEPT these are matched; if false, ONLY these branches are matched
Fields§
§names: Vec<String>§exclude: boolImplementations§
Source§impl BranchConstraint
impl BranchConstraint
Sourcepub const fn matches_any(&self) -> bool
pub const fn matches_any(&self) -> bool
Check if this matches any dev branch.
Sourcepub const fn matches_none(&self) -> bool
pub const fn matches_none(&self) -> bool
Check if this matches no dev branches.
Trait Implementations§
Source§impl Clone for BranchConstraint
impl Clone for BranchConstraint
Source§fn clone(&self) -> BranchConstraint
fn clone(&self) -> BranchConstraint
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 BranchConstraint
impl Debug for BranchConstraint
Source§impl Default for BranchConstraint
impl Default for BranchConstraint
Source§impl PartialEq for BranchConstraint
impl PartialEq for BranchConstraint
impl Eq for BranchConstraint
impl StructuralPartialEq for BranchConstraint
Auto Trait Implementations§
impl Freeze for BranchConstraint
impl RefUnwindSafe for BranchConstraint
impl Send for BranchConstraint
impl Sync for BranchConstraint
impl Unpin for BranchConstraint
impl UnwindSafe for BranchConstraint
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