pub struct RemoteRefName(/* private fields */);Expand description
A remote ref name.
Implementations§
Source§impl RemoteRefName
impl RemoteRefName
Sourcepub fn new(value: impl AsRef<str>) -> Result<RemoteRefName, GitRemoteNameError>
pub fn new(value: impl AsRef<str>) -> Result<RemoteRefName, GitRemoteNameError>
Creates a remote ref name from text.
§Errors
Returns GitRemoteNameError when the remote ref is empty or invalid.
Trait Implementations§
Source§impl Clone for RemoteRefName
impl Clone for RemoteRefName
Source§fn clone(&self) -> RemoteRefName
fn clone(&self) -> RemoteRefName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteRefName
impl Debug for RemoteRefName
Source§impl Display for RemoteRefName
impl Display for RemoteRefName
Source§impl FromStr for RemoteRefName
impl FromStr for RemoteRefName
Source§type Err = GitRemoteNameError
type Err = GitRemoteNameError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<RemoteRefName, <RemoteRefName as FromStr>::Err>
fn from_str( value: &str, ) -> Result<RemoteRefName, <RemoteRefName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for RemoteRefName
impl Hash for RemoteRefName
Source§impl Ord for RemoteRefName
impl Ord for RemoteRefName
Source§fn cmp(&self, other: &RemoteRefName) -> Ordering
fn cmp(&self, other: &RemoteRefName) -> Ordering
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
Source§impl PartialEq for RemoteRefName
impl PartialEq for RemoteRefName
Source§fn eq(&self, other: &RemoteRefName) -> bool
fn eq(&self, other: &RemoteRefName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RemoteRefName
impl PartialOrd for RemoteRefName
impl Eq for RemoteRefName
impl StructuralPartialEq for RemoteRefName
Auto Trait Implementations§
impl Freeze for RemoteRefName
impl RefUnwindSafe for RemoteRefName
impl Send for RemoteRefName
impl Sync for RemoteRefName
impl Unpin for RemoteRefName
impl UnsafeUnpin for RemoteRefName
impl UnwindSafe for RemoteRefName
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