fn defaults(what: &Table, attribute: &str, default: i64) -> i64 {
        let wrapped_default = Value::Integer(default);
        let attr = what.get(attribute).unwrap_or(&wrapped_default);
        attr.as_integer().expect(&format!("`{}` must be an integer", attribute)[..])
    }
/// override the default value if the given table location exists.
override the default value if the given table location exists.
override the default value if the given table location exists .
fn defaults(what: &Table, attribute: &str, default: i64) -> i64 {
        let wrapped_default = Value::Integer(default);
        let attr = what.get(attribute).unwrap_or(&wrapped_default);
        attr.as_integer().expect(&format!("`{}` must be an integer", attribute)[..])
    }
fn defaults ( what : & Table , attribute : & str , default : i64 ) -> i64 { let wrapped_default = Value :: Integer ( default ) ; let attr = what . get ( attribute ) . unwrap_or ( & wrapped_default ) ; attr . as_integer ( ) . expect ( & format ! ( " " attribute ) [ .. ] ) }
override the default value if the given table location exists.
override the default value if the given table location exists .
what
&Table
attribute
&str
default
i64