MCPcopy Index your code
hub / github.com/RustPython/RustPython / into_result

Method into_result

crates/derive-impl/src/util.rs:647–653  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

645 fn into_error(self) -> Option<syn::Error>;
646
647 fn into_result(self) -> Result<()> {
648 if let Some(error) = self.into_error() {
649 Err(error)
650 } else {
651 Ok(())
652 }
653 }
654
655 fn ok_or_push<T>(&mut self, r: Result<T>) -> Option<T>;
656}

Callers 3

nextMethod · 0.80
merge_objectMethod · 0.80
validateMethod · 0.80

Implementers 1

util.rscrates/derive-impl/src/util.rs

Calls 2

into_errorMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected