Module Url.Path

type kind = [
  1. | `Class
  2. | `ClassType
  3. | `File
  4. | `LeafPage
  5. | `Module
  6. | `ModuleType
  7. | `Page
  8. | `Parameter of int
  9. | `SourcePage
]
val pp_kind : Format.formatter -> kind -> unit
val string_of_kind : kind -> string
type t = {
  1. kind : kind;
  2. parent : t option;
  3. name : string;
}
type any_pv = [
  1. | `AssetFile of [ `LeafPage of Odoc_model__Paths.Identifier.Id.container_page_pv Odoc_model__.Paths_types.id option * Odoc_model__.Names.PageName.t | `Page of Odoc_model__Paths.Identifier.Id.container_page_pv Odoc_model__.Paths_types.id option * Odoc_model__.Names.PageName.t ] Odoc_model__.Paths_types.id * string
  2. | `Class of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id * Odoc_model__.Names.ClassName.t
  3. | `ClassType of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id * Odoc_model__.Names.ClassTypeName.t
  4. | `LeafPage of Odoc_model__Paths.Identifier.Id.container_page_pv Odoc_model__.Paths_types.id option * Odoc_model__.Names.PageName.t
  5. | `Module of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id * Odoc_model__.Names.ModuleName.t
  6. | `ModuleType of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id * Odoc_model__.Names.ModuleTypeName.t
  7. | `Page of Odoc_model__Paths.Identifier.Id.container_page_pv Odoc_model__.Paths_types.id option * Odoc_model__.Names.PageName.t
  8. | `Parameter of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id * Odoc_model__.Names.ModuleName.t
  9. | `Result of Odoc_model__Paths.Identifier.Id.signature_pv Odoc_model__.Paths_types.id
  10. | `Root of Odoc_model__Paths.Identifier.Id.container_page_pv Odoc_model__.Paths_types.id option * Odoc_model__.Names.ModuleName.t
  11. | `SourceDir of Odoc_model__Paths.Identifier.Id.source_dir_pv Odoc_model__.Paths_types.id * string
  12. | `SourcePage of Odoc_model__Paths.Identifier.Id.source_dir_pv Odoc_model__.Paths_types.id * string
]
val from_identifier : [< any_pv ] Odoc_model.Paths.Identifier.id -> t
val to_list : t -> (kind * string) list
val of_list : (kind * string) list -> t option
val split : is_dir:(kind -> [ `Always | `IfNotLast | `Never ]) -> (kind * string) list -> (kind * string) list * (kind * string) list