package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

doc/shakuhachi.database/SkhcDb/Role/index.html

Module SkhcDb.RoleSource

Operation on a role.

Sourcetype t =
  1. | Unknown
  2. | Artist
  3. | AlbumArtist
  4. | Composer

type of the role.

Sourceval compare : t -> t -> int

compare r1 r2 is Stdlib.compare r1 r2.

Sourceval equal : t -> t -> bool

equal r1 r2 tests whether r1 equals r2.

Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval to_string : t -> string

to_string role returns the string representation of role.

Sourceval to_int : t -> int

to_int role returns the integer representation of role.

Sourceval of_int : int -> t

of_int i returns the role associated with i. If i is invalid, of_int returns Unknown.

Sourceval roles : t list

roles is the list of all roles.

Sourceval choices : (string * t) list

choices is the list of all roles associated with their string representation.