Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axos88/optics-rs
/ types & classes
Types & classes
49 in github.com/axos88/optics-rs
⨍
Functions
177
◇
Types & classes
49
↓ 1 callers
Class
FallibleIsoImpl
A wrapper of the [`FallibleIso`] optic implementations, encapsulating a potentially failing, reversible bijective conversion. `FallibleIsoImpl` provi
src/optics/fallible_iso/wrapper.rs:36
↓ 1 callers
Class
GetterImpl
A wrapper of the [`Getter`] optic implementations, encapsulating a total getter function. `GetterImpl` provides a way to define total getters - optic
src/optics/getter/wrapper.rs:31
↓ 1 callers
Class
IsoImpl
A wrapper of the [`Iso`] optic implementations, encapsulating a reversible bijective conversion. `IsoImpl` provides a way to define a reversible bije
src/optics/iso/wrapper.rs:31
↓ 1 callers
Class
LensImpl
A wrapper of the [`Lens`] optic implementations, encapsulating a getter and setter function. `LensImpl` provides a way to define lenses - optics that
src/optics/lens/wrapper.rs:30
↓ 1 callers
Class
PartialGetterImpl
A wrapper of the [`PartialGetter`] optic implementations, encapsulating a partial getter function. `PartialGetterImpl` provides a way to define parti
src/optics/partial_getter/wrapper.rs:30
↓ 1 callers
Class
PrismImpl
A wrapper of the [`Prism`] optic implementations, encapsulating a partial getter and a setter function. `Prism` provides a way to define optics that
src/optics/prism/wrapper.rs:29
↓ 1 callers
Class
SetterImpl
A wrapper of the [`Setter`] optic implementations, encapsulating a setter function. `SetterImpl` provides a way to define setters - optics that are a
src/optics/setter/wrapper.rs:25
↓ 1 callers
Class
SomePrism
examples/extend_with_some_prism.rs:8
Class
A
examples/opaque.rs:9
Class
AppConfig
examples/simple.rs:12
Class
B
examples/opaque.rs:19
Class
Check
src/test/code_quality/exported_items_by_optics.rs:10
Class
ComposedFallibleIso
src/optics/fallible_iso/composed.rs:7
Class
ComposedGetter
src/optics/getter/composed.rs:6
Class
ComposedIso
src/optics/iso/composed.rs:7
Class
ComposedLens
src/optics/lens/composed.rs:7
Class
ComposedPartialGetter
src/optics/partial_getter/composed.rs:5
Class
ComposedPrism
A `ComposedPrism` represents the composition of two optics, resulting in a `Prism` that focuses from a source type `S` to a target type `A` through an
src/optics/prism/composed.rs:31
Class
ComposedSetter
src/optics/setter/composed.rs:6
Class
Config
src/test/fixtures.rs:11
Class
DatabaseConfig
src/test/fixtures.rs:20
Interface
FallibleIso
A `FallibleIso` defines a reversible, but potentially failing conversion between two types. It provides: - `try_get` to convert a value of type `S` t
src/optics/fallible_iso/mod.rs:32
Interface
Getter
A `Getter` is an optic that focuses on a value inside a product type. It provides: - `get` to extract a focused value from a larger type This is use
src/optics/getter/mod.rs:30
Interface
HasGetter
A base trait for optics that provides a partial getter operation. This trait defines the ability to retrieve a value of type `A` from a source of typ
src/base/getter.rs:27
Interface
HasIncrement
examples/extend_with_increment.rs:3
Interface
HasOver
Provides a convenient interface for applying a transformation function over a target value within a source. This trait is automatically implemented f
src/extensions/over.rs:34
Interface
HasReverseGet
A base trait for optics that provides a partial reversible operation. This trait defines the ability to reverse a value of type `A` back into a sourc
src/base/reversible.rs:29
Interface
HasSetter
TODO: Consider returning a bool here, or adding a SetterError associated type A base trait for optics that provides a setter operation. This trait de
src/base/setter.rs:17
Interface
HasTotalGetter
Provides a simplified interface for optics with infallible getter operations. This trait is automatically implemented for any optic that implements [
src/extensions/total_getter.rs:30
Interface
HasTotalReverseGet
Provides a simplified interface for optics with infallible reverse-get operations. This trait is automatically implemented for any optic that impleme
src/extensions/total_reverse_get.rs:33
Class
HttpConfig
examples/simple.rs:5
Interface
Iso
An `Iso` defines an isomorphism between two type, which is a bijective, reversible conversion between the members of two types. It provides: - `get`
src/optics/iso/mod.rs:33
Interface
Lens
An optic for focusing on a value that is guaranteed to exist within a larger structure. A `Lens` is appropriate for product types (e.g., structs) whe
src/optics/lens/mod.rs:50
Class
MappedFallibleIso
src/optics/fallible_iso/mapped.rs:6
Class
MappedGetter
Creates a new `Getter` with the provided getter function. # Type Parameters - `S`: The source type of the optic - `A`: The target type of the optic #
src/optics/getter/mapped.rs:33
Class
MappedIso
src/optics/iso/mapped.rs:7
Class
MappedLens
src/optics/lens/mapped.rs:8
Class
MappedPartialGetter
A concrete implementation of the [`PartialGetter`] trait. This struct allows you to create a `PartialGetter` by providing custom getter and setter fu
src/optics/partial_getter/mapped.rs:29
Class
MappedPrism
src/optics/prism/mapped.rs:7
Class
MappedSetter
src/optics/setter/mapped.rs:5
Interface
Optic
The base trait for all optics in this library. An `Optic` is a general abstraction representing a way to access and update a value (`A`) inside a lar
src/optic.rs:20
Interface
PartialGetter
A `PartialGetter` is an optic that focuses on a potentially missing value, providing only a read operations It provides: - `try_get` to optionally ex
src/optics/partial_getter/mod.rs:34
Class
Person
examples/opaque.rs:14
Class
Point
examples/extend_with_increment.rs:15
Class
Point
examples/extend_with_some_prism.rs:35
Interface
Prism
A `Prism` is an optic that focuses on a potentially missing value, such as a variant of a sum type (enum). It provides: - `try_get` to optionally ext
src/optics/prism/mod.rs:38
Interface
Setter
A `Setter` is an optic that can change its focused value, providing only a write operation It provides: - `set` to set the focused value inside a lar
src/optics/setter/mod.rs:33
Enum
Timespan
src/test/fixtures.rs:3
Class
WasNone
examples/extend_with_some_prism.rs:7