pub struct DefaultBranchName(/* private fields */);Expand description
A conventional default branch name.
Implementations§
Source§impl DefaultBranchName
impl DefaultBranchName
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<DefaultBranchName, GitBranchNameError>
pub fn new( value: impl AsRef<str>, ) -> Result<DefaultBranchName, GitBranchNameError>
Sourcepub fn main() -> DefaultBranchName
pub fn main() -> DefaultBranchName
Returns main as a default branch name.
Sourcepub fn master() -> DefaultBranchName
pub fn master() -> DefaultBranchName
Returns master as a default branch name.
Trait Implementations§
Source§impl Clone for DefaultBranchName
impl Clone for DefaultBranchName
Source§fn clone(&self) -> DefaultBranchName
fn clone(&self) -> DefaultBranchName
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 DefaultBranchName
impl Debug for DefaultBranchName
Source§impl Display for DefaultBranchName
impl Display for DefaultBranchName
Source§impl Hash for DefaultBranchName
impl Hash for DefaultBranchName
Source§impl Ord for DefaultBranchName
impl Ord for DefaultBranchName
Source§fn cmp(&self, other: &DefaultBranchName) -> Ordering
fn cmp(&self, other: &DefaultBranchName) -> 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 DefaultBranchName
impl PartialEq for DefaultBranchName
Source§fn eq(&self, other: &DefaultBranchName) -> bool
fn eq(&self, other: &DefaultBranchName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DefaultBranchName
impl PartialOrd for DefaultBranchName
impl Eq for DefaultBranchName
impl StructuralPartialEq for DefaultBranchName
Auto Trait Implementations§
impl Freeze for DefaultBranchName
impl RefUnwindSafe for DefaultBranchName
impl Send for DefaultBranchName
impl Sync for DefaultBranchName
impl Unpin for DefaultBranchName
impl UnsafeUnpin for DefaultBranchName
impl UnwindSafe for DefaultBranchName
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