Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/axos88/optics-rs
/ functions
Functions
177 in github.com/axos88/optics-rs
⨍
Functions
177
◇
Types & classes
49
↓ 11 callers
Method
get
(&self, source: &S)
src/extensions/total_getter.rs:47
↓ 6 callers
Method
set
(&self, source: &mut S, value: A)
src/optics/iso/mapped.rs:48
↓ 5 callers
Function
new
(get_fn: GET, rev_fn: REV)
src/optics/iso/mapped.rs:124
↓ 4 callers
Method
compose_with_prism
Composes this `IsoImpl<S,I>` with a `Prism<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially. The resulting `
src/optics/iso/wrapper.rs:190
↓ 4 callers
Method
set
(&self, source: &mut Option<A>, value: A)
examples/extend_with_some_prism.rs:23
↓ 3 callers
Method
compose_with_fallible_iso
Composes this `IsoImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `FallibleIsoImpl<S, A>` that focuses through both prisms sequentially. The
src/optics/iso/wrapper.rs:215
↓ 3 callers
Function
expand_mods_in_items
Recursively resolve external mods in a list of items.
src/test/helpers.rs:48
↓ 3 callers
Method
reverse_get
(&self, value: &A)
src/extensions/total_reverse_get.rs:50
↓ 3 callers
Method
try_get
(&self, source: &S)
src/optics/iso/mapped.rs:38
↓ 2 callers
Method
compose_with_lens
Composes this `IsoImpl<S,I>` with a `LensImpl<I,A>`, resulting in a new `LensImpl<S, A>` that focuses through both optics sequentially. The resulting
src/optics/iso/wrapper.rs:165
↓ 2 callers
Method
increment
(&self, source: &mut S)
examples/extend_with_increment.rs:8
↓ 2 callers
Method
over
(&self, source: &mut S, f: F)
src/extensions/over.rs:53
↓ 1 callers
Function
collect_inherent_functions_for_structs
( root: &File, struct_paths: &[String], )
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:41
↓ 1 callers
Method
compose_with_iso
Composes this `IsoImpl<S,I>` with an `IsoImpl<I,A>`, resulting in a new `IsoImpl<S, A>` that focuses through both optics sequentially. The resulting
src/optics/iso/wrapper.rs:244
↓ 1 callers
Function
expand_mod_item
Resolve an external mod declaration into an inlined module.
src/test/helpers.rs:58
↓ 1 callers
Function
extract_fn_names_and_type_params
(input: &[ImplItemFn])
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:95
↓ 1 callers
Function
get_optics_list
(root: &File)
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:9
↓ 1 callers
Function
lens_generic_lowercase_email
Can perform the operation even without any knowledge about the structure of T
examples/opaque.rs:63
↓ 1 callers
Function
lens_lowercase_email
Can perform the operation without direct access to fields of A
examples/opaque.rs:58
↓ 1 callers
Function
new
( get_fn: GET, )
src/optics/partial_getter/mapped.rs:89
↓ 1 callers
Function
new
(set_fn: SET)
src/optics/setter/mapped.rs:62
↓ 1 callers
Function
new
( get_fn: GET, set_fn: SET, )
src/optics/prism/mapped.rs:83
↓ 1 callers
Function
new
(get_fn: GET)
src/optics/getter/mapped.rs:136
↓ 1 callers
Function
new
( get_fn: GET, rev_fn: REV, )
src/optics/fallible_iso/mapped.rs:112
↓ 1 callers
Function
new
(get_fn: GET, set_fn: SET)
src/optics/lens/mapped.rs:87
↓ 1 callers
Function
some_prism
()
examples/extend_with_some_prism.rs:28
↓ 1 callers
Method
try_get
(&self, source: &S)
src/optics/prism/composed.rs:67
↓ 1 callers
Method
try_get
(&self, source: &S)
src/optics/fallible_iso/composed.rs:45
↓ 1 callers
Method
try_get
(&self, source: &Option<A>)
examples/extend_with_some_prism.rs:13
↓ 1 callers
Method
try_reverse_get
(&self, value: &A)
src/optics/iso/mapped.rs:60
↓ 1 callers
Method
try_reverse_get
(&self, source: &A)
src/optics/fallible_iso/mapped.rs:61
↓ 1 callers
Function
visit_items
Recursively walk the file/module items to find impl blocks
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:49
Function
can_call_over
()
src/test/mod.rs:89
Function
can_compose_lens_with_prisms
()
src/test/mod.rs:70
Function
can_compose_prisms
()
src/test/mod.rs:52
Function
can_compose_two_lenses
()
src/test/mod.rs:30
Function
can_read_value_using_lens
()
src/test/mod.rs:22
Function
can_read_value_using_prism
()
src/test/mod.rs:45
Function
compose_lens_with_fallible_iso
()
src/test/mod.rs:104
Method
compose_with_fallible_iso
Composes this `PartialGetterImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequen
src/optics/partial_getter/wrapper.rs:287
Method
compose_with_fallible_iso
Composes this `PrismImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both optics sequentially. The res
src/optics/prism/wrapper.rs:308
Method
compose_with_fallible_iso
Composes this `GetterImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both prisms sequentially.
src/optics/getter/wrapper.rs:204
Method
compose_with_fallible_iso
Composes this `FallibleIsoImpl<S,I>` with a `FallibleIsoImpl<I,A>`, resulting in a new `FallibleIsoImpl<S, A>` that focuses through both optics sequen
src/optics/fallible_iso/wrapper.rs:322
Method
compose_with_fallible_iso
Composes this `LensImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially. The resu
src/optics/lens/wrapper.rs:206
Method
compose_with_fallible_iso_with_mappers
Composes this `PartialGetterImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequen
src/optics/partial_getter/wrapper.rs:325
Method
compose_with_fallible_iso_with_mappers
Composes this `PrismImpl<S,I>` with a `FallibleIso<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both optics sequentially. The res
src/optics/prism/wrapper.rs:347
Method
compose_with_fallible_iso_with_mappers
Composes this `FallibleIsoImpl<S,I>` with a `FallibleIsoImpl<I,A>`, resulting in a new `FallibleIsoImpl<S, A>` that focuses through both optics sequen
src/optics/fallible_iso/wrapper.rs:370
Method
compose_with_getter
Composes this `PartialGetterImpl<S,I>` with a `GetterImpl<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequent
src/optics/partial_getter/wrapper.rs:146
Method
compose_with_getter
Composes this `PrismImpl<S,I>` with a `Getter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. The resu
src/optics/prism/wrapper.rs:151
Method
compose_with_getter
Composes this `GetterImpl<S,I>` with a `GetterImpl<I,A>`, resulting in a new `GetterImpl<S, A>` that focuses through both optics sequentially. The re
src/optics/getter/wrapper.rs:100
Method
compose_with_getter
Composes this `IsoImpl<S,I>` with a `GetterImpl<I,A>`, resulting in a new `GetterImpl<S, A>` that focuses through both optics sequentially. The resul
src/optics/iso/wrapper.rs:114
Method
compose_with_getter
Composes this `FallibleIsoImpl<S,I>` with a `Getter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. Th
src/optics/fallible_iso/wrapper.rs:166
Method
compose_with_getter
Composes this `LensImpl<S,I>` with a `GetterImpl<I,A>`, resulting in a new `GetterImpl<S, A>` that focuses through both optics sequentially. The resu
src/optics/lens/wrapper.rs:105
Method
compose_with_iso
Composes this `PartialGetterImpl<S,I>` with an `Iso<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequentially.
src/optics/partial_getter/wrapper.rs:357
Method
compose_with_iso
Composes this `PrismImpl<S,I>` with an `Iso<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both optics sequentially. The resulting
src/optics/prism/wrapper.rs:379
Method
compose_with_iso
Composes this `GetterImpl<S,I>` with an `IsoImpl<I,A>`, resulting in a new `GetterImpl<S, A>` that focuses through both optics sequentially. The resu
src/optics/getter/wrapper.rs:229
Method
compose_with_iso
Composes this `FallibleIsoImpl<S,I>` with an `Iso<I,A>`, resulting in a new `FallibleIsoImpl<S, A>` that focuses through both optics sequentially. Th
src/optics/fallible_iso/wrapper.rs:406
Method
compose_with_iso
Composes this `LensImpl<S,I>` with an `IsoImpl<I,A>`, resulting in a new `LensImpl<S, A>` that focuses through both optics sequentially. The resultin
src/optics/lens/wrapper.rs:231
Method
compose_with_lens
Composes this `PartialGetterImpl<S,I>` with a `Lens<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequentially.
src/optics/partial_getter/wrapper.rs:254
Method
compose_with_lens
Composes this `PrismImpl<S,I>` with a `Lens<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both optics sequentially. The resulting
src/optics/prism/wrapper.rs:275
Method
compose_with_lens
Composes this `GetterImpl<S,I>` with a `LensImpl<I,A>`, resulting in a new `GetterImpl<S, A>` that focuses through both optics sequentially. The resu
src/optics/getter/wrapper.rs:179
Method
compose_with_lens
Composes this `FallibleIsoImpl<S,I>` with a `Lens<I,A>`, resulting in a new `Prism<S, A>` that focuses through both optics sequentially. The resultin
src/optics/fallible_iso/wrapper.rs:289
Method
compose_with_lens
Composes this `LensImpl<S,I>` with a `LensImpl<I,A>`, resulting in a new `LensImpl<S, A>` that focuses through both optics sequentially. The resultin
src/optics/lens/wrapper.rs:181
Method
compose_with_partial_getter
Composes this `PartialGetterImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequ
src/optics/partial_getter/wrapper.rs:80
Method
compose_with_partial_getter
Composes this `PrismImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. T
src/optics/prism/wrapper.rs:85
Method
compose_with_partial_getter
Composes this `GetterImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially.
src/optics/getter/wrapper.rs:74
Method
compose_with_partial_getter
Composes this `IsoImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. The
src/optics/iso/wrapper.rs:88
Method
compose_with_partial_getter
Composes this `FallibleIsoImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequential
src/optics/fallible_iso/wrapper.rs:100
Method
compose_with_partial_getter
Composes this `LensImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. Th
src/optics/lens/wrapper.rs:79
Method
compose_with_partial_getter_with_mappers
Composes this `PartialGetterImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequenti
src/optics/partial_getter/wrapper.rs:118
Method
compose_with_partial_getter_with_mappers
Composes this `PrismImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequentially. T
src/optics/prism/wrapper.rs:123
Method
compose_with_partial_getter_with_mappers
Composes this `FallibleIsoImpl<S,I>` with a `PartialGetter<I,A>`, resulting in a new `PartialGetter<S, A>` that focuses through both optics sequential
src/optics/fallible_iso/wrapper.rs:138
Method
compose_with_prism
Composes this `PartialGetterImpl<S,I>` with another `Prism<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both prisms sequen
src/optics/partial_getter/wrapper.rs:189
Method
compose_with_prism
Composes this `PrismImpl<S,I>` with another `Prism<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially. The res
src/optics/prism/wrapper.rs:210
Method
compose_with_prism
Composes this `GetterImpl<S,I>` with a `Prism<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both optics sequentially. The
src/optics/getter/wrapper.rs:154
Method
compose_with_prism
Composes this `FallibleIsoImpl<S,I>` with another `Prism<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both optics sequentially. T
src/optics/fallible_iso/wrapper.rs:225
Method
compose_with_prism
Composes this `LensImpl<S,I>` with a `Prism<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially. The resulting
src/optics/lens/wrapper.rs:156
Method
compose_with_prism_with_mappers
Composes this `PartialGetterImpl<S,I>` with a `PrismImpl<I,A>`, resulting in a new `PartialGetterImpl<S, A>` that focuses through both prisms sequenti
src/optics/partial_getter/wrapper.rs:227
Method
compose_with_prism_with_mappers
Composes this `PrismImpl<S,I>` with another `PrismImpl<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially. The
src/optics/prism/wrapper.rs:248
Method
compose_with_prism_with_mappers
Composes this `FallibleIsoImpl<S,I>` with another `PrismImpl<I,A>`, resulting in a new `PrismImpl<S, A>` that focuses through both prisms sequentially
src/optics/fallible_iso/wrapper.rs:262
Method
compose_with_setter
Impossible to combine # Panics always
src/optics/partial_getter/wrapper.rs:156
Method
compose_with_setter
Composes this `PrismImpl<S,I>` with a `Setter<I,A>`, resulting in a new `Setter<S, A>` that focuses through both optics sequentially. The resulting `
src/optics/prism/wrapper.rs:177
Method
compose_with_setter
Composes this `GetterImpl<S,I>` with a `Setter<I,A>`, resulting in a new `Setter<S, A>` that focuses through both optics sequentially. The resulting
src/optics/getter/wrapper.rs:126
Method
compose_with_setter
Composes this `IsoImpl<S,I>` with a `Setter<I,A>`, resulting in a new `Setter<S, A>` that focuses through both optics sequentially. The resulting `Se
src/optics/iso/wrapper.rs:140
Method
compose_with_setter
Composes this `FallibleIsoImpl<S,I>` with a `Setter<I,A>`, resulting in a new `Setter<S, A>` that focuses through both optics sequentially. The resul
src/optics/fallible_iso/wrapper.rs:192
Method
compose_with_setter
Composes this `LensImpl<S,I>` with a `Setter<I,A>`, resulting in a new `Setter<S, A>` that focuses through both optics sequentially. The resulting `S
src/optics/lens/wrapper.rs:131
Method
default
()
src/test/fixtures.rs:27
Method
default
()
examples/opaque.rs:39
Method
email_lens
()
examples/opaque.rs:24
Function
expand_mods_in_file
Recursively resolve external `mod` declarations into inlined modules.
src/test/helpers.rs:35
Method
from
(value: PG)
src/optics/partial_getter/wrapper.rs:40
Method
from
(value: SETTER)
src/optics/setter/wrapper.rs:35
Method
from
(value: P)
src/optics/prism/wrapper.rs:39
Method
from
(value: G)
src/optics/getter/wrapper.rs:34
Method
from
(value: ISO)
src/optics/iso/wrapper.rs:41
Method
from
(value: FI)
src/optics/fallible_iso/wrapper.rs:46
Method
from
(value: L)
src/optics/lens/wrapper.rs:40
Function
identity_fallible_iso
()
src/optics/fallible_iso/mod.rs:69
Function
identity_getter
()
src/optics/getter/mod.rs:63
Function
identity_iso
()
src/optics/iso/mod.rs:82
next →
1–100 of 177, ranked by callers