pub struct PathConstraints { /* private fields */ }Expand description
Immutable path form constraints attached to one filesystem snapshot.
§Examples
use qubit_fs::path::{PathConstraints, PathForm};
let constraints = PathConstraints::absolute();
assert_eq!(PathForm::Absolute, constraints.form());Implementations§
Source§impl PathConstraints
impl PathConstraints
Sourcepub const fn absolute() -> Self
pub const fn absolute() -> Self
Creates constraints accepting only absolute paths.
§Returns
Constraints rejecting every relative path.
Sourcepub const fn relative() -> Self
pub const fn relative() -> Self
Creates constraints accepting only relative paths.
§Returns
Constraints rejecting every absolute path.
Sourcepub const fn either() -> Self
pub const fn either() -> Self
Creates constraints accepting either logical path form.
§Returns
Constraints accepting absolute and relative paths.
Trait Implementations§
Source§impl Clone for PathConstraints
impl Clone for PathConstraints
Source§impl Debug for PathConstraints
impl Debug for PathConstraints
impl Eq for PathConstraints
Source§impl PartialEq for PathConstraints
impl PartialEq for PathConstraints
impl StructuralPartialEq for PathConstraints
Auto Trait Implementations§
impl Freeze for PathConstraints
impl RefUnwindSafe for PathConstraints
impl Send for PathConstraints
impl Sync for PathConstraints
impl Unpin for PathConstraints
impl UnsafeUnpin for PathConstraints
impl UnwindSafe for PathConstraints
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