Registry / utility / maybe-owned

maybe-owned

JSON →
library0.3.4rscratesunverified

Provides a MaybeOwned type similar to Cow but with From<T> and From<&'a T> implementations without requiring ToOwned.

# Cargo.toml [dependencies] maybe-owned = "0.3.4"
INSTALL
IMPORT
SIG · MAYBE-OWNED
M
maybe-owned
utilityrustv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MaybeOwned
use maybe_owned::MaybeOwned;

Create a MaybeOwned from an owned or borrowed value.

use maybe_owned::MaybeOwned; fn example() { let owned: MaybeOwned<String> = "hello".to_string().into(); let borrowed: MaybeOwned<String> = "world".into(); println!("{}", *owned); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
maybe-owned — cargo add maybe-owned · libregistry