MCPcopy Index your code
hub / github.com/SoftbearStudios/bitcode / err

Function err

src/error.rs:6–8  ·  view source on GitHub ↗

Short version of `Err(error("..."))`.

(msg: &'static str)

Source from the content-addressed store, hash-verified

4
5/// Short version of `Err(error("..."))`.
6pub fn err<T>(msg: &'static str) -> Result<T, Error> {
7 Err(error(msg))
8}
9
10/// Creates an error with a message that might be displayed.
11pub fn error(_msg: &'static str) -> Error {

Callers 14

populateMethod · 0.70
populateMethod · 0.70
invalid_packingFunction · 0.70
consume_bytesFunction · 0.70
consume_byte_arraysFunction · 0.70
expect_eofFunction · 0.70
populateMethod · 0.70
populateMethod · 0.50
invalid_enum_variantFunction · 0.50
check_zst_lenFunction · 0.50
deserialize_anyMethod · 0.50
deserialize_optionMethod · 0.50

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected