pub fn filesizeformat(value: Value, _: HashMap<String, Value>) -> Result<Value> {
    let num = try_get_value!("filesizeformat", "value", i64, value);
    num.file_size(file_size_opts::CONVENTIONAL)
        .or_else(|_| {
            Err(format!("Filter `filesizeformat` was called on a negative number: {}", num).into())
        })
        .map(to_value)
        .map(|x| x.unwrap())
}
/// Returns a human-readable file size (i.e. '110 MB') from an integer
Returns a human-readable file size  from an integer
Returns a human - readable file size from an integer
pub fn filesizeformat(value: Value, _: HashMap<String, Value>) -> Result<Value> {
    let num = try_get_value!("filesizeformat", "value", i64, value);
    num.file_size(file_size_opts::CONVENTIONAL)
        .or_else(|_| {
            Err(format!("Filter `filesizeformat` was called on a negative number: {}", num).into())
        })
        .map(to_value)
        .map(|x| x.unwrap())
}
pub fn filesizeformat ( value : Value , _ : HashMap < String , Value > ) -> Result < Value > { let num = try_get_value ! ( " " " " i64 value ) ; num . file_size ( file_size_opts :: CONVENTIONAL ) . or_else ( | _ | { Err ( format ! ( " " num ) . into ( ) ) } ) . map ( to_value ) . map ( | x | x . unwrap ( ) ) }
Returns a human-readable file size (i.e.
Returns a human - readable file size ( i . e .
value
HashMap<String, Value>
value
HashMap<String, Value>