MCPcopy Create free account
hub / github.com/bwt-dev/bwt / or_err

Method or_err

src/error.rs:81–86  ·  view source on GitHub ↗
(self, context: D)

Source from the content-addressed store, hash-verified

79
80impl<T> OptionExt<T> for Option<T> {
81 fn or_err<D>(self, context: D) -> Result<T>
82 where
83 D: Display + Send + Sync + 'static,
84 {
85 self.context(context)
86 }
87
88 fn required(self) -> Result<T> {
89 self.context("missing required option")

Callers 5

bitcoind_authMethod · 0.80
setupFunction · 0.80
electrum_merkle_proofMethod · 0.80
electrum_id_from_posMethod · 0.80
from_strMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected