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
Function
identity_lens
()
src/optics/lens/mod.rs:86
Function
identity_partial_getter
()
src/optics/partial_getter/mod.rs:67
Function
identity_prism
()
src/optics/prism/mod.rs:72
Function
identity_setter
()
src/optics/setter/mod.rs:79
Function
infallible
(e: Infallible)
src/lib.rs:13
Function
main
()
examples/extend_with_increment.rs:13
Function
main
We can't access the private fields of A or B here, we can only get hold of a lens.
examples/opaque.rs:68
Function
main
()
examples/simple.rs:17
Function
main
()
examples/extend_with_some_prism.rs:33
Function
new
( pg1: PG1, pg2: PG2, error_fn_1: fn(PG1::GetterError) -> E, error_fn_2: fn(PG2::GetterError)
src/optics/partial_getter/composed.rs:74
Function
new
( p1: P1, s2: SETTER2, )
src/optics/setter/composed.rs:66
Function
new
( p1: P1, p2: P2, error_fn_1: fn(P1::GetterError) -> E, error_fn_2: fn(P2::GetterError) -> E,
src/optics/prism/composed.rs:113
Function
new
( l1: G1, l2: G2, )
src/optics/getter/composed.rs:62
Function
new
( i1: ISO1, i2: ISO2, )
src/optics/iso/composed.rs:92
Function
new
( f1: FI1, f2: FI2, getter_error_fn_1: fn(FI1::GetterError) -> GE, getter_error_fn_2: fn(FI2::
src/optics/fallible_iso/composed.rs:111
Function
new
( l1: L1, l2: L2, )
src/optics/lens/composed.rs:76
Method
new
(get_fn: GET)
src/optics/partial_getter/mapped.rs:41
Method
new
(prism: PG)
src/optics/partial_getter/wrapper.rs:33
Method
new
( optic1: PG1, optic2: PG2, error_fn_1: fn(PG1::GetterError) -> E, error_fn_2:
src/optics/partial_getter/composed.rs:18
Method
new
(set_fn: SET)
src/optics/setter/mapped.rs:17
Method
new
(l: SETTER)
src/optics/setter/wrapper.rs:28
Method
new
(optic1: SETTER1, optic2: SETTER2)
src/optics/setter/composed.rs:17
Method
new
(get_fn: GET, set_fn: SET)
src/optics/prism/mapped.rs:22
Method
new
(prism: P)
src/optics/prism/wrapper.rs:32
Method
new
( optic1: P1, optic2: P2, error_fn_1: fn(P1::GetterError) -> E, error_fn_2: fn
src/optics/prism/composed.rs:44
Method
new
Creates a new `LensImpl` with the provided getter and setter functions. # Arguments - `get_fn` — A function that retrieves the focus value `A` from
src/optics/getter/mapped.rs:90
Method
new
(prism: G)
src/optics/getter/wrapper.rs:40
Method
new
(optic1: G1, optic2: G2)
src/optics/getter/composed.rs:17
Method
new
(get_fn: GET, rev_fn: REV)
src/optics/iso/mapped.rs:22
Method
new
(i: ISO)
src/optics/iso/wrapper.rs:34
Method
new
(optic1: ISO1, optic2: ISO2)
src/optics/iso/composed.rs:22
Method
new
(get_fn: GET, rev_fn: REV)
src/optics/fallible_iso/mapped.rs:21
Method
new
(l: FI)
src/optics/fallible_iso/wrapper.rs:39
Method
new
( optic1: FI1, optic2: FI2, getter_error_fn_1: fn(FI1::GetterError) -> GE, get
src/optics/fallible_iso/composed.rs:20
Method
new
(get_fn: GET, set_fn: SET)
src/optics/lens/mapped.rs:23
Method
new
(l: L)
src/optics/lens/wrapper.rs:33
Method
new
(optic1: L1, optic2: L2)
src/optics/lens/composed.rs:18
Function
optic_implementations_exported_struct_and_fns
()
src/test/code_quality/exported_items_by_optics.rs:8
Method
set
(&self, source: &mut S, value: A)
src/optics/setter/mapped.rs:29
Method
set
(&self, source: &mut S, value: A)
src/optics/setter/wrapper.rs:41
Method
set
(&self, source: &mut S, value: A)
src/optics/setter/composed.rs:31
Method
set
(&self, source: &mut S, value: A)
src/optics/prism/mapped.rs:48
Method
set
(&self, source: &mut S, value: A)
src/optics/prism/wrapper.rs:53
Method
set
(&self, source: &mut S, value: A)
src/optics/prism/composed.rs:78
Method
set
(&self, source: &mut S, value: A)
src/optics/iso/wrapper.rs:55
Method
set
(&self, source: &mut S, value: A)
src/optics/iso/composed.rs:49
Method
set
(&self, source: &mut S, value: A)
src/optics/fallible_iso/mapped.rs:47
Method
set
(&self, source: &mut S, value: A)
src/optics/fallible_iso/wrapper.rs:60
Method
set
(&self, source: &mut S, value: A)
src/optics/fallible_iso/composed.rs:73
Method
set
(&self, source: &mut S, value: A)
src/optics/lens/mapped.rs:49
Method
set
(&self, source: &mut S, value: A)
src/optics/lens/wrapper.rs:54
Method
set
(&self, source: &mut S, value: A)
src/optics/lens/composed.rs:45
Function
test_all_optics_have_combine_with_functions
()
src/test/code_quality/all_optics_can_be_combined_with_eachother.rs:120
Function
test_fallible_iso
()
src/test/mod.rs:131
Function
test_iso_and_fallible_iso
()
src/test/mod.rs:164
Method
try_get
(&self, source: &S)
src/optics/partial_getter/mapped.rs:55
Method
try_get
(&self, source: &S)
src/optics/partial_getter/wrapper.rs:48
Method
try_get
(&self, source: &S)
src/optics/partial_getter/composed.rs:41
Method
try_get
(&self, source: &S)
src/optics/prism/mapped.rs:38
Method
try_get
(&self, source: &S)
src/optics/prism/wrapper.rs:47
Method
try_get
(&self, source: &S)
src/optics/getter/mapped.rs:104
Method
try_get
(&self, source: &S)
src/optics/getter/wrapper.rs:49
Method
try_get
(&self, source: &S)
src/optics/getter/composed.rs:33
Method
try_get
(&self, source: &S)
src/optics/iso/wrapper.rs:49
Method
try_get
(&self, source: &S)
src/optics/iso/composed.rs:38
Method
try_get
(&self, source: &S)
src/optics/fallible_iso/mapped.rs:37
Method
try_get
(&self, source: &S)
src/optics/fallible_iso/wrapper.rs:54
Method
try_get
(&self, source: &S)
src/optics/lens/mapped.rs:39
Method
try_get
(&self, source: &S)
src/optics/lens/wrapper.rs:48
Method
try_get
(&self, source: &S)
src/optics/lens/composed.rs:34
Method
try_reverse_get
(&self, value: &A)
src/optics/iso/wrapper.rs:63
Method
try_reverse_get
(&self, value: &A)
src/optics/iso/composed.rs:63
Method
try_reverse_get
(&self, value: &A)
src/optics/fallible_iso/wrapper.rs:68
Method
try_reverse_get
(&self, value: &A)
src/optics/fallible_iso/composed.rs:59
Method
visit_item_fn
(&mut self, i: &'ast ItemFn)
src/test/code_quality/exported_items_by_optics.rs:60
Method
visit_item_mod
(&mut self, i: &'ast ItemMod)
src/test/code_quality/exported_items_by_optics.rs:15
Method
visit_item_struct
(&mut self, i: &'ast ItemStruct)
src/test/code_quality/exported_items_by_optics.rs:21
← previous
101–177 of 177, ranked by callers