qubit-fs 0.3.2

Provider-neutral synchronous and asynchronous filesystem abstraction for Rust
Documentation
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
// facade.
//! Permitted path forms for filesystem property snapshots.

/// Permitted absolute or relative form for paths accepted by a filesystem.
///
/// # Examples
///
/// ```rust
/// use qubit_fs::path::{PathConstraints, PathForm};
///
/// let constraints = PathConstraints::absolute();
/// assert_eq!(PathForm::Absolute, constraints.form());
/// ```
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum PathForm {
    /// Only absolute paths are accepted.
    Absolute,
    /// Only relative paths are accepted.
    Relative,
    /// Both absolute and relative paths are accepted.
    Either,
}