pub struct GitAttributeValue(/* private fields */);Expand description
A plain attribute value.
Implementations§
Source§impl GitAttributeValue
impl GitAttributeValue
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<GitAttributeValue, GitAttributeParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<GitAttributeValue, GitAttributeParseError>
Creates an attribute value.
§Errors
Returns GitAttributeParseError::EmptyValue when the value is empty.
Trait Implementations§
Source§impl AsRef<str> for GitAttributeValue
impl AsRef<str> for GitAttributeValue
Source§impl Clone for GitAttributeValue
impl Clone for GitAttributeValue
Source§fn clone(&self) -> GitAttributeValue
fn clone(&self) -> GitAttributeValue
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 GitAttributeValue
impl Debug for GitAttributeValue
Source§impl Display for GitAttributeValue
impl Display for GitAttributeValue
Source§impl Hash for GitAttributeValue
impl Hash for GitAttributeValue
Source§impl Ord for GitAttributeValue
impl Ord for GitAttributeValue
Source§fn cmp(&self, other: &GitAttributeValue) -> Ordering
fn cmp(&self, other: &GitAttributeValue) -> 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 GitAttributeValue
impl PartialEq for GitAttributeValue
Source§fn eq(&self, other: &GitAttributeValue) -> bool
fn eq(&self, other: &GitAttributeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitAttributeValue
impl PartialOrd for GitAttributeValue
impl Eq for GitAttributeValue
impl StructuralPartialEq for GitAttributeValue
Auto Trait Implementations§
impl Freeze for GitAttributeValue
impl RefUnwindSafe for GitAttributeValue
impl Send for GitAttributeValue
impl Sync for GitAttributeValue
impl Unpin for GitAttributeValue
impl UnsafeUnpin for GitAttributeValue
impl UnwindSafe for GitAttributeValue
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