Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chinedufn/percy
/ functions
Functions
600 in github.com/chinedufn/percy
⨍
Functions
600
◇
Types & classes
117
↓ 136 callers
Method
clone
(&self)
crates/percy-router/src/provided.rs:37
↓ 77 callers
Method
test
(&self)
crates/percy-dom/src/diff/diff_test_case.rs:18
↓ 72 callers
Method
into
(self)
crates/virtual-node/src/lib.rs:234
↓ 50 callers
Method
borrow_mut
(&self)
crates/virtual-node/src/event/virtual_events.rs:265
↓ 31 callers
Method
get
Get the inner u32 id.
crates/virtual-node/src/event/virtual_events.rs:25
↓ 28 callers
Method
create_dom_node
Create and return a [`web_sys::Node`] along with its events.
crates/virtual-node/src/lib.rs:139
↓ 26 callers
Method
test
(&mut self)
crates/percy-dom/tests/diff_patch_test_case/mod.rs:25
↓ 25 callers
Method
push_patch
We always push patches if the node has not been deleted. If the node or one of its ancestors has been deleted we only push patches that are applicable
crates/percy-dom/src/diff.rs:90
↓ 23 callers
Function
patch
Apply all of the patches to our old root node in order to create the new root node that we desire. Also, update the `VirtualEvents` with the new virtu
crates/percy-dom/src/patch/apply_patches.rs:22
↓ 21 callers
Method
as_velement_mut
Return a mutable [`VElement`] reference, if this is an [`Element`] variant. [`VElement`]: struct.VElement.html [`Element`]: enum.VirtualNode.html#var
crates/virtual-node/src/lib.rs:108
↓ 21 callers
Method
test
Ensure that the generated and the expected virtual node are equal.
crates/html-macro-test/src/tests/all_tests.rs:20
↓ 20 callers
Method
borrow
(&self)
crates/virtual-node/src/event/virtual_events.rs:262
↓ 20 callers
Method
update
Diff the current virtual dom with the new virtual dom that is being passed in. Then use that diff to patch the real DOM in the user's browser so that
crates/percy-dom/src/pdom.rs:79
↓ 18 callers
Method
into_iter
(self)
crates/virtual-node/src/lib.rs:228
↓ 18 callers
Function
random_id
Tests share the same DOM, so IDs need to be unique across tests.
crates/percy-dom/tests/testing_utilities.rs:11
↓ 17 callers
Method
append_child
Append a child to the end of the list of children.
crates/virtual-node/src/event/virtual_events.rs:405
↓ 17 callers
Function
create_mount
()
crates/percy-dom/tests/testing_utilities.rs:27
↓ 17 callers
Function
set_on_remove_elem_with_unique_id
(node: &mut VirtualNode, on_remove_elem_id: &'static str)
crates/percy-dom/src/diff.rs:2890
↓ 17 callers
Method
set_root
Set the root event node.
crates/virtual-node/src/event/virtual_events.rs:129
↓ 14 callers
Method
as_element
Get the [`VirtualEventNode::VirtualEventElement`] variant.
crates/virtual-node/src/event/virtual_events.rs:290
↓ 14 callers
Function
assert_text_unmodified
(text: &Rc<RefCell<String>>)
crates/percy-dom/tests/events.rs:604
↓ 13 callers
Function
diff
Given two VirtualNode's generate Patch's that would turn the old virtual node's real DOM node equivalent into the new VirtualNode's real DOM node equi
crates/percy-dom/src/diff.rs:14
↓ 13 callers
Method
parse
(input: ParseStream)
crates/html-macro/src/tag.rs:98
↓ 12 callers
Function
start_text
()
crates/percy-dom/tests/events.rs:596
↓ 11 callers
Method
into
(self)
crates/virtual-node/src/velement/attribute_value.rs:59
↓ 11 callers
Method
provide
Provide the application state data that different routes need.
crates/percy-router/src/provided.rs:46
↓ 10 callers
Method
as_velement_ref
Return a [`VElement`] reference, if this is an [`Element`] variant. [`VElement`]: struct.VElement.html [`Element`]: enum.VirtualNode.html#variant.Ele
crates/virtual-node/src/lib.rs:97
↓ 10 callers
Function
assert_text_appended
(text: &Rc<RefCell<String>>, append: &str)
crates/percy-dom/tests/events.rs:612
↓ 9 callers
Method
as_element_mut
Get a mutable reference to the [`VirtualEventNode::VirtualEventElement`] variant.
crates/virtual-node/src/event/virtual_events.rs:298
↓ 8 callers
Method
as_string
If the attribute is a string, return it. Otherwise return None.
crates/virtual-node/src/velement/attribute_value.rs:18
↓ 8 callers
Function
assert_dom_children_and_events_children_match
Some of our patches re-order siblings. Here we test that a dom node and its corresponding events node both have the same number of children in the sa
crates/percy-dom/tests/keyed_lists.rs:636
↓ 8 callers
Function
create_node_and_events_and_append_to_document
(vnode: VirtualNode)
crates/percy-dom/tests/testing_utilities.rs:34
↓ 8 callers
Function
input_node_with_events
( id: &str, events: Vec<EventName>, text: Rc<RefCell<String>>, append: &'static str, )
crates/percy-dom/tests/events.rs:551
↓ 8 callers
Function
mock_event_handler
()
crates/percy-dom/src/diff.rs:2923
↓ 8 callers
Function
send_click_event
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:49
↓ 8 callers
Method
separated_by_whitespace
Determine whether or not there is any space between the end of the first span and the beginning of the second span. There is space if they are on sep
crates/html-macro/src/parser/mod.rs:194
↓ 8 callers
Function
window
()
crates/percy-dom/src/single_page_app.rs:61
↓ 7 callers
Method
msg
(&mut self, msg: &Msg)
examples/isomorphic/app/src/store.rs:25
↓ 7 callers
Method
push_tokens
Add more tokens to our tokens that we'll eventually return to the compiler.
crates/html-macro/src/parser/mod.rs:172
↓ 7 callers
Function
send_input_event
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:56
↓ 7 callers
Function
set_on_create_elem_with_unique_id
(node: &mut VirtualNode, on_create_elem_id: &'static str)
crates/percy-dom/src/diff.rs:2883
↓ 7 callers
Function
window
()
examples/isomorphic/client/src/lib.rs:129
↓ 6 callers
Function
assert_elem_children_equal
( elem: &VirtualEventElement, expected: &[Rc<RefCell<VirtualEventNode>>], )
crates/virtual-node/src/event/virtual_events.rs:563
↓ 6 callers
Method
create_element_node
Create a new element node.
crates/virtual-node/src/event/virtual_events.rs:233
↓ 6 callers
Method
insert_before
Insert a node before another node.
crates/virtual-node/src/event/virtual_events.rs:359
↓ 6 callers
Function
on_remove_node_with_on_remove_child
Return a node that has an on remove element function. This node has a child that also has an on remove element function. <div> <div></div> </div>
crates/percy-dom/src/diff.rs:2911
↓ 6 callers
Method
remove_node_from_siblings
Remove a child node from it's siblings.
crates/virtual-node/src/event/virtual_events.rs:326
↓ 6 callers
Function
set_dangerous_inner_html
(node: &mut VirtualNode, html: &str)
crates/percy-dom/src/diff.rs:2897
↓ 5 callers
Function
div_node_with_event
( id: &str, events: Vec<EventName>, text: Rc<RefCell<String>>, append: &'static str, )
crates/percy-dom/tests/events.rs:560
↓ 5 callers
Function
document
()
crates/percy-dom/tests/testing_utilities.rs:15
↓ 5 callers
Method
events_id
Get this node's unique id for its events.
crates/virtual-node/src/event/virtual_events.rs:395
↓ 5 callers
Method
key_string
Get the attribute's key as a String. If the attribute's tokens were `quote!{ http - equiv }` the string will be "http-equiv".
crates/html-macro/src/tag.rs:82
↓ 5 callers
Function
make_val
(key: &'static str, val: usize)
crates/percy-dom/src/diff/longest_increasing_subsequence.rs:75
↓ 5 callers
Method
matching_route_handler
Return the matching RouteHandler given some `incoming_route`
crates/percy-router/src/router.rs:70
↓ 5 callers
Method
set_on_create_element
Set the [`SpecialAttributes.on_create_element`] function. # Key The key is used when one virtual-node is being patched over another. If the new nod
crates/virtual-node/src/velement/special_attributes.rs:62
↓ 5 callers
Method
spawn
(&self, task: AsyncFnToSpawn)
examples/component-preview/src/async_task_spawner.rs:8
↓ 5 callers
Method
value
Get the attribute's value, such as the "refresh" in `<div http-equiv = "refresh"> </div>.
crates/html-macro/src/tag.rs:92
↓ 5 callers
Function
window
()
crates/percy-preview-app/src/lib.rs:106
↓ 4 callers
Function
create_element_nodes
( events: &VirtualEvents, count: usize, )
crates/virtual-node/src/event/virtual_events.rs:549
↓ 4 callers
Method
create_text_node
Return a `Text` element from a `VirtualNode`, typically right before adding it into the DOM.
crates/virtual-node/src/vtext.rs:23
↓ 4 callers
Method
first_child
Get the element's first child.
crates/virtual-node/src/event/virtual_events.rs:400
↓ 4 callers
Function
get_element_by_id
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:23
↓ 4 callers
Method
insert_event
Insert a newly tracked event. # Panics Panics if the event_name is delegated and the event is not, or vice versa.
crates/virtual-node/src/event/virtual_events.rs:138
↓ 4 callers
Method
on_remove_element_key
The key for the on remove element function
crates/virtual-node/src/velement/special_attributes.rs:98
↓ 4 callers
Function
oninput_name
()
crates/percy-dom/src/diff.rs:2931
↓ 4 callers
Method
push_iterable_nodes
Generate virtual node tokens for a statement that came from in between braces examples: html! { <div> { some_var_in_braces } </div> html! { <div> {
crates/html-macro/src/parser/mod.rs:232
↓ 4 callers
Method
render
(&self)
crates/html-macro-test/src/tests/all_tests.rs:336
↓ 3 callers
Function
as_param_idents
(params: &Punctuated<FnArg, Token![,]>)
crates/percy-router-macro/src/route_macro.rs:375
↓ 3 callers
Function
as_param_types
(params: &Punctuated<FnArg, Token![,]>)
crates/percy-router-macro/src/route_macro.rs:391
↓ 3 callers
Method
call
(&self, element: web_sys::Element)
crates/virtual-node/src/velement/special_attributes.rs:179
↓ 3 callers
Method
events_id_props_prefix
Unique for every PercyDom so that if multiple instances of PercyDom are nested their event delegation handlers don't collide.
crates/virtual-node/src/event/virtual_events.rs:119
↓ 3 callers
Method
get_and_increment
Return the elements implicit key.
crates/percy-dom/src/diff.rs:769
↓ 3 callers
Method
is_delegated
Whether or not this event gets handled by our event delegation system. If not, the event will be attached to the DOM element.
crates/virtual-node/src/event/event_name.rs:33
↓ 3 callers
Function
is_self_closing
(tag: &str)
crates/html-macro/src/parser/mod.rs:277
↓ 3 callers
Function
location
()
examples/isomorphic/client/src/lib.rs:141
↓ 3 callers
Function
location
()
crates/percy-dom/src/single_page_app.rs:69
↓ 3 callers
Function
maybe_set_arg_type
Clone the incoming closure tokens. - If the closure does not have any arguments, return the closure. - If the closure's first argument has a type an
crates/html-macro/src/parser/open_tag/event.rs:190
↓ 3 callers
Method
msg_set_path
(&self, new_path: String)
crates/percy-preview-app/src/window_messenger.rs:14
↓ 3 callers
Method
name_url_friendly
A URL friendly version of the name.
crates/percy-preview/src/lib.rs:48
↓ 3 callers
Method
next_sibling
Get the next sibling.
crates/virtual-node/src/event/virtual_events.rs:311
↓ 3 callers
Function
node_key
( node: &'a VirtualNode, implicit_elem_key: Option<ElementKeyImplicit<'a>>, )
crates/percy-dom/src/diff.rs:717
↓ 3 callers
Function
onclick_name
()
crates/percy-dom/src/diff.rs:2927
↓ 3 callers
Method
render
(&self)
examples/isomorphic/app/src/lib.rs:60
↓ 3 callers
Method
replace_with_node
Replace a node with another. The new node is given the same siblings as the old node.
crates/virtual-node/src/event/virtual_events.rs:318
↓ 3 callers
Method
run
Run the CLI.
crates/percy-cli/src/run.rs:5
↓ 3 callers
Method
set_on_remove_element
Set the [`SpecialAttributes.on_remove_element`] function. # Key The key is used when one virtual-node is being patched over another. If the old nod
crates/virtual-node/src/velement/special_attributes.rs:134
↓ 3 callers
Function
set_virtual_node_marker
Set a property on a node that can be used to know if a node was created by Percy.
crates/virtual-node/src/create_element.rs:128
↓ 3 callers
Method
test
(&self)
crates/percy-router/src/route.rs:260
↓ 2 callers
Function
build
(crate_dir: &PathBuf, target_dir: &PathBuf, out_dir: &PathBuf)
crates/percy-preview-server/src/filesystem_watcher.rs:104
↓ 2 callers
Method
create_element_node
Build a DOM element by recursively creating DOM nodes for this element and it's children, it's children's children, etc.
crates/virtual-node/src/create_element.rs:19
↓ 2 callers
Function
create_render_scheduler
Given a [`PercyDom`] and a function that renders a [`VirtualNode`], return a function that can call that render function up to once per browser animat
crates/percy-dom/src/render.rs:57
↓ 2 callers
Method
current_virtual_node_ident
Get the Ident for the current (last created) virtual node, without incrementing the node index.
crates/html-macro/src/parser/mod.rs:218
↓ 2 callers
Function
document
()
examples/isomorphic/client/src/lib.rs:133
↓ 2 callers
Method
get_event_handler
Get the event handler for a node.
crates/virtual-node/src/event/virtual_events.rs:201
↓ 2 callers
Method
has_events
Whether or not there is at least one event.
crates/virtual-node/src/event.rs:36
↓ 2 callers
Method
increment_old_node_idx
(&mut self, increment: usize)
crates/percy-dom/src/diff.rs:98
↓ 2 callers
Function
insert_non_delegated_event
Insert a non-delegated event
crates/virtual-node/src/event/non_delegated_event_wrapper.rs:9
↓ 2 callers
Function
is_svg_namespace
Whether or not this tag is part svg elements ``` use html_validation::is_svg_namespace; assert_eq!(is_svg_namespace("svg"), true); assert_eq!(is_svg
crates/html-validation/src/svg_namespace.rs:107
↓ 2 callers
Function
make_router
(store: Rc<RefCell<Store>>)
examples/isomorphic/app/src/lib.rs:118
↓ 2 callers
Method
maybe_call_on_create_element
If an `on_create_element` function was set, call it.
crates/virtual-node/src/velement/special_attributes.rs:87
next →
1–100 of 600, ranked by callers