diff options
Diffstat (limited to 'lib/kernel/Path.mli')
| -rw-r--r-- | lib/kernel/Path.mli | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/kernel/Path.mli b/lib/kernel/Path.mli index 6a74350..f9f4cd0 100644 --- a/lib/kernel/Path.mli +++ b/lib/kernel/Path.mli @@ -3,6 +3,19 @@ type t val this : t val (@/) : string -> t -> t +(** the names a path is made of, in the order it walks them *) +val to_list : t -> string list + +(** a path from the names it walks, the inverse of [to_list] *) +val of_list : string list -> t + +(** do two paths walk the same names *) +val equal : t -> t -> bool + +(** a path as a single name, with the separator escaped where a + component contains it *) +val to_string : t -> string + val lookup : Protocols.Handle.t -> t -> (Protocols.Handle.t, Concepts.Condition.condition) result val update : Protocols.Handle.t -> t -> string -> Protocols.Handle.t option -> Protocols.Handle.t option -> (bool, Concepts.Condition.condition) result |
