pub struct RouteRule { /* private fields */ }Implementations§
Source§impl RouteRule
impl RouteRule
pub fn new_static(path: &'static str) -> Self
pub fn new(path: impl Into<Cow<'static, Utf8Path>>) -> Self
pub fn new_with_target( name: impl Into<Cow<'static, str>>, target: impl Into<Cow<'static, Utf8Path>>, ) -> Self
pub fn with_file_extension( self, extension: impl Into<Cow<'static, str>>, ) -> Self
pub fn with_file_extensions(self, extensions: Vec<Cow<'static, str>>) -> Self
pub fn with_flatten(self, flatten: bool) -> Self
pub fn with_subdir(self, subdir: bool) -> Self
pub fn with_mutable(self, mutable: bool) -> Self
pub fn matches(&self, path: impl AsRef<Utf8Path>) -> bool
pub fn matches_extension(&self, path: impl AsRef<Utf8Path>) -> bool
pub fn matches_path(&self, path: impl AsRef<Utf8Path>) -> bool
pub fn map_file( &self, path: impl AsRef<Utf8Path>, package: &PackageRef, ) -> Option<Utf8PathBuf>
pub fn use_links(&self) -> bool
pub fn conflict_strategy(&self) -> ConflictStrategy
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteRule
impl<'de> Deserialize<'de> for RouteRule
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 RouteRule
Source§impl From<RouteRule> for InstallRule
impl From<RouteRule> for InstallRule
impl StructuralPartialEq for RouteRule
Auto Trait Implementations§
impl Freeze for RouteRule
impl RefUnwindSafe for RouteRule
impl Send for RouteRule
impl Sync for RouteRule
impl Unpin for RouteRule
impl UnsafeUnpin for RouteRule
impl UnwindSafe for RouteRule
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.