Struct PathParams

struct PathParams { ... }

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: &Self) -> SizeRange

Gets the number of components in the path.

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

Sets the number of components in the path.

fn component_regex(self: &Self) -> StringParam

Gets the regular expression to generate individual components.

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

Sets the regular expression to generate individual components.

impl Clone for PathParams

fn clone(self: &Self) -> PathParams

impl Debug for PathParams

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

impl Default for PathParams

fn default() -> Self

impl Eq for PathParams

impl Freeze for PathParams

impl Hash for PathParams

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

impl PartialEq for PathParams

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

impl RefUnwindSafe for PathParams

impl Send for PathParams

impl StructuralPartialEq for PathParams

impl Sync for PathParams

impl Unpin for PathParams

impl UnwindSafe for PathParams

impl<T> Any for PathParams

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PathParams

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PathParams

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for PathParams

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for PathParams

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for PathParams

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for PathParams

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PathParams

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PathParams

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for PathParams

fn vzip(self: Self) -> V