qubit_fs/path_form.rs
1// =============================================================================
2// Copyright (c) 2025 - 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8// facade.
9//! Permitted path forms for filesystem property snapshots.
10
11/// Permitted absolute or relative form for paths accepted by a filesystem.
12///
13/// # Examples
14///
15/// ```rust
16/// use qubit_fs::path::PathForm;
17///
18/// assert!(matches!(PathForm::Absolute, PathForm::Absolute));
19/// ```
20#[derive(Clone, Copy, Debug, Eq, PartialEq)]
21pub enum PathForm {
22 /// Only absolute paths are accepted.
23 Absolute,
24 /// Only relative paths are accepted.
25 Relative,
26 /// Both absolute and relative paths are accepted.
27 Either,
28}