pub struct GitRemoteName(/* private fields */);Expand description
Conservative local Git remote name used only during one-shot discovery.
Implementations§
Source§impl GitRemoteName
impl GitRemoteName
Sourcepub fn new(value: impl Into<String>) -> Result<Self, GitRemoteDiscoveryError>
pub fn new(value: impl Into<String>) -> Result<Self, GitRemoteDiscoveryError>
Validate a local remote name that can be embedded in an anchored Git-config key regex.
§Errors
Rejects empty, option-like, long, control, regex, ref, and path syntax.
Sourcepub fn discovery_arguments(&self) -> Vec<OsString>
pub fn discovery_arguments(&self) -> Vec<OsString>
Fixed argument vector for a single local, no-include config snapshot.
Trait Implementations§
Source§impl Clone for GitRemoteName
impl Clone for GitRemoteName
Source§impl Debug for GitRemoteName
impl Debug for GitRemoteName
impl Eq for GitRemoteName
Source§impl Ord for GitRemoteName
impl Ord for GitRemoteName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GitRemoteName
impl PartialEq for GitRemoteName
Source§impl PartialOrd for GitRemoteName
impl PartialOrd for GitRemoteName
impl StructuralPartialEq for GitRemoteName
Auto Trait Implementations§
impl Freeze for GitRemoteName
impl RefUnwindSafe for GitRemoteName
impl Send for GitRemoteName
impl Sync for GitRemoteName
impl Unpin for GitRemoteName
impl UnsafeUnpin for GitRemoteName
impl UnwindSafe for GitRemoteName
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.