fn len_as_c_int(len: usize) -> Result<c_int> {
    if len >= (c_int::MAX as usize) {
        Err(Error::SqliteFailure(
            ffi::Error::new(ffi::SQLITE_TOOBIG),
            None,
        ))
    } else {
        Ok(len as c_int)
    }
}
// Helper to cast to c_int safely, returning the correct error type if the cast
// failed.
Helper to cast to c_int safely, returning the correct error type if the cast
failed.
Helper to cast to c_int safely returning the correct error type if the cast failed .
fn len_as_c_int(len: usize) -> Result<c_int> {
    if len >= (c_int::MAX as usize) {
        Err(Error::SqliteFailure(
            ffi::Error::new(ffi::SQLITE_TOOBIG),
            None,
        ))
    } else {
        Ok(len as c_int)
    }
}
fn len_as_c_int ( len : usize ) -> Result < c_int > { if len >= ( c_int :: MAX as usize ) { Err ( Error :: SqliteFailure ( ffi :: Error :: new ( ffi :: SQLITE_TOOBIG ) , None , ) ) } else { Ok ( len as c_int ) } }
Helper to cast to c_int safely, returning the correct error type if the cast
failed.
Helper to cast to c_int safely returning the correct error type if the cast failed .
len
usize