MCPcopy Create free account
hub / github.com/BersisSe/feather / get_clone

Method get_clone

crates/feather/src/internals/context.rs:154–156  ·  view source on GitHub ↗

Get a clone of the inner state. This is a convenience method for cloneable state types. It automatically acquires the lock, clones the value, and releases the lock. # Example ```rust,ignore #[derive(Clone)] struct Counter { count: i32, } let counter = ctx.get_state:: >(); let counter_copy = counter.get_clone(); ```

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected