MCPcopy Index your code
hub / github.com/axos88/optics-rs

github.com/axos88/optics-rs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
226 symbols 367 edges 51 files 83 documented · 37%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

HasGetter (Interface)
A base trait for optics that provides a partial getter operation. This trait defines the ability to retrieve a value of [19 …
src/base/getter.rs
PartialGetter (Interface)
A `PartialGetter` is an optic that focuses on a potentially missing value, providing only a read operations It provides [1 …
src/optics/partial_getter/mod.rs
HasTotalGetter (Interface)
Provides a simplified interface for optics with infallible getter operations. This trait is automatically implemented f [1 …
src/extensions/total_getter.rs
Optic (Interface)
The base trait for all optics in this library. An `Optic` is a general abstraction representing a way to access and upd
src/optic.rs
HasIncrement (Interface)
(no doc) [1 implementers]
examples/extend_with_increment.rs
HasReverseGet (Interface)
A base trait for optics that provides a partial reversible operation. This trait defines the ability to reverse a value [6 …
src/base/reversible.rs
Setter (Interface)
A `Setter` is an optic that can change its focused value, providing only a write operation It provides: - `set` to set [1 …
src/optics/setter/mod.rs
HasTotalReverseGet (Interface)
Provides a simplified interface for optics with infallible reverse-get operations. This trait is automatically implemen [1 …
src/extensions/total_reverse_get.rs

Core symbols most depended-on inside this repo

get
called by 11
src/extensions/total_getter.rs
set
called by 6
src/optics/iso/mapped.rs
new
called by 5
src/optics/iso/mapped.rs
compose_with_prism
called by 4
src/optics/iso/wrapper.rs
set
called by 4
examples/extend_with_some_prism.rs
try_get
called by 3
src/optics/iso/mapped.rs
compose_with_fallible_iso
called by 3
src/optics/iso/wrapper.rs
reverse_get
called by 3
src/extensions/total_reverse_get.rs

Shape

Method 130
Function 47
Class 33
Interface 15
Enum 1

Languages

Rust100%

Modules by API surface

src/optics/fallible_iso/wrapper.rs16 symbols
src/optics/prism/wrapper.rs15 symbols
src/optics/partial_getter/wrapper.rs14 symbols
src/optics/iso/wrapper.rs13 symbols
src/optics/lens/wrapper.rs12 symbols
src/optics/getter/wrapper.rs11 symbols
src/test/mod.rs9 symbols
examples/opaque.rs8 symbols
examples/extend_with_some_prism.rs7 symbols
src/optics/iso/mapped.rs6 symbols
src/optics/iso/composed.rs6 symbols
src/optics/fallible_iso/mapped.rs6 symbols

For agents

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

⬇ download graph artifact