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) -> SizeRangeGets the number of components in the path.
fn with_components(self, components: impl Into<SizeRange>) -> SelfSets the number of components in the path.
fn component_regex(&self) -> StringParamGets the regular expression to generate individual components.
fn with_component_regex(self, component_regex: impl Into<StringParam>) -> SelfSets the regular expression to generate individual components.
Trait Implementations
impl Clone for PathParams
fn clone(&self) -> PathParams
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: &PathParams) -> 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for PathParams
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for PathParams
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for PathParams
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PathParams
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PathParams
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for PathParams
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for PathParams
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for PathParams
where
T: ?Sized,
impl<T> ToOwned for PathParams
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for PathParams
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PathParams
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PathParams
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for PathParams
where
V: MultiLane<T>,
fn vzip(self) -> V