MCPcopy Index your code
hub / github.com/carllerche/string

github.com/carllerche/string @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
22 symbols 25 edges 1 files 8 documented · 36% 17 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

String

A UTF-8 encoded string with configurable byte storage.

Build Status License: MIT Crates.io Documentation

Usage

To use string, first add this to your Cargo.toml:

[dependencies]
string = "0.3.0"

Next, add this to your crate:

extern crate string;

use string::{String, TryFrom};

let s: String<[u8; 2]> = String::try_from([b'h', b'i']).unwrap();
assert_eq!(&s[..], "hi");

See documentation for more details.

Extension points exported contracts — how you extend this code

StableAsRef (Interface)
Marker trait that indicates that a type is guaranteed safe to use as backing storage for `String`. In order to be safe, [11 …
src/lib.rs
TryFrom (Interface)
Attempt to construct `Self` via a conversion. This trait will be deprecated in favor of [std::convert::TryFrom] once it [1 …
src/lib.rs
Sealed (Interface)
Private trait to this crate to prevent traits from being implemented in downstream crates. [1 implementers]
src/lib.rs

Core symbols most depended-on inside this repo

get_ref
called by 0
src/lib.rs
get_mut
called by 0
src/lib.rs
into_inner
called by 0
src/lib.rs
from_str
called by 0
src/lib.rs
new
called by 0
src/lib.rs
from_utf8_unchecked
called by 0
src/lib.rs
eq
called by 0
src/lib.rs
hash
called by 0
src/lib.rs

Shape

Method 15
Function 3
Interface 3
Class 1

Languages

Rust100%

Modules by API surface

src/lib.rs22 symbols

For agents

$ claude mcp add string \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact