pub struct BranchOps<'a> { /* private fields */ }Available on crate feature
workflow only.Expand description
Operations on local branches, scoped to a Repository.
Obtained via Repository::branches. The handle borrows the repository
for the duration of one chained call — there is no shared state.
Implementations§
Source§impl<'a> BranchOps<'a>
impl<'a> BranchOps<'a>
Sourcepub async fn list_matching(
&self,
pattern: impl Into<String>,
) -> Result<Vec<Branch>>
pub async fn list_matching( &self, pattern: impl Into<String>, ) -> Result<Vec<Branch>>
List branches whose ref path matches pattern (a fnmatch-style glob
applied to the full ref, e.g. "refs/heads/feature/*"). For short-name
matching, pass "refs/heads/<glob>".
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BranchOps<'a>
impl<'a> RefUnwindSafe for BranchOps<'a>
impl<'a> Send for BranchOps<'a>
impl<'a> Sync for BranchOps<'a>
impl<'a> Unpin for BranchOps<'a>
impl<'a> UnsafeUnpin for BranchOps<'a>
impl<'a> UnwindSafe for BranchOps<'a>
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