pub struct ExpandedExclude {
pub pattern: Option<String>,
pub forces_no_follow: bool,
}Expand description
The result of expanding a --exclude pattern: the final extended-regex
string plus whether the expansion forced --no-follow.
Fields§
§pattern: Option<String>The final extended-regex pattern (with %system% / %common%
substituted), or None when the input was empty (no exclusion).
forces_no_follow: booltrue when %system% appeared and forced no-follow.
Trait Implementations§
Source§impl Clone for ExpandedExclude
impl Clone for ExpandedExclude
Source§fn clone(&self) -> ExpandedExclude
fn clone(&self) -> ExpandedExclude
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 ExpandedExclude
impl Debug for ExpandedExclude
impl Eq for ExpandedExclude
Source§impl PartialEq for ExpandedExclude
impl PartialEq for ExpandedExclude
Source§fn eq(&self, other: &ExpandedExclude) -> bool
fn eq(&self, other: &ExpandedExclude) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExpandedExclude
Auto Trait Implementations§
impl Freeze for ExpandedExclude
impl RefUnwindSafe for ExpandedExclude
impl Send for ExpandedExclude
impl Sync for ExpandedExclude
impl Unpin for ExpandedExclude
impl UnsafeUnpin for ExpandedExclude
impl UnwindSafe for ExpandedExclude
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