File Size v1.3.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 FileSize.Bit
or FileSize.Byte
. Returns
a tuple containing the status and value or error.
Converts the given value into a FileSize.Bit
or FileSize.Byte
. 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 FileSize.Bit
or FileSize.Byte
. 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 FileSize.Bit
or FileSize.Byte
. Returns
the value on success or raises FileSize.ParseError
on error.