Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ved-s/cuprous
/ functions
Functions
916 in github.com/Ved-s/cuprous
⨍
Functions
916
◇
Types & classes
245
↓ 1 callers
Method
circuit_init
Called once on circuit placement or load<br> Called before all calls to `state_init`<br> `first_init`: `true` on placement, `false` on load
src/circuits/mod.rs:661
↓ 1 callers
Method
circuit_remove
Called once on circuit removal<br> Called after all calls to `remove_state`<br>
src/circuits/mod.rs:670
↓ 1 callers
Method
clear_error
( &mut self, res: Result<T, E>, )
src/error.rs:81
↓ 1 callers
Method
collect_changes
( &mut self, pass: &CircuitDesign, changes: &mut std::collections::HashSet<SelectedDes
src/ui/designer.rs:108
↓ 1 callers
Method
collect_str
(&mut self, str: &mut &str)
src/string.rs:10
↓ 1 callers
Method
combine_with
(self, other: Vector2<I>, combiner: impl Fn(T, I) -> O)
src/vector.rs:105
↓ 1 callers
Method
components_ui
(&mut self, style: &Style, ui: &mut Ui, design: &mut CircuitDesign)
src/ui/designer.rs:801
↓ 1 callers
Method
components_ui
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:1384
↓ 1 callers
Method
condition
( self, condition: bool, on_true: impl FnOnce(Self) -> T, on_false: impl FnOnc
src/ext.rs:102
↓ 1 callers
Method
control_count
Return `None` if this circuit will never have controls, `Some(0)` means that this circuit doesn't have controls yet, but may have in the future
src/circuits/mod.rs:674
↓ 1 callers
Method
copy
(self: &Arc<Self>, pos: Vec2u, state: &State)
src/circuits/mod.rs:461
↓ 1 callers
Method
create_circuit
TODO: cleanup
src/board.rs:98
↓ 1 callers
Function
create_format_params
returns None if format string doesn't contain any format arguments
src/string.rs:105
↓ 1 callers
Method
create_impl
(&self)
src/circuits/pin.rs:708
↓ 1 callers
Method
create_state
(&self, board: Arc<CircuitBoard>)
src/state.rs:397
↓ 1 callers
Function
create_thread_inner
()
src/debug.rs:97
↓ 1 callers
Method
create_wire
(&self)
src/board.rs:127
↓ 1 callers
Method
create_wire_intersection
(&mut self, pos: Vec2i)
src/board.rs:766
↓ 1 callers
Method
custom_config_ui
(&self, ui: &mut Ui)
src/ui/designer.rs:96
↓ 1 callers
Method
custom_pin_apply_state
( &self, ctx: &CircuitStateContext, pin: usize, state: &WireState, vis
src/circuits/pin.rs:449
↓ 1 callers
Method
custom_pin_mutate_state
( &self, ctx: &CircuitStateContext, pin: usize, state: &mut WireState,
src/circuits/pin.rs:408
↓ 1 callers
Method
deref
(&self)
src/debug.rs:498
↓ 1 callers
Method
description
(&self)
src/circuits/pin.rs:678
↓ 1 callers
Function
div_ceil_isize
(lhs: isize, rhs: isize)
src/containers.rs:692
↓ 1 callers
Method
draw
(&self, painter: &Painter, base_pos: Pos2, scale: f32, opacity: f32)
src/board.rs:1689
↓ 1 callers
Method
draw_circuit_node
( &self, bounds: TileDrawBounds, node: &CircuitNode, pos: Vec2i, ctx:
src/ui/editor.rs:1121
↓ 1 callers
Method
draw_decorations
(&self, painter: &Painter, rect: Rect, opacity: f32)
src/board.rs:1777
↓ 1 callers
Function
draw_dynamic_grid
( screen: &Screen, style: &Style, cell_size: f32, highlight_lines: Vec2u, paint: &egui::Pa
src/ui/drawing.rs:14
↓ 1 callers
Method
draw_hovered_circuit_pin_names
(&self, ctx: &PaintContext)
src/ui/editor.rs:845
↓ 1 callers
Function
draw_pin_name
( name: &str, dir: Option<Direction4>, circ_pos: Vec2isize, pin_pos: Vec2u,
src/ui/drawing.rs:172
↓ 1 callers
Method
draw_pin_points
Whether to automatically draw pins before call to `Self::draw`
src/circuits/mod.rs:694
↓ 1 callers
Method
draw_preview
(&self, props: &CircuitPropertyStore, ctx: &PaintContext, _: bool)
src/circuits/pin.rs:689
↓ 1 callers
Method
draw_wire_node
( &self, bounds: TileDrawBounds, ctx: &PaintContext<'_>, node: &WireNode,
src/ui/editor.rs:879
↓ 1 callers
Method
draw_wire_node_debug
( &self, ctx: &PaintContext<'_>, node: &WireNode, pos: Vec2i, lookarou
src/ui/editor.rs:998
↓ 1 callers
Method
error_color
(&self)
src/wires.rs:72
↓ 1 callers
Method
find_index
(self, predicate: impl Fn(I::Item) -> bool)
src/ext.rs:48
↓ 1 callers
Method
first_free_pos_filtered
Warning: will not return intil `f` returns true
src/containers.rs:232
↓ 1 callers
Method
get_chunk_mut
( &mut self, pos: impl Into<Vec2isize>, )
src/containers.rs:488
↓ 1 callers
Method
get_control_provider_data
(&self)
src/board.rs:1985
↓ 1 callers
Method
get_designer_info
( &self, props: &CircuitPropertyStore, )
src/circuits/pin.rs:171
↓ 1 callers
Method
get_internal
(&self)
src/state.rs:322
↓ 1 callers
Method
get_internal_mut
(&mut self)
src/state.rs:328
↓ 1 callers
Method
get_nth_existing_index
(&self, pos: usize)
src/containers.rs:85
↓ 1 callers
Method
get_or_create
(&self, board: Arc<CircuitBoard>, id: usize)
src/state.rs:451
↓ 1 callers
Method
get_or_create_chunk_mut
( &mut self, pos: impl Into<Vec2isize>, )
src/containers.rs:499
↓ 1 callers
Method
get_or_create_main
Get or create state 0
src/state.rs:447
↓ 1 callers
Method
get_pin_ids
(&self)
src/board.rs:1968
↓ 1 callers
Method
get_prop
(&self, prop: RectProperty)
src/ui/mod.rs:1080
↓ 1 callers
Method
get_storage
(&self)
src/board.rs:1964
↓ 1 callers
Method
has_formatting
(&self)
src/string.rs:183
↓ 1 callers
Method
hash
(&self, state: &mut H)
src/main.rs:803
↓ 1 callers
Method
id
(&self)
src/ui/selection.rs:275
↓ 1 callers
Method
index_mut
(&mut self, index: usize)
src/vector.rs:292
↓ 1 callers
Method
into_char
(self)
src/main.rs:616
↓ 1 callers
Method
is_bidirectional
(self)
src/circuits/pin.rs:48
↓ 1 callers
Method
is_cipo
(self)
src/circuits/pin.rs:40
↓ 1 callers
Method
is_empty
(&self)
src/state.rs:1360
↓ 1 callers
Method
is_zero
(&self)
src/vector.rs:247
↓ 1 callers
Method
length_squared
(self)
src/vector.rs:43
↓ 1 callers
Method
load_copy
( &self, data: &CircuitCopyData, ctx: &Arc<SimulationContext>, errors: &mut Er
src/circuits/mod.rs:779
↓ 1 callers
Method
load_copy_data
( &self, _imp: &serde_intermediate::Intermediate, _internal: &serde_intermediate::Inte
src/circuits/pin.rs:712
↓ 1 callers
Method
load_state
(&mut self)
src/app.rs:767
↓ 1 callers
Method
modify_value
(&mut self, str: &mut String, pos: &mut usize)
src/string.rs:43
↓ 1 callers
Method
neg
(self)
src/vector.rs:194
↓ 1 callers
Method
next_item
(&mut self)
src/containers.rs:754
↓ 1 callers
Method
node_neighboring_intersections
( &self, pos: Vec2i, wire: Option<usize>, )
src/board.rs:1148
↓ 1 callers
Function
parse_format_param
(str: &mut &'a str)
src/string.rs:92
↓ 1 callers
Method
place
(&self, board: &mut EditableCircuitBoard, pos: Vec2i, errors: &mut ErrorList)
src/main.rs:939
↓ 1 callers
Method
place_wire_multipart
(&mut self, part: &WirePart, wire: usize)
src/board.rs:567
↓ 1 callers
Method
pop_front
(&mut self)
src/containers.rs:1018
↓ 1 callers
Method
post_draw_selection
( &mut self, pass: &Self::Pass, ctx: &PaintContext, mode: SelectionMode,
src/ui/selection.rs:37
↓ 1 callers
Method
prop_changed
(&self, prop_id: &str, resize: &mut bool, recreate_pins: &mut bool)
src/circuits/pin.rs:489
↓ 1 callers
Method
properties_ui
(&mut self, ui: &mut Ui, design: &mut CircuitDesign)
src/ui/designer.rs:998
↓ 1 callers
Method
properties_ui
(&mut self, style: &Style, ui: &mut Ui)
src/ui/editor.rs:1616
↓ 1 callers
Method
queue_len
(&self)
src/state.rs:1208
↓ 1 callers
Function
random_u128
()
src/main.rs:1235
↓ 1 callers
Method
read_imp
(&self, reader: impl FnOnce(&T) -> R)
src/circuits/mod.rs:507
↓ 1 callers
Function
rect_editor_logic
( rect: &mut Rect, sides: Sides, ui: &Ui, id: Id, grab: f32, )
src/ui/mod.rs:840
↓ 1 callers
Function
rect_editor_visuals
(rect: Rect, ui: &Ui, id: Id, sides: Sides, grab: f32)
src/ui/mod.rs:959
↓ 1 callers
Method
remove_circuit
(&mut self, id: usize, affected_wires: &mut HashSet<usize>)
src/board.rs:1421
↓ 1 callers
Method
remove_circuit_states
(self: &Arc<Self>)
src/state.rs:777
↓ 1 callers
Method
remove_wire_part
( &mut self, pos: Vec2i, dir: Direction4, split: bool, update_states:
src/board.rs:928
↓ 1 callers
Method
reset_circuit
(&self, circuit: &Arc<Circuit>)
src/state.rs:436
↓ 1 callers
Function
run
()
web/index.js:26
↓ 1 callers
Method
run
(&mut self)
src/state.rs:1264
↓ 1 callers
Method
save
(&self, sim_lock: bool)
src/board.rs:229
↓ 1 callers
Method
save
(&mut self, storage: &mut dyn eframe::Storage)
src/app.rs:320
↓ 1 callers
Method
selected_circuit_properties
(&mut self, ui: &mut Ui)
src/ui/editor.rs:1733
↓ 1 callers
Method
serialize
(&self, serializer: S)
src/state.rs:286
↓ 1 callers
Method
serialize
(&self, _: bool)
src/circuits/pin.rs:59
↓ 1 callers
Method
set_in_chunk_start_pos
(&mut self)
src/containers.rs:789
↓ 1 callers
Method
set_internal
(&mut self, value: Option<T>)
src/state.rs:337
↓ 1 callers
Method
set_ordered
(&self, ordered: bool)
src/state.rs:482
↓ 1 callers
Method
set_ordered_queue
(&self, ordered: bool, lock_sim: bool)
src/board.rs:354
↓ 1 callers
Method
set_prop
(&mut self, prop: RectProperty, value: bool)
src/ui/mod.rs:1071
↓ 1 callers
Function
set_this_thread_debug_name
(name: impl Into<DynStaticStr>)
src/debug.rs:35
↓ 1 callers
Method
should_draw_wire_point
(&self, pos: Vec2i, shift: bool)
src/board.rs:1222
↓ 1 callers
Method
show_dyn
( self, ui: &mut Ui, tab_names: &[Arc<Galley>], tab_contents: Box<dyn FnOnce(u
src/ui/side_panel.rs:153
↓ 1 callers
Method
split_wire
( &self, id: usize, points: &HashSet<Vec2i>, update_states: bool, )
src/board.rs:167
↓ 1 callers
Method
state_init
Load state
src/circuits/board.rs:655
← previous
next →
301–400 of 916, ranked by callers