pub trait ResultExt<T, E> {
// Required method
fn to_tool_output(
self,
tool: &'static str,
operation: String,
location: SourceLocation,
) -> ComprehensiveToolOutput<Option<T>>
where E: Display;
}Expand description
Extension trait for Result<T, E> to easily convert to ComprehensiveToolOutput
Required Methods§
Sourcefn to_tool_output(
self,
tool: &'static str,
operation: String,
location: SourceLocation,
) -> ComprehensiveToolOutput<Option<T>>where
E: Display,
fn to_tool_output(
self,
tool: &'static str,
operation: String,
location: SourceLocation,
) -> ComprehensiveToolOutput<Option<T>>where
E: Display,
Convert a Result to a ComprehensiveToolOutput