MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / try_from

Method try_from

rust/src/api/invocation_arg.rs:299–303  ·  view source on GitHub ↗
(
        instance_res: Result<Instance, errors::J4RsError>,
    )

Source from the content-addressed store, hash-verified

297 type Error = errors::J4RsError;
298
299 fn try_from(
300 instance_res: Result<Instance, errors::J4RsError>,
301 ) -> errors::Result<InvocationArg> {
302 Ok(InvocationArg::from(instance_res?))
303 }
304}
305
306impl<'a> TryFrom<Null<'a>> for InvocationArg {

Callers

nothing calls this directly

Calls 4

get_thread_local_envFunction · 0.85
collectMethod · 0.80
mapMethod · 0.80
to_stringMethod · 0.80

Tested by

no test coverage detected