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
↓ 7 callers
Method
set_input
( &self, state: &Arc<State>, value: &WireState, update_state: bool, vi
src/circuits/mod.rs:118
↓ 7 callers
Method
to_active_info
(&self)
src/circuits/mod.rs:892
↓ 6 callers
Method
clone
(&self)
src/circuits/props.rs:120
↓ 6 callers
Method
color
(&self, style: &Style, colors_override: Option<&WireColors>)
src/state.rs:214
↓ 6 callers
Method
copy_into
(&self, other: &mut dyn CircuitPropertyImpl)
src/circuits/pin.rs:787
↓ 6 callers
Method
get_control_info
( &self, provider: usize, id: usize, )
src/board.rs:2000
↓ 6 callers
Method
load
( data: &crate::io::CircuitBoardData, ctx: &Arc<SimulationContext>, errors: &mut Error
src/board.rs:264
↓ 6 callers
Method
name
(&self)
src/circuits/mod.rs:150
↓ 6 callers
Function
new_object_id
()
src/debug.rs:22
↓ 6 callers
Method
read_circuit
(&self, id: usize, reader: impl FnOnce(&CircuitState) -> R)
src/state.rs:580
↓ 6 callers
Method
rotate_clockwise
(self)
src/main.rs:598
↓ 6 callers
Method
selection_fill_color
(&self)
src/app.rs:46
↓ 6 callers
Method
set_raw_state
Writes this state into pin's state, without triggering any updates
src/circuits/mod.rs:260
↓ 6 callers
Method
type_name
(&self)
src/circuits/pin.rs:670
↓ 5 callers
Method
circuit_property_changed
( &mut self, circuit: usize, property: &str, old_value: &dyn CircuitPropertyIm
src/board.rs:1534
↓ 5 callers
Method
default_tab
(self, tab: Option<usize>)
src/ui/side_panel.rs:99
↓ 5 callers
Method
direction
(&self, state: &State)
src/circuits/mod.rs:97
↓ 5 callers
Function
div_floor_isize
literally just copied from generated std code
src/containers.rs:682
↓ 5 callers
Method
first_free_pos
(&self)
src/containers.rs:225
↓ 5 callers
Method
into_dir2
Returns: (direction, forward)
src/main.rs:567
↓ 5 callers
Method
is_ordered_queue
(&self)
src/board.rs:350
↓ 5 callers
Method
load
( data: &crate::io::CircuitStateData, circ: &CircuitStateContext, errors: &mut ErrorLi
src/state.rs:353
↓ 5 callers
Method
report_none
( &mut self, opt: Option<T>, err: impl FnOnce() -> E, )
src/error.rs:94
↓ 5 callers
Method
reset
(&self)
src/app.rs:31
↓ 5 callers
Method
resolve_inner_to_outer
(&self, inner: usize)
src/circuits/board.rs:172
↓ 5 callers
Method
set_frozen
(self: &Arc<Self>, frozen: bool)
src/state.rs:632
↓ 5 callers
Method
set_wire_point
returns previous wire id
src/board.rs:672
↓ 5 callers
Method
write_circuit
TODO: make conditional read/write
src/state.rs:588
↓ 5 callers
Method
write_dyn
Will not write if property doesn't exist
src/circuits/props.rs:71
↓ 4 callers
Function
apply_margin_to_rect
(rect: Rect, margin: Margin)
src/ui/mod.rs:642
↓ 4 callers
Method
apply_wire_state
( &self, ctx: &CircuitStateContext, state: &WireState, skip_state_ckeck: bool,
src/circuits/mod.rs:323
↓ 4 callers
Function
calc_relay_width
( double_throw: bool, group_count: usize, alternate_double_throw: bool, )
src/circuits/relay.rs:693
↓ 4 callers
Method
choose_axis_component
(self, x: T, y: T)
src/main.rs:717
↓ 4 callers
Method
chunks
(self)
src/ext.rs:57
↓ 4 callers
Method
compute_wire_state
( self: &Arc<Self>, wire: usize, state: &mut WireState, visited_items: &mut Vi
src/state.rs:920
↓ 4 callers
Method
default_props
(&self)
src/circuits/pin.rs:722
↓ 4 callers
Method
draw
(&self, pass: &InventoryItemDrawData, ctx: &PaintContext)
src/ui/editor.rs:140
↓ 4 callers
Method
get_chunk
(&self, pos: impl Into<Vec2isize>)
src/containers.rs:480
↓ 4 callers
Method
get_direction
(&self, state_ctx: &CircuitStateContext)
src/circuits/mod.rs:266
↓ 4 callers
Method
is_pico
(self)
src/circuits/pin.rs:36
↓ 4 callers
Method
iter
(&self)
src/containers.rs:241
↓ 4 callers
Method
iter
(&self)
src/ui/selection.rs:231
↓ 4 callers
Method
iter_pos_along
if include_start { returns dist values } else { returns start pos + dist values }
src/main.rs:577
↓ 4 callers
Method
paint_control
(&self, provider: usize, id: usize, ctx: &PaintContext)
src/board.rs:2014
↓ 4 callers
Method
redescribe
(&self)
src/circuits/mod.rs:825
↓ 4 callers
Method
remove_useless_intersection
(&mut self, pos: Vec2i, update_states: bool)
src/board.rs:905
↓ 4 callers
Function
rotate_pos
(pos: [u32; 2], size: [u32; 2], dir: Direction4)
src/circuits/mod.rs:933
↓ 4 callers
Method
screen_to_world_rect
(&self, r: Rect)
src/main.rs:331
↓ 4 callers
Method
set_circuit_nodes
(&mut self, size: Vec2u, pos: Vec2i, id: Option<usize>)
src/board.rs:1316
↓ 4 callers
Method
update_circuit_signals
(&self, circuit: usize, pin: Option<usize>)
src/state.rs:417
↓ 4 callers
Method
update_pin_input
(&self, circuit_id: usize, id: usize)
src/state.rs:405
↓ 4 callers
Method
wake_thread
(self: &Arc<Self>, notify: bool)
src/state.rs:1106
↓ 4 callers
Method
wires_at_node
(&self, pos: Vec2i, node: &WireNode)
src/board.rs:1082
↓ 3 callers
Method
angle
0 -> 2PI cloclwise from +X axis (default for operations)
src/vector.rs:74
↓ 3 callers
Method
angle_to_left
(self)
src/main.rs:653
↓ 3 callers
Method
as_single
(&self)
src/state.rs:95
↓ 3 callers
Function
assume_init_slice_ref
(s: &[MaybeUninit<T>])
src/containers.rs:1167
↓ 3 callers
Method
can_place_circuit_at
( &self, size: Vec2u, pos: Vec2i, ignore_circuit: Option<usize>, )
src/board.rs:1334
↓ 3 callers
Method
change_selected_props
( &mut self, selected_item: &SelectedItem, id: &str, f: impl Fn(&mut T), )
src/ui/editor.rs:1258
↓ 3 callers
Method
clear
(&mut self)
src/pool.rs:137
↓ 3 callers
Method
clone
(&self)
src/pool.rs:42
↓ 3 callers
Method
combine
( &mut self, state: &WireState, combiner: &impl Fn(SingleWireState, SingleWireState) -
src/state.rs:171
↓ 3 callers
Method
deref_mut
(&mut self)
src/pool.rs:74
↓ 3 callers
Method
draw
(&self, pass: &P, ctx: &PaintContext)
src/ui/mod.rs:479
↓ 3 callers
Method
draw_chunks
( &self, bounds: TileDrawBounds, chunks: &Chunks2D<CHUNK_SIZE, T>, pass: &P,
src/main.rs:154
↓ 3 callers
Function
draw_pin_names
( pos: Vec2isize, pins: impl Iterator<Item = (Vec2u, &'a str, Option<Direction4>)>, directional_of
src/ui/drawing.rs:165
↓ 3 callers
Method
draw_wire_part
(&self, ctx: &PaintContext, part: &WirePart, color: Color32)
src/ui/editor.rs:801
↓ 3 callers
Method
enqueue
(&mut self, value: T)
src/containers.rs:886
↓ 3 callers
Method
exists
(&self, pos: usize)
src/containers.rs:185
↓ 3 callers
Method
find_wire_node
(&self, pos: Vec2i, dir: Direction4)
src/board.rs:1125
↓ 3 callers
Method
get_clone
(&self, pos: usize)
src/containers.rs:127
↓ 3 callers
Method
get_mut
(&mut self, pos: usize)
src/containers.rs:134
↓ 3 callers
Method
get_wire
(&self, id: usize)
src/state.rs:549
↓ 3 callers
Method
get_wire_color
(&self, id: usize, style: &Style)
src/state.rs:575
↓ 3 callers
Method
init_circuit_states
(self: &Arc<Self>, first_init: bool)
src/state.rs:907
↓ 3 callers
Method
initialize
(&self)
src/state.rs:472
↓ 3 callers
Method
inner
(&self)
src/circuits/props.rs:106
↓ 3 callers
Method
is_being_used
(self: &Arc<Self>)
src/state.rs:643
↓ 3 callers
Method
is_frozen
(&self)
src/state.rs:639
↓ 3 callers
Method
is_vertical
(self)
src/main.rs:511
↓ 3 callers
Method
iter_pos
(&self, include_start: bool)
src/wires.rs:310
↓ 3 callers
Method
load
(&mut self, _circ: &Arc<Circuit>, data: &serde_intermediate::Intermediate, _paste: bool, errors: &mut ErrorLis
src/circuits/board.rs:747
↓ 3 callers
Method
load
Note: will be called with `()` (`Intermediate::Unit`) if no data was saved before
src/circuits/mod.rs:705
↓ 3 callers
Method
merge_wires
(&self, id: usize, with: usize, update_states: bool)
src/board.rs:139
↓ 3 callers
Method
none_color
(&self)
src/wires.rs:63
↓ 3 callers
Method
pin_at
(&self, pos: Vec2i)
src/board.rs:1358
↓ 3 callers
Method
push_error
(&mut self, error: E)
src/error.rs:77
↓ 3 callers
Function
rect_editor
( rect: &mut Rect, sides: Sides, ui: &Ui, id: Id, constrain: impl FnOnce(Sides, &mut Rect)
src/ui/mod.rs:811
↓ 3 callers
Function
remaining_rect
(ui: &Ui)
src/ui/side_panel.rs:571
↓ 3 callers
Method
remove_intersection_at_node
split param: if intersection was of 2 wires, split them
src/board.rs:841
↓ 3 callers
Method
resolve
( board: Option<&CircuitBoard>, design: Option<&CircuitDesign>, inner: usi
src/circuits/board.rs:180
↓ 3 callers
Method
resolve_outer_to_inner
(&self, outer: usize)
src/circuits/board.rs:208
↓ 3 callers
Method
rotate_clockwise_by
Up - no rotation, Right - one, Down - two, etc
src/main.rs:663
↓ 3 callers
Method
save_boards
(&mut self)
src/app.rs:802
↓ 3 callers
Method
schedule_update
(self: &Arc<Self>, task: UpdateTask)
src/state.rs:802
↓ 3 callers
Method
selected_item
(&self)
src/ui/editor.rs:1364
↓ 3 callers
Method
set
(&mut self, pos: usize, value: T)
src/containers.rs:189
↓ 3 callers
Method
set_parent
(&self, new_parent: Option<StateParent>)
src/state.rs:1223
↓ 3 callers
Method
set_point
( &mut self, pos: Vec2i, states: &StateCollection, point: Option<WirePoint>,
src/wires.rs:149
↓ 3 callers
Method
set_update_interval
(&self, interval: Option<Duration>)
src/circuits/mod.rs:619
← previous
next →
101–200 of 916, ranked by callers