pub struct Declaration { /* private fields */ }Expand description
What a bash release ships, as Cargo’s include and exclude declare
a crate’s package: gitignore-style patterns, where include overrides
exclude, and neither key ships every tracked file.
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub fn parse(key: &str, patterns: &[String]) -> Result<Gitignore, String>
pub fn parse(key: &str, patterns: &[String]) -> Result<Gitignore, String>
One pattern list as the gitignore matcher Cargo builds for it.
§Errors
The refusal text, naming the key and the pattern the matcher refuses.
Sourcepub fn new(include: &[String], exclude: &[String]) -> Result<Self, String>
pub fn new(include: &[String], exclude: &[String]) -> Result<Self, String>
The declaration of two pattern lists. An empty include is no
include, as in Cargo.
§Errors
The refusal text of a pattern the matcher refuses.
Auto Trait Implementations§
impl Forget for Declaration
impl Freeze for Declaration
impl Move for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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