pub struct InstallRuleset<'a> { /* private fields */ }Implementations§
Source§impl<'a> InstallRuleset<'a>
impl<'a> InstallRuleset<'a>
pub const fn new(rules: &'a [InstallRule]) -> Self
pub fn with_default_rule(self, default_rule: &'a InstallRule) -> Self
pub fn with_exclude(self, exclude: &'a GlobSet) -> Self
pub fn rules(&self) -> &[InstallRule]
pub fn default_rule(&self) -> Option<&InstallRule>
pub fn exclude(&self) -> Option<&GlobSet>
pub fn find_rule_for_path( &self, path: impl AsRef<Utf8Path>, ) -> Option<&'a InstallRule>
pub fn find_rule_for_mapped_path( &self, path: impl AsRef<Utf8Path>, ) -> Option<&'a InstallRule>
pub fn map_file( &self, path: impl AsRef<Utf8Path>, package: &PackageRef, ) -> Option<Utf8PathBuf>
pub fn map_file_and_return_rule( &self, path: impl AsRef<Utf8Path>, package: &PackageRef, ) -> Option<(Utf8PathBuf, &InstallRule)>
pub fn is_excluded(&self, path: impl AsRef<Path>) -> bool
Trait Implementations§
Source§impl<'a> Clone for InstallRuleset<'a>
impl<'a> Clone for InstallRuleset<'a>
Source§fn clone(&self) -> InstallRuleset<'a>
fn clone(&self) -> InstallRuleset<'a>
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 moreimpl<'a> Copy for InstallRuleset<'a>
Auto Trait Implementations§
impl<'a> Freeze for InstallRuleset<'a>
impl<'a> RefUnwindSafe for InstallRuleset<'a>
impl<'a> Send for InstallRuleset<'a>
impl<'a> Sync for InstallRuleset<'a>
impl<'a> Unpin for InstallRuleset<'a>
impl<'a> UnsafeUnpin for InstallRuleset<'a>
impl<'a> UnwindSafe for InstallRuleset<'a>
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