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

Method to_rust

rust/src/api/mod.rs:1356–1361  ·  view source on GitHub ↗

Returns the Rust representation of the provided instance

(&self, instance: Instance)

Source from the content-addressed store, hash-verified

1354
1355 /// Returns the Rust representation of the provided instance
1356 pub fn to_rust<T>(&self, instance: Instance) -> errors::Result<T>
1357 where
1358 T: DeserializeOwned + Any,
1359 {
1360 self.to_rust_boxed(instance).map(|v| *v)
1361 }
1362
1363 pub fn to_rust_deserialized<T>(&self, instance: Instance) -> errors::Result<T>
1364 where

Calls 2

mapMethod · 0.80
to_rust_boxedMethod · 0.45