pub enum ExpandStrategy {
SeparateFolders(String),
UniqueFolder(String),
}Expand description
An expand strategy defines how.
Variants§
SeparateFolders(String)
Persists each child in a different folder.
UniqueFolder(String)
Persists each child in the same folder.
Implementations§
Source§impl ExpandStrategy
impl ExpandStrategy
Sourcepub fn resolve_path(
&self,
resolvable: &ResolvablePath,
child_count: usize,
) -> PathBuf
pub fn resolve_path( &self, resolvable: &ResolvablePath, child_count: usize, ) -> PathBuf
Resolves a ResolvablePath to a PathBuf.
Trait Implementations§
Source§impl Clone for ExpandStrategy
impl Clone for ExpandStrategy
Source§fn clone(&self) -> ExpandStrategy
fn clone(&self) -> ExpandStrategy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpandStrategy
impl Debug for ExpandStrategy
Source§impl Default for ExpandStrategy
impl Default for ExpandStrategy
Source§impl Hash for ExpandStrategy
impl Hash for ExpandStrategy
Source§impl PartialEq for ExpandStrategy
impl PartialEq for ExpandStrategy
impl Eq for ExpandStrategy
impl StructuralPartialEq for ExpandStrategy
Auto Trait Implementations§
impl Freeze for ExpandStrategy
impl RefUnwindSafe for ExpandStrategy
impl Send for ExpandStrategy
impl Sync for ExpandStrategy
impl Unpin for ExpandStrategy
impl UnwindSafe for ExpandStrategy
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)