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

Method to_rust

rust/src/api/instance.rs:218–223  ·  view source on GitHub ↗

Returns the Rust representation of the provided instance

(self)

Source from the content-addressed store, hash-verified

216
217 /// Returns the Rust representation of the provided instance
218 pub fn to_rust<T: Any>(self) -> errors::Result<T>
219 where
220 T: DeserializeOwned,
221 {
222 self.jvm.to_rust(self.instance)
223 }
224
225 /// Returns the Rust representation of the provided instance, boxed
226 pub fn to_rust_boxed<T: Any>(self) -> errors::Result<Box<T>>

Callers 1

is_nullFunction · 0.45

Calls

no outgoing calls

Tested by 1

is_nullFunction · 0.36