pub struct ReplaceDir {
pub path: RelativePathBuf,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub file_extension: Option<String>,
pub files: Files,
}
Fields§
§path: RelativePathBuf
§prefix: Option<String>
§suffix: Option<String>
§file_extension: Option<String>
§files: Files
Implementations§
Source§impl ReplaceDir
impl ReplaceDir
Sourcepub fn new(path: RelativePathBuf) -> Self
pub fn new(path: RelativePathBuf) -> Self
Construct a new replacement for the given directory.
Sourcepub fn insert_file(
&mut self,
file_extension: Option<&str>,
file: RelativePathBuf,
transcript: Transcript,
) -> Result<(), Error>
pub fn insert_file( &mut self, file_extension: Option<&str>, file: RelativePathBuf, transcript: Transcript, ) -> Result<(), Error>
Insert the given file into the configuration.
Sourcepub fn contains(&self, path: &RelativePath) -> bool
pub fn contains(&self, path: &RelativePath) -> bool
Test if the dir contains the given path.
Trait Implementations§
Source§impl Clone for ReplaceDir
impl Clone for ReplaceDir
Source§fn clone(&self) -> ReplaceDir
fn clone(&self) -> ReplaceDir
Returns a copy 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 ReplaceDir
impl Debug for ReplaceDir
Source§impl<'de> Deserialize<'de> for ReplaceDir
impl<'de> Deserialize<'de> for ReplaceDir
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
Source§impl Ord for ReplaceDir
impl Ord for ReplaceDir
Source§fn cmp(&self, other: &ReplaceDir) -> Ordering
fn cmp(&self, other: &ReplaceDir) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReplaceDir
impl PartialEq for ReplaceDir
Source§impl PartialOrd for ReplaceDir
impl PartialOrd for ReplaceDir
Source§impl Serialize for ReplaceDir
impl Serialize for ReplaceDir
impl Eq for ReplaceDir
impl StructuralPartialEq for ReplaceDir
Auto Trait Implementations§
impl Freeze for ReplaceDir
impl RefUnwindSafe for ReplaceDir
impl Send for ReplaceDir
impl Sync for ReplaceDir
impl Unpin for ReplaceDir
impl UnwindSafe for ReplaceDir
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