Struct PathParams

pub struct PathParams { /* private fields */ }

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

impl PathParams

fn components(&self) -> SizeRange

Gets the number of components in the path.

fn with_components(self, components: impl Into<SizeRange>) -> Self

Sets the number of components in the path.

fn component_regex(&self) -> StringParam

Gets the regular expression to generate individual components.

fn with_component_regex(self, component_regex: impl Into<StringParam>) -> Self

Sets the regular expression to generate individual components.

Trait Implementations

impl Clone for PathParams

fn clone(&self) -> Self

impl Debug for PathParams

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for PathParams

fn default() -> Self

impl Eq for PathParams

impl Hash for PathParams

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for PathParams

fn eq(&self, other: &Self) -> bool

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 UnsafeUnpin for PathParams

impl UnwindSafe for PathParams

Blanket Implementations

impl<T> Any for PathParams where T: 'static + ?Sized,

impl<T> Borrow<T> for PathParams where T: ?Sized,

impl<T> BorrowMut<T> for PathParams where T: ?Sized,

impl<T> CloneToUninit for PathParams where T: Clone,

impl<T> From<T> for PathParams

impl<T> ToOwned for PathParams where T: Clone,

impl<T, U> Into<U> for PathParams where U: From<T>,

impl<T, U> TryFrom<U> for PathParams where U: Into<T>,

impl<T, U> TryInto<U> for PathParams where U: TryFrom<T>,