pub struct ConePatterns {
pub full_cone: bool,
pub recursive_slash: BTreeSet<String>,
pub parent_slash: BTreeSet<String>,
}Expand description
Cone-mode sparse state: keys use a leading / (Git’s internal form).
Fields§
§full_cone: bool§recursive_slash: BTreeSet<String>§parent_slash: BTreeSet<String>Implementations§
Source§impl ConePatterns
impl ConePatterns
Sourcepub fn try_parse_with_warnings(
content: &str,
warnings: &mut Vec<String>,
) -> Option<Self>
pub fn try_parse_with_warnings( content: &str, warnings: &mut Vec<String>, ) -> Option<Self>
Parse sparse-checkout lines in cone mode. On structural failure returns None and
callers should fall back to non-cone matching (and may print warnings).
pub fn try_parse(content: &str) -> Option<Self>
Sourcepub fn path_included(&self, path: &str) -> bool
pub fn path_included(&self, path: &str) -> bool
Whether path (repository-relative, no leading slash) is inside the cone.
Trait Implementations§
Source§impl Clone for ConePatterns
impl Clone for ConePatterns
Source§fn clone(&self) -> ConePatterns
fn clone(&self) -> ConePatterns
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 moreSource§impl Debug for ConePatterns
impl Debug for ConePatterns
Source§impl Default for ConePatterns
impl Default for ConePatterns
Source§fn default() -> ConePatterns
fn default() -> ConePatterns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConePatterns
impl RefUnwindSafe for ConePatterns
impl Send for ConePatterns
impl Sync for ConePatterns
impl Unpin for ConePatterns
impl UnsafeUnpin for ConePatterns
impl UnwindSafe for ConePatterns
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