Trait gdrust::unsafe_functions::result_ext::ResultExt[][src]

pub trait ResultExt<T> {
    fn godot_unwrap(self) -> T;
fn godot_expect(self, msg: &str) -> T; }

Required methods

fn godot_unwrap(self) -> T[src]

Performs the exact same functionality as Result::unwrap, but prints errors to godot’s output also.

fn godot_expect(self, msg: &str) -> T[src]

Performs the exact same functionality as Result::expect, but prints errors to godot’s output also.

Loading content...

Implementations on Foreign Types

impl<T, E: Debug> ResultExt<T> for Result<T, E>[src]

Loading content...

Implementors

Loading content...