MCPcopy Create free account

hub / github.com/chinedufn/percy / functions

Functions600 in github.com/chinedufn/percy

↓ 136 callersMethodclone
(&self)
crates/percy-router/src/provided.rs:37
↓ 77 callersMethodtest
(&self)
crates/percy-dom/src/diff/diff_test_case.rs:18
↓ 72 callersMethodinto
(self)
crates/virtual-node/src/lib.rs:234
↓ 50 callersMethodborrow_mut
(&self)
crates/virtual-node/src/event/virtual_events.rs:265
↓ 31 callersMethodget
Get the inner u32 id.
crates/virtual-node/src/event/virtual_events.rs:25
↓ 28 callersMethodcreate_dom_node
Create and return a [`web_sys::Node`] along with its events.
crates/virtual-node/src/lib.rs:139
↓ 26 callersMethodtest
(&mut self)
crates/percy-dom/tests/diff_patch_test_case/mod.rs:25
↓ 25 callersMethodpush_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 callersFunctionpatch
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 callersMethodas_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 callersMethodtest
Ensure that the generated and the expected virtual node are equal.
crates/html-macro-test/src/tests/all_tests.rs:20
↓ 20 callersMethodborrow
(&self)
crates/virtual-node/src/event/virtual_events.rs:262
↓ 20 callersMethodupdate
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 callersMethodinto_iter
(self)
crates/virtual-node/src/lib.rs:228
↓ 18 callersFunctionrandom_id
Tests share the same DOM, so IDs need to be unique across tests.
crates/percy-dom/tests/testing_utilities.rs:11
↓ 17 callersMethodappend_child
Append a child to the end of the list of children.
crates/virtual-node/src/event/virtual_events.rs:405
↓ 17 callersFunctioncreate_mount
()
crates/percy-dom/tests/testing_utilities.rs:27
↓ 17 callersFunctionset_on_remove_elem_with_unique_id
(node: &mut VirtualNode, on_remove_elem_id: &'static str)
crates/percy-dom/src/diff.rs:2890
↓ 17 callersMethodset_root
Set the root event node.
crates/virtual-node/src/event/virtual_events.rs:129
↓ 14 callersMethodas_element
Get the [`VirtualEventNode::VirtualEventElement`] variant.
crates/virtual-node/src/event/virtual_events.rs:290
↓ 14 callersFunctionassert_text_unmodified
(text: &Rc<RefCell<String>>)
crates/percy-dom/tests/events.rs:604
↓ 13 callersFunctiondiff
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 callersMethodparse
(input: ParseStream)
crates/html-macro/src/tag.rs:98
↓ 12 callersFunctionstart_text
()
crates/percy-dom/tests/events.rs:596
↓ 11 callersMethodinto
(self)
crates/virtual-node/src/velement/attribute_value.rs:59
↓ 11 callersMethodprovide
Provide the application state data that different routes need.
crates/percy-router/src/provided.rs:46
↓ 10 callersMethodas_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 callersFunctionassert_text_appended
(text: &Rc<RefCell<String>>, append: &str)
crates/percy-dom/tests/events.rs:612
↓ 9 callersMethodas_element_mut
Get a mutable reference to the [`VirtualEventNode::VirtualEventElement`] variant.
crates/virtual-node/src/event/virtual_events.rs:298
↓ 8 callersMethodas_string
If the attribute is a string, return it. Otherwise return None.
crates/virtual-node/src/velement/attribute_value.rs:18
↓ 8 callersFunctionassert_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 callersFunctioncreate_node_and_events_and_append_to_document
(vnode: VirtualNode)
crates/percy-dom/tests/testing_utilities.rs:34
↓ 8 callersFunctioninput_node_with_events
( id: &str, events: Vec<EventName>, text: Rc<RefCell<String>>, append: &'static str, )
crates/percy-dom/tests/events.rs:551
↓ 8 callersFunctionmock_event_handler
()
crates/percy-dom/src/diff.rs:2923
↓ 8 callersFunctionsend_click_event
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:49
↓ 8 callersMethodseparated_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 callersFunctionwindow
()
crates/percy-dom/src/single_page_app.rs:61
↓ 7 callersMethodmsg
(&mut self, msg: &Msg)
examples/isomorphic/app/src/store.rs:25
↓ 7 callersMethodpush_tokens
Add more tokens to our tokens that we'll eventually return to the compiler.
crates/html-macro/src/parser/mod.rs:172
↓ 7 callersFunctionsend_input_event
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:56
↓ 7 callersFunctionset_on_create_elem_with_unique_id
(node: &mut VirtualNode, on_create_elem_id: &'static str)
crates/percy-dom/src/diff.rs:2883
↓ 7 callersFunctionwindow
()
examples/isomorphic/client/src/lib.rs:129
↓ 6 callersFunctionassert_elem_children_equal
( elem: &VirtualEventElement, expected: &[Rc<RefCell<VirtualEventNode>>], )
crates/virtual-node/src/event/virtual_events.rs:563
↓ 6 callersMethodcreate_element_node
Create a new element node.
crates/virtual-node/src/event/virtual_events.rs:233
↓ 6 callersMethodinsert_before
Insert a node before another node.
crates/virtual-node/src/event/virtual_events.rs:359
↓ 6 callersFunctionon_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 callersMethodremove_node_from_siblings
Remove a child node from it's siblings.
crates/virtual-node/src/event/virtual_events.rs:326
↓ 6 callersFunctionset_dangerous_inner_html
(node: &mut VirtualNode, html: &str)
crates/percy-dom/src/diff.rs:2897
↓ 5 callersFunctiondiv_node_with_event
( id: &str, events: Vec<EventName>, text: Rc<RefCell<String>>, append: &'static str, )
crates/percy-dom/tests/events.rs:560
↓ 5 callersFunctiondocument
()
crates/percy-dom/tests/testing_utilities.rs:15
↓ 5 callersMethodevents_id
Get this node's unique id for its events.
crates/virtual-node/src/event/virtual_events.rs:395
↓ 5 callersMethodkey_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 callersFunctionmake_val
(key: &'static str, val: usize)
crates/percy-dom/src/diff/longest_increasing_subsequence.rs:75
↓ 5 callersMethodmatching_route_handler
Return the matching RouteHandler given some `incoming_route`
crates/percy-router/src/router.rs:70
↓ 5 callersMethodset_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 callersMethodspawn
(&self, task: AsyncFnToSpawn)
examples/component-preview/src/async_task_spawner.rs:8
↓ 5 callersMethodvalue
Get the attribute's value, such as the "refresh" in `<div http-equiv = "refresh"> </div>.
crates/html-macro/src/tag.rs:92
↓ 5 callersFunctionwindow
()
crates/percy-preview-app/src/lib.rs:106
↓ 4 callersFunctioncreate_element_nodes
( events: &VirtualEvents, count: usize, )
crates/virtual-node/src/event/virtual_events.rs:549
↓ 4 callersMethodcreate_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 callersMethodfirst_child
Get the element's first child.
crates/virtual-node/src/event/virtual_events.rs:400
↓ 4 callersFunctionget_element_by_id
(id: &str)
crates/percy-dom/tests/testing_utilities.rs:23
↓ 4 callersMethodinsert_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 callersMethodon_remove_element_key
The key for the on remove element function
crates/virtual-node/src/velement/special_attributes.rs:98
↓ 4 callersFunctiononinput_name
()
crates/percy-dom/src/diff.rs:2931
↓ 4 callersMethodpush_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 callersMethodrender
(&self)
crates/html-macro-test/src/tests/all_tests.rs:336
↓ 3 callersFunctionas_param_idents
(params: &Punctuated<FnArg, Token![,]>)
crates/percy-router-macro/src/route_macro.rs:375
↓ 3 callersFunctionas_param_types
(params: &Punctuated<FnArg, Token![,]>)
crates/percy-router-macro/src/route_macro.rs:391
↓ 3 callersMethodcall
(&self, element: web_sys::Element)
crates/virtual-node/src/velement/special_attributes.rs:179
↓ 3 callersMethodevents_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 callersMethodget_and_increment
Return the elements implicit key.
crates/percy-dom/src/diff.rs:769
↓ 3 callersMethodis_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 callersFunctionis_self_closing
(tag: &str)
crates/html-macro/src/parser/mod.rs:277
↓ 3 callersFunctionlocation
()
examples/isomorphic/client/src/lib.rs:141
↓ 3 callersFunctionlocation
()
crates/percy-dom/src/single_page_app.rs:69
↓ 3 callersFunctionmaybe_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 callersMethodmsg_set_path
(&self, new_path: String)
crates/percy-preview-app/src/window_messenger.rs:14
↓ 3 callersMethodname_url_friendly
A URL friendly version of the name.
crates/percy-preview/src/lib.rs:48
↓ 3 callersMethodnext_sibling
Get the next sibling.
crates/virtual-node/src/event/virtual_events.rs:311
↓ 3 callersFunctionnode_key
( node: &'a VirtualNode, implicit_elem_key: Option<ElementKeyImplicit<'a>>, )
crates/percy-dom/src/diff.rs:717
↓ 3 callersFunctiononclick_name
()
crates/percy-dom/src/diff.rs:2927
↓ 3 callersMethodrender
(&self)
examples/isomorphic/app/src/lib.rs:60
↓ 3 callersMethodreplace_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 callersMethodrun
Run the CLI.
crates/percy-cli/src/run.rs:5
↓ 3 callersMethodset_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 callersFunctionset_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 callersMethodtest
(&self)
crates/percy-router/src/route.rs:260
↓ 2 callersFunctionbuild
(crate_dir: &PathBuf, target_dir: &PathBuf, out_dir: &PathBuf)
crates/percy-preview-server/src/filesystem_watcher.rs:104
↓ 2 callersMethodcreate_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 callersFunctioncreate_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 callersMethodcurrent_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 callersFunctiondocument
()
examples/isomorphic/client/src/lib.rs:133
↓ 2 callersMethodget_event_handler
Get the event handler for a node.
crates/virtual-node/src/event/virtual_events.rs:201
↓ 2 callersMethodhas_events
Whether or not there is at least one event.
crates/virtual-node/src/event.rs:36
↓ 2 callersMethodincrement_old_node_idx
(&mut self, increment: usize)
crates/percy-dom/src/diff.rs:98
↓ 2 callersFunctioninsert_non_delegated_event
Insert a non-delegated event
crates/virtual-node/src/event/non_delegated_event_wrapper.rs:9
↓ 2 callersFunctionis_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 callersFunctionmake_router
(store: Rc<RefCell<Store>>)
examples/isomorphic/app/src/lib.rs:118
↓ 2 callersMethodmaybe_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