Struct gix::pathspec::attributes::search::TrackedAssignment
source · pub struct TrackedAssignment {
pub id: AttributeId,
pub inner: Assignment,
}
Available on crate feature
attributes
only.Expand description
A way to have an assignment (attr=value
) but also associated it with an id that allows perfect mapping
to tracking information.
Note that the order is produced after the files are parsed as global ordering is needed that goes beyond the scope of a
single Search
instance.
Fields§
§id: AttributeId
The order of the assignment.
inner: Assignment
The actual assignment information.
Trait Implementations§
source§impl Clone for TrackedAssignment
impl Clone for TrackedAssignment
source§fn clone(&self) -> TrackedAssignment
fn clone(&self) -> TrackedAssignment
Returns a copy 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 moresource§impl Debug for TrackedAssignment
impl Debug for TrackedAssignment
source§impl Hash for TrackedAssignment
impl Hash for TrackedAssignment
source§impl Ord for TrackedAssignment
impl Ord for TrackedAssignment
source§fn cmp(&self, other: &TrackedAssignment) -> Ordering
fn cmp(&self, other: &TrackedAssignment) -> 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
source§impl PartialEq for TrackedAssignment
impl PartialEq for TrackedAssignment
source§fn eq(&self, other: &TrackedAssignment) -> bool
fn eq(&self, other: &TrackedAssignment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TrackedAssignment
impl PartialOrd for TrackedAssignment
source§fn partial_cmp(&self, other: &TrackedAssignment) -> Option<Ordering>
fn partial_cmp(&self, other: &TrackedAssignment) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TrackedAssignment
impl StructuralPartialEq for TrackedAssignment
Auto Trait Implementations§
impl Freeze for TrackedAssignment
impl RefUnwindSafe for TrackedAssignment
impl Send for TrackedAssignment
impl Sync for TrackedAssignment
impl Unpin for TrackedAssignment
impl UnwindSafe for TrackedAssignment
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