pub struct PathParams { /* private fields */ }
Expand description
Parameters for the [Arbitrary
] implementation for [PathBuf
].
By default, this generates paths with 0 to 8 components uniformly at random, each of which is a
default StringParam
.
Implementations§
source§impl PathParams
impl PathParams
sourcepub fn components(&self) -> SizeRange
pub fn components(&self) -> SizeRange
Gets the number of components in the path.
sourcepub fn with_components(self, components: impl Into<SizeRange>) -> Self
pub fn with_components(self, components: impl Into<SizeRange>) -> Self
Sets the number of components in the path.
sourcepub fn component_regex(&self) -> StringParam
pub fn component_regex(&self) -> StringParam
Gets the regular expression to generate individual components.
sourcepub fn with_component_regex(
self,
component_regex: impl Into<StringParam>,
) -> Self
pub fn with_component_regex( self, component_regex: impl Into<StringParam>, ) -> Self
Sets the regular expression to generate individual components.
Trait Implementations§
source§impl Clone for PathParams
impl Clone for PathParams
source§fn clone(&self) -> PathParams
fn clone(&self) -> PathParams
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 PathParams
impl Debug for PathParams
source§impl Default for PathParams
impl Default for PathParams
source§impl Hash for PathParams
impl Hash for PathParams
source§impl PartialEq for PathParams
impl PartialEq for PathParams
impl Eq for PathParams
impl StructuralPartialEq for PathParams
Auto Trait Implementations§
impl Freeze for PathParams
impl RefUnwindSafe for PathParams
impl Send for PathParams
impl Sync for PathParams
impl Unpin for PathParams
impl UnwindSafe for PathParams
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)