pub(crate) struct BranchName(String);Expand description
A non-empty Git branch name.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for BranchName
impl Clone for BranchName
Source§fn clone(&self) -> BranchName
fn clone(&self) -> BranchName
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 BranchName
impl Debug for BranchName
impl Eq for BranchName
Source§impl<'ʄ> Facet<'ʄ> for BranchName
impl<'ʄ> Facet<'ʄ> for BranchName
Source§impl From<&BranchName> for String
impl From<&BranchName> for String
Source§fn from(name: &BranchName) -> Self
fn from(name: &BranchName) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BranchName
impl PartialEq for BranchName
impl StructuralPartialEq for BranchName
Source§impl TryFrom<&str> for BranchName
impl TryFrom<&str> for BranchName
Auto Trait Implementations§
impl Freeze for BranchName
impl RefUnwindSafe for BranchName
impl Send for BranchName
impl Sync for BranchName
impl Unpin for BranchName
impl UnsafeUnpin for BranchName
impl UnwindSafe for BranchName
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.