Struct RefspecDestination
pub struct RefspecDestination(/* private fields */);Expand description
Refspec destination text.
Implementations§
§impl RefspecDestination
impl RefspecDestination
pub fn new(
value: impl AsRef<str>,
) -> Result<RefspecDestination, RefspecParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<RefspecDestination, RefspecParseError>
Creates a refspec destination.
§Errors
Returns RefspecParseError::EmptyDestination when the destination is empty.
Trait Implementations§
§impl AsRef<str> for RefspecDestination
impl AsRef<str> for RefspecDestination
§impl Clone for RefspecDestination
impl Clone for RefspecDestination
§fn clone(&self) -> RefspecDestination
fn clone(&self) -> RefspecDestination
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RefspecDestination
impl Debug for RefspecDestination
§impl Display for RefspecDestination
impl Display for RefspecDestination
§impl Hash for RefspecDestination
impl Hash for RefspecDestination
§impl Ord for RefspecDestination
impl Ord for RefspecDestination
§fn cmp(&self, other: &RefspecDestination) -> Ordering
fn cmp(&self, other: &RefspecDestination) -> Ordering
1.21.0 · 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
§impl PartialEq for RefspecDestination
impl PartialEq for RefspecDestination
§impl PartialOrd for RefspecDestination
impl PartialOrd for RefspecDestination
impl Eq for RefspecDestination
impl StructuralPartialEq for RefspecDestination
Auto Trait Implementations§
impl Freeze for RefspecDestination
impl RefUnwindSafe for RefspecDestination
impl Send for RefspecDestination
impl Sync for RefspecDestination
impl Unpin for RefspecDestination
impl UnsafeUnpin for RefspecDestination
impl UnwindSafe for RefspecDestination
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