move_to() — tailwindcss Function Reference
Architecture documentation for the move_to() function in cursor.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 95863211_f6f6_7fff_0253_53a5f33740d9["move_to()"] 7d861e36_ab5b_aab3_3c31_06162bbc77b3["new()"] 7d861e36_ab5b_aab3_3c31_06162bbc77b3 -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 1d9f0587_3ee2_e78a_02be_cdc4a682af31["advance_by()"] 1d9f0587_3ee2_e78a_02be_cdc4a682af31 -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 e98f75c7_be5d_2b5f_4edb_c53b52a5b951["next()"] e98f75c7_be5d_2b5f_4edb_c53b52a5b951 -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 42310c9d_2680_b572_ccde_1fbbe4d1455a["extract_sub_candidates()"] 42310c9d_2680_b572_ccde_1fbbe4d1455a -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 8faec703_0c1c_dd65_5f9e_9f8137271c9e["skip_indented_block()"] 8faec703_0c1c_dd65_5f9e_9f8137271c9e -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9 style 95863211_f6f6_7fff_0253_53a5f33740d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/cursor.rs lines 72–83
pub fn move_to(&mut self, pos: usize) {
let len = self.input.len();
let pos = pos.clamp(0, len);
self.pos = pos;
self.at_start = pos == 0;
self.at_end = pos + 1 >= len;
self.prev = *self.input.get(pos.wrapping_sub(1)).unwrap_or(&0x00u8);
self.curr = *self.input.get(pos).unwrap_or(&0x00u8);
self.next = *self.input.get(pos.saturating_add(1)).unwrap_or(&0x00u8);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does move_to() do?
move_to() is a function in the tailwindcss codebase.
What calls move_to()?
move_to() is called by 5 function(s): advance_by, extract_sub_candidates, new, next, skip_indented_block.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free