MCPcopy Create free account

hub / github.com/MatrixFrog/crossword / functions

Functions89 in github.com/MatrixFrog/crossword

↓ 26 callersMethodget
Returns the [Square] at the given [Pos].
crossword/src/lib.rs:352
↓ 13 callersMethodis_black
Whether this is [Square::Black].
crossword/src/lib.rs:260
↓ 9 callersMethodis_empty
(&self)
crossword/src/lib.rs:264
↓ 8 callersFunctionchecksum_metadata_string
(s: &[u8], input_checksum: u16)
crossword/src/checksum.rs:21
↓ 7 callersFunctionchecksum_region
(base: &[u8], input_checksum: u16)
crossword/src/checksum.rs:5
↓ 7 callersMethodis_white
Whether this is not a black square, i.e. either a [Square::Empty] or [Square::Letter].
crossword/src/lib.rs:269
↓ 7 callersMethodtake_n_bytes
Take the next `n`` bytes.
crossword/src/puz.rs:289
↓ 6 callersMethodadjust_direction
(&mut self, grid: &Grid)
crossword/src/lib.rs:596
↓ 6 callersMethodheight
The height of this grid.
crossword/src/lib.rs:337
↓ 6 callersMethodwidth
The width of this grid.
crossword/src/lib.rs:332
↓ 5 callersMethodadvance_to_next_word
Moves the cursor to the start of the next word after the current one that is in the same direction as the cursor. If we are already on the last `Acros
crossword/src/lib.rs:658
↓ 5 callersFunctiondecode_str
Turns a NUL-terminated string into a standard String. Uses UTF-8 first, and then ISO-8859-1 if that fails.
crossword/src/puz.rs:180
↓ 5 callersMethodget_start
Determines the position of the start of the word that contains the cursor, and is in the same direction as the cursor.
crossword/src/lib.rs:483
↓ 5 callersMethodgrid
Returns a reference to the current puzzle grid.
crossword/src/lib.rs:81
↓ 5 callersMethodparse_nul_terminated_string
Parses a C-style NUL-terminated string, including the NUL byte. In this function, we return just the raw bytes as they appear in the file. Converting
crossword/src/puz.rs:306
↓ 5 callersMethodparse_short
Consume the next two bytes and return them as a `u16`, interpreted as little-endian.
crossword/src/puz.rs:260
↓ 4 callersMethodpositions
An iterator over all the positions of this grid, from left to right and top to bottom.
crossword/src/lib.rs:342
↓ 3 callersMethodcurrent_clue_identifier
The identifier of the clue for the currently selected word.
crossword/src/lib.rs:156
↓ 3 callersMethodnext
(&mut self)
crossword/src/lib.rs:517
↓ 3 callersMethodrender
(self, area: Rect, buf: &mut Buffer)
crosstui/src/main.rs:123
↓ 3 callersMethodstarts_across
Whether the given position is the start of an Across entry.
crossword/src/lib.rs:464
↓ 3 callersMethodstarts_down
Whether the given position is the start of a Down entry.
crossword/src/lib.rs:473
↓ 2 callersFunctionchecksum_clue
(s: &[u8], input_checksum: u16)
crossword/src/checksum.rs:31
↓ 2 callersMethoddown_neighbor
Returns the square immediately below the given position, or `Square::Black` if the given position is on the bottom edge of the grid.
crossword/src/lib.rs:428
↓ 2 callersMethoderase_letter
Sets the current square to [Empty](Square::Empty).
crossword/src/lib.rs:187
↓ 2 callersMethodis_valid
(&self, grid: &Grid)
crossword/src/lib.rs:577
↓ 2 callersMethodleft
(&mut self, grid: &Grid)
crossword/src/lib.rs:709
↓ 2 callersMethodleft_neighbor
Returns the square immediately to the left of the given position, or `Square::Black` if the given position is on the left edge of the grid.
crossword/src/lib.rs:438
↓ 2 callersFunctionparse_puzzle
(path: &str)
crossword/src/main.rs:5
↓ 2 callersMethodpop
Consume and return the next byte, or return None if that can't be done.
crossword/src/puz.rs:249
↓ 2 callersMethodright_neighbor
Returns the square immediately to the right of the given position, or `Square::Black` if the given position is on the right edge of the grid.
crossword/src/lib.rs:448
↓ 2 callersMethodset
(&mut self, (r, c): Pos, square: Square)
crossword/src/lib.rs:356
↓ 2 callersMethodsize
The size of this grid, expressed as (width, height).
crossword/src/lib.rs:327
↓ 2 callersMethodstarts
(&self, pos: Pos, direction: Direction)
crossword/src/lib.rs:456
↓ 2 callersMethodtitle
(&self)
crossword/src/lib.rs:85
↓ 2 callersMethodup
(&mut self, grid: &Grid)
crossword/src/lib.rs:695
↓ 2 callersMethodup_neighbor
Returns the square immediately above the given position, or `Square::Black` if the given position is on the top edge of the grid.
crossword/src/lib.rs:418
↓ 1 callersMethodadd_letter
Writes the given letter to the current square.
crossword/src/lib.rs:178
↓ 1 callersMethodadvance_cursor_to_next_word
Moves the cursor to the next word in the puzzle.
crossword/src/lib.rs:206
↓ 1 callersFunctionallocate_clues
( grid: &Grid, clue_list: &[String], )
crossword/src/puz.rs:194
↓ 1 callersMethodauthor
(&self)
crossword/src/lib.rs:89
↓ 1 callersMethodbackup
(&mut self, grid: &Grid)
crossword/src/lib.rs:688
↓ 1 callersMethodbackup_cursor
Moves the cursor back one square, if possible. That is, one square to the left if the current cursor direction is Across, and one square up, if the cu
crossword/src/lib.rs:194
↓ 1 callersFunctionbasic_grid
()
crossword/src/lib.rs:750
↓ 1 callersMethodclues
Returns a sorted list of all the clues for the given [Direction].
crossword/src/lib.rs:102
↓ 1 callersMethodcopyright
(&self)
crossword/src/lib.rs:93
↓ 1 callersMethodcross_clue_identifier
The identifier of the clue for the word that *would* be selected if the user were to swap the cursor direction.
crossword/src/lib.rs:163
↓ 1 callersMethodcursor_direction
(&self)
crossword/src/lib.rs:230
↓ 1 callersMethodcursor_down
(&mut self)
crossword/src/lib.rs:221
↓ 1 callersMethodcursor_left
(&mut self)
crossword/src/lib.rs:224
↓ 1 callersMethodcursor_right
(&mut self)
crossword/src/lib.rs:227
↓ 1 callersMethodcursor_up
(&mut self)
crossword/src/lib.rs:218
↓ 1 callersMethoddown
(&mut self, grid: &Grid)
crossword/src/lib.rs:702
↓ 1 callersMethodhandle_crossterm_events
Reads the crossterm events and updates the state of [`App`].
crosstui/src/main.rs:84
↓ 1 callersMethodis_filled
Whether this grid is fully filled in -- that is, has no `Square::Empty` in it.
crossword/src/lib.rs:347
↓ 1 callersMethodis_solved
Whether the puzzle is fully filled in, and matches the solution.
crossword/src/lib.rs:76
↓ 1 callersFunctionload_puzzle
(path: &Path)
crosstui/src/main.rs:40
↓ 1 callersMethodmove_cursor_to_next_empty_in_current_word
Moves the cursor to the next empty square in the current word, or if there are no empty squares left, to the start of the next word.
crossword/src/lib.rs:200
↓ 1 callersMethodmove_to_next_empty_in_current_word
Moves the cursor to the next empty square starting from the current one, in the current word. If there are no empty squares at or after the current o
crossword/src/lib.rs:609
↓ 1 callersMethodnext_down_neighbor
Returns the position of the next white square below `pos`.
crossword/src/lib.rs:375
↓ 1 callersMethodnext_left_neighbor
Returns the position of the next white square to the left of `pos`.
crossword/src/lib.rs:389
↓ 1 callersMethodnext_right_neighbor
Returns the position of the next white square to the right of `pos`.
crossword/src/lib.rs:403
↓ 1 callersMethodnext_up_neighbor
Returns the position of the next white square above `pos`.
crossword/src/lib.rs:361
↓ 1 callersMethodnotes
(&self)
crossword/src/lib.rs:97
↓ 1 callersMethodon_key_event
Handles the key events and updates the state of [`App`].
crosstui/src/main.rs:92
↓ 1 callersMethodquit
Set running to false to quit the application.
crosstui/src/main.rs:117
↓ 1 callersFunctionrender_square
(square: Square, style: Style, area: Rect, buf: &mut Buffer)
crosstui/src/main.rs:310
↓ 1 callersMethodright
(&mut self, grid: &Grid)
crossword/src/lib.rs:716
↓ 1 callersMethodrun
(mut self, terminal: &mut DefaultTerminal)
crosstui/src/main.rs:74
↓ 1 callersMethodsquare_style
Determines how a particular square should be styled. See [SquareStyle].
crossword/src/lib.rs:121
↓ 1 callersMethodswap_cursor_direction
Attempts to swap the cursor direction. However, if the current square is only part of an across clue, the direction cannot be switched to down, and vi
crossword/src/lib.rs:213
↓ 1 callersMethodtake_exact
Take the next `expected.len()` bytes, if they match `expected`.
crossword/src/puz.rs:271
↓ 1 callersFunctionto_ratatui_style
(value: SquareStyle)
crosstui/src/main.rs:301
Methodcurrent_clue
The text of the clue for the currently selected word.
crossword/src/lib.rs:151
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crossword/src/puz.rs:236
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
crossword/src/lib.rs:38
Methodfrom
(value: &u8)
crossword/src/lib.rs:292
Methodfrom_grid
(grid: &Grid)
crossword/src/lib.rs:564
Functiongrid_starts
()
crossword/src/lib.rs:770
Functionmain
A simple CLI for testing .puz parsing
crossword/src/main.rs:11
Functionmain
()
crosstui/src/main.rs:33
Methodnew
(data: Vec<u8>)
crossword/src/puz.rs:244
Methodnew
(size: (usize, usize))
crossword/src/lib.rs:510
Methodnew
(puzzle: Puzzle)
crosstui/src/main.rs:67
Methodnot
(self)
crossword/src/lib.rs:29
Methodparse
Creates a Puz from the bytes of a `.puz` file.
crossword/src/puz.rs:30
Methodparse
Creates a Puzzle from the bytes of a `.puz` file.
crossword/src/lib.rs:68
Functionparse_v12_puzzle
()
crossword/src/puz.rs:360
Methodto_char
(&self)
crossword/src/lib.rs:47