stdune
Dune's unstable standard library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package stdune
-
stdune
-
-
stdune.filesystem_stubs
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val return : 'a -> ( 'a, _ ) t
val ok : 'a -> ( 'a, _ ) t
val value : ( 'a, 'e ) result -> default:'a -> 'a
value r ~default
is v
if r
is Ok v
and default
otherwise.
val is_ok : ( _, _ ) t -> bool
val is_error : ( _, _ ) t -> bool
val iter : ( 'a, _ ) t -> f:( 'a -> unit ) -> unit
val ok_exn : ( 'a, exn ) t -> 'a
val try_with : ( unit -> 'a ) -> ( 'a, exn ) t
val hash : ( 'a -> int ) -> ( 'b -> int ) -> ( 'a, 'b ) t -> int
module O : sig ... end
val to_option : ( 'a, 'error ) t -> 'a option
val to_dyn :
'a Dyn.builder ->
'error Dyn.builder ->
( 'a, 'error ) t Dyn.builder
type ('a, 'error) result = ( 'a, 'error ) t
For compatibility with some other code
module List : sig ... end
module Option : sig ... end
ON THIS PAGE
No table of contents