File Size v2.0.0 FileSize.Parser View Source
A module that provides functions to convert values to file sizes.
Link to this section Summary
Functions
Converts the given value into a value of type FileSize.t/0
. Returns a
tuple containing the status and value or error.
Converts the given value into a value of type FileSize.t/0
. Returns the
value on success or raises FileSize.ParseError
on error.
Link to this section Functions
Link to this function
parse(value)
View Source
parse(value)
View Source
parse(any()) :: {:ok, FileSize.t()} | {:error, FileSize.ParseError.t()}
parse(any()) :: {:ok, FileSize.t()} | {:error, FileSize.ParseError.t()}
Converts the given value into a value of type FileSize.t/0
. Returns a
tuple containing the status and value or error.
Link to this function
parse!(value)
View Source
parse!(value)
View Source
parse!(any()) :: FileSize.t() | no_return()
parse!(any()) :: FileSize.t() | no_return()
Converts the given value into a value of type FileSize.t/0
. Returns the
value on success or raises FileSize.ParseError
on error.