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