pub struct GlobRule { /* private fields */ }Implementations§
Source§impl GlobRule
impl GlobRule
pub fn new(pattern: Glob, target: impl Into<Cow<'static, Utf8Path>>) -> Self
pub fn try_from_pattern( pattern: impl AsRef<str>, target: impl Into<Cow<'static, Utf8Path>>, ) -> Result<Self, Error>
pub fn strip_top_level(self, strip_top_level: bool) -> Self
pub fn strip_levels(self, strip_levels: usize) -> Self
pub fn use_links(self, use_links: bool) -> Self
pub fn with_subdir(self, subdir: bool) -> Self
pub fn matches(&self, path: impl AsRef<Utf8Path>) -> bool
pub fn map_file( &self, path: impl AsRef<Utf8Path>, package: &PackageRef, ) -> Option<Utf8PathBuf>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlobRule
impl<'de> Deserialize<'de> for GlobRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GlobRule
Source§impl From<GlobRule> for InstallRule
impl From<GlobRule> for InstallRule
impl StructuralPartialEq for GlobRule
Auto Trait Implementations§
impl Freeze for GlobRule
impl RefUnwindSafe for GlobRule
impl Send for GlobRule
impl Sync for GlobRule
impl Unpin for GlobRule
impl UnsafeUnpin for GlobRule
impl UnwindSafe for GlobRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.