MCPcopy Create free account
hub / github.com/Ember-Moth/ppanel / is_code_err

Function is_code_err

crates/result/src/error_code.rs:203–205  ·  view source on GitHub ↗

Returns `true` when the code is a known, registered error code. Mirrors Go `xerr.IsCodeErr`.

(err_code: u32)

Source from the content-addressed store, hash-verified

201///
202/// Mirrors Go `xerr.IsCodeErr`.
203pub fn is_code_err(err_code: u32) -> bool {
204 MESSAGES.contains_key(&err_code)
205}
206
207#[cfg(test)]
208mod tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected