Struct radicle_surf::Glob
source · pub struct Glob<T> { /* private fields */ }
Expand description
A collection of globs for a git reference type.
Implementations§
source§impl<T> Glob<T>
impl<T> Glob<T>
sourcepub fn globs(&self) -> impl Iterator<Item = &QualifiedPattern<'static>>
pub fn globs(&self) -> impl Iterator<Item = &QualifiedPattern<'static>>
Return the QualifiedPattern
globs of this Glob
.
source§impl Glob<Namespace>
impl Glob<Namespace>
sourcepub fn all_namespaces() -> Self
pub fn all_namespaces() -> Self
Creates the Glob
that matches all refs/namespaces
.
sourcepub fn namespaces(glob: PatternString) -> Self
pub fn namespaces(glob: PatternString) -> Self
Creates a Glob
for refs/namespaces
, starting with glob
.
sourcepub fn insert(self, glob: PatternString) -> Self
pub fn insert(self, glob: PatternString) -> Self
Adds a refs/namespaces
pattern to this Glob
.
source§impl Glob<Tag>
impl Glob<Tag>
Creates a Glob
that matches all refs/tags
.
Creates a Glob
for refs/tags
, starting with glob
.
sourcepub fn insert(self, glob: PatternString) -> Self
pub fn insert(self, glob: PatternString) -> Self
Adds a refs/tags
pattern to this Glob
.
source§impl Glob<Local>
impl Glob<Local>
sourcepub fn heads(glob: PatternString) -> Self
pub fn heads(glob: PatternString) -> Self
Creates a Glob
for refs/heads
, starting with glob
.
sourcepub fn insert(self, glob: PatternString) -> Self
pub fn insert(self, glob: PatternString) -> Self
Adds a refs/heads
pattern to this Glob
.
source§impl Glob<Remote>
impl Glob<Remote>
sourcepub fn all_remotes() -> Self
pub fn all_remotes() -> Self
Creates the Glob
that matches all refs/remotes
.
sourcepub fn remotes(glob: PatternString) -> Self
pub fn remotes(glob: PatternString) -> Self
Creates a Glob
for refs/remotes
, starting with glob
.
sourcepub fn insert(self, glob: PatternString) -> Self
pub fn insert(self, glob: PatternString) -> Self
Adds a refs/remotes
pattern to this Glob
.
source§impl Glob<Qualified<'_>>
impl Glob<Qualified<'_>>
pub fn all_category<R: AsRef<RefStr>>(category: R) -> Self
sourcepub fn categories<R>(category: R, glob: PatternString) -> Self
pub fn categories<R>(category: R, glob: PatternString) -> Self
Creates a Glob
for refs/<category>
, starting with glob
.
sourcepub fn insert<R>(self, category: R, glob: PatternString) -> Self
pub fn insert<R>(self, category: R, glob: PatternString) -> Self
Adds a refs/<category>
pattern to this Glob
.
Trait Implementations§
source§impl Extend<PatternString> for Glob<Local>
impl Extend<PatternString> for Glob<Local>
source§fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<PatternString> for Glob<Namespace>
impl Extend<PatternString> for Glob<Namespace>
source§fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<PatternString> for Glob<Remote>
impl Extend<PatternString> for Glob<Remote>
source§fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<PatternString> for Glob<Tag>
impl Extend<PatternString> for Glob<Tag>
source§fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PatternString>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<PatternString> for Glob<Local>
impl FromIterator<PatternString> for Glob<Local>
source§fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<PatternString> for Glob<Namespace>
impl FromIterator<PatternString> for Glob<Namespace>
source§fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<PatternString> for Glob<Remote>
impl FromIterator<PatternString> for Glob<Remote>
source§fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl FromIterator<PatternString> for Glob<Tag>
impl FromIterator<PatternString> for Glob<Tag>
source§fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternString>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for Glob<T>
impl<T> RefUnwindSafe for Glob<T>where
T: RefUnwindSafe,
impl<T> Send for Glob<T>where
T: Send,
impl<T> Sync for Glob<T>where
T: Sync,
impl<T> Unpin for Glob<T>where
T: Unpin,
impl<T> UnwindSafe for Glob<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)