MCPcopy Create free account

hub / github.com/axos88/optics-rs / functions

Functions177 in github.com/axos88/optics-rs

↓ 11 callersMethodget
(&self, source: &S)
src/extensions/total_getter.rs:47
↓ 6 callersMethodset
(&self, source: &mut S, value: A)
src/optics/iso/mapped.rs:48
↓ 5 callersFunctionnew
(get_fn: GET, rev_fn: REV)
src/optics/iso/mapped.rs:124
↓ 4 callersMethodcompose_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 callersMethodset
(&self, source: &mut Option<A>, value: A)
examples/extend_with_some_prism.rs:23
↓ 3 callersMethodcompose_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 callersFunctionexpand_mods_in_items
Recursively resolve external mods in a list of items.
src/test/helpers.rs:48
↓ 3 callersMethodreverse_get
(&self, value: &A)
src/extensions/total_reverse_get.rs:50
↓ 3 callersMethodtry_get
(&self, source: &S)
src/optics/iso/mapped.rs:38
↓ 2 callersMethodcompose_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 callersMethodincrement
(&self, source: &mut S)
examples/extend_with_increment.rs:8
↓ 2 callersMethodover
(&self, source: &mut S, f: F)
src/extensions/over.rs:53
↓ 1 callersFunctioncollect_inherent_functions_for_structs
( root: &File, struct_paths: &[String], )
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:41
↓ 1 callersMethodcompose_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 callersFunctionexpand_mod_item
Resolve an external mod declaration into an inlined module.
src/test/helpers.rs:58
↓ 1 callersFunctionextract_fn_names_and_type_params
(input: &[ImplItemFn])
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:95
↓ 1 callersFunctionget_optics_list
(root: &File)
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:9
↓ 1 callersFunctionlens_generic_lowercase_email
Can perform the operation even without any knowledge about the structure of T
examples/opaque.rs:63
↓ 1 callersFunctionlens_lowercase_email
Can perform the operation without direct access to fields of A
examples/opaque.rs:58
↓ 1 callersFunctionnew
( get_fn: GET, )
src/optics/partial_getter/mapped.rs:89
↓ 1 callersFunctionnew
(set_fn: SET)
src/optics/setter/mapped.rs:62
↓ 1 callersFunctionnew
( get_fn: GET, set_fn: SET, )
src/optics/prism/mapped.rs:83
↓ 1 callersFunctionnew
(get_fn: GET)
src/optics/getter/mapped.rs:136
↓ 1 callersFunctionnew
( get_fn: GET, rev_fn: REV, )
src/optics/fallible_iso/mapped.rs:112
↓ 1 callersFunctionnew
(get_fn: GET, set_fn: SET)
src/optics/lens/mapped.rs:87
↓ 1 callersFunctionsome_prism
()
examples/extend_with_some_prism.rs:28
↓ 1 callersMethodtry_get
(&self, source: &S)
src/optics/prism/composed.rs:67
↓ 1 callersMethodtry_get
(&self, source: &S)
src/optics/fallible_iso/composed.rs:45
↓ 1 callersMethodtry_get
(&self, source: &Option<A>)
examples/extend_with_some_prism.rs:13
↓ 1 callersMethodtry_reverse_get
(&self, value: &A)
src/optics/iso/mapped.rs:60
↓ 1 callersMethodtry_reverse_get
(&self, source: &A)
src/optics/fallible_iso/mapped.rs:61
↓ 1 callersFunctionvisit_items
Recursively walk the file/module items to find impl blocks
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:49
Functioncan_call_over
()
src/test/mod.rs:89
Functioncan_compose_lens_with_prisms
()
src/test/mod.rs:70
Functioncan_compose_prisms
()
src/test/mod.rs:52
Functioncan_compose_two_lenses
()
src/test/mod.rs:30
Functioncan_read_value_using_lens
()
src/test/mod.rs:22
Functioncan_read_value_using_prism
()
src/test/mod.rs:45
Functioncompose_lens_with_fallible_iso
()
src/test/mod.rs:104
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_with_setter
Impossible to combine # Panics always
src/optics/partial_getter/wrapper.rs:156
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methodcompose_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
Methoddefault
()
src/test/fixtures.rs:27
Methoddefault
()
examples/opaque.rs:39
Methodemail_lens
()
examples/opaque.rs:24
Functionexpand_mods_in_file
Recursively resolve external `mod` declarations into inlined modules.
src/test/helpers.rs:35
Methodfrom
(value: PG)
src/optics/partial_getter/wrapper.rs:40
Methodfrom
(value: SETTER)
src/optics/setter/wrapper.rs:35
Methodfrom
(value: P)
src/optics/prism/wrapper.rs:39
Methodfrom
(value: G)
src/optics/getter/wrapper.rs:34
Methodfrom
(value: ISO)
src/optics/iso/wrapper.rs:41
Methodfrom
(value: FI)
src/optics/fallible_iso/wrapper.rs:46
Methodfrom
(value: L)
src/optics/lens/wrapper.rs:40
Functionidentity_fallible_iso
()
src/optics/fallible_iso/mod.rs:69
Functionidentity_getter
()
src/optics/getter/mod.rs:63
Functionidentity_iso
()
src/optics/iso/mod.rs:82
next →1–100 of 177, ranked by callers