MCPcopy Create free account

hub / github.com/axos88/optics-rs / types & classes

Types & classes49 in github.com/axos88/optics-rs

↓ 1 callersClassFallibleIsoImpl
A wrapper of the [`FallibleIso`] optic implementations, encapsulating a potentially failing, reversible bijective conversion. `FallibleIsoImpl` provi
src/optics/fallible_iso/wrapper.rs:36
↓ 1 callersClassGetterImpl
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 callersClassIsoImpl
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 callersClassLensImpl
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 callersClassPartialGetterImpl
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 callersClassPrismImpl
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 callersClassSetterImpl
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 callersClassSomePrism
examples/extend_with_some_prism.rs:8
ClassA
examples/opaque.rs:9
ClassAppConfig
examples/simple.rs:12
ClassB
examples/opaque.rs:19
ClassCheck
src/test/code_quality/exported_items_by_optics.rs:10
ClassComposedFallibleIso
src/optics/fallible_iso/composed.rs:7
ClassComposedGetter
src/optics/getter/composed.rs:6
ClassComposedIso
src/optics/iso/composed.rs:7
ClassComposedLens
src/optics/lens/composed.rs:7
ClassComposedPartialGetter
src/optics/partial_getter/composed.rs:5
ClassComposedPrism
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
ClassComposedSetter
src/optics/setter/composed.rs:6
ClassConfig
src/test/fixtures.rs:11
ClassDatabaseConfig
src/test/fixtures.rs:20
InterfaceFallibleIso
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
InterfaceGetter
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
InterfaceHasGetter
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
InterfaceHasIncrement
examples/extend_with_increment.rs:3
InterfaceHasOver
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
InterfaceHasReverseGet
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
InterfaceHasSetter
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
InterfaceHasTotalGetter
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
InterfaceHasTotalReverseGet
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
ClassHttpConfig
examples/simple.rs:5
InterfaceIso
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
InterfaceLens
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
ClassMappedFallibleIso
src/optics/fallible_iso/mapped.rs:6
ClassMappedGetter
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
ClassMappedIso
src/optics/iso/mapped.rs:7
ClassMappedLens
src/optics/lens/mapped.rs:8
ClassMappedPartialGetter
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
ClassMappedPrism
src/optics/prism/mapped.rs:7
ClassMappedSetter
src/optics/setter/mapped.rs:5
InterfaceOptic
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
InterfacePartialGetter
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
ClassPerson
examples/opaque.rs:14
ClassPoint
examples/extend_with_increment.rs:15
ClassPoint
examples/extend_with_some_prism.rs:35
InterfacePrism
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
InterfaceSetter
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
EnumTimespan
src/test/fixtures.rs:3
ClassWasNone
examples/extend_with_some_prism.rs:7