Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lutetium-Vanadium/requestty
/ functions
Functions
941 in github.com/Lutetium-Vanadium/requestty
⨍
Functions
941
◇
Types & classes
102
↓ 121 callers
Method
compile_fail
(&self, test_name: &str)
tests/macros.rs:14
↓ 82 callers
Method
message
Get the message
requestty-ui/src/prompt.rs:87
↓ 63 callers
Method
map
Maps an `Choice<T>` to `Choice<U>` by applying a function to the contained [`Choice::Choice`] if any.
src/question/choice.rs:181
↓ 60 callers
Function
prompt_one_with
Prompt the given question, with the given [`Backend`] and [`EventIterator`]. # Panics This will panic if `when` on the [`Question`] prevents the que
src/lib.rs:278
↓ 47 callers
Method
set_fg
(&mut self, color: style::Color)
tests/helpers/mod.rs:41
↓ 29 callers
Method
choices
Extends the given iterator of [`Choice`]s See [`expand`] for more information. [`Choice`]: crate::question::Choice [`expand`]: crate::question::Ques
src/question/expand/builder.rs:291
↓ 29 callers
Method
extend
(&mut self, iter: T)
src/answer.rs:320
↓ 29 callers
Method
handle_key
(&mut self, key: KeyEvent)
requestty-ui/src/string_input.rs:189
↓ 29 callers
Method
len
(&self)
requestty-ui/src/select/tests.rs:77
↓ 29 callers
Method
on_esc
What to do after receiving a `Esc`. For [`OnEsc::Terminate`] - an [`Error::Aborted`](error::ErrorKind::Aborted) will be returned. For [`OnEsc::SkipQu
requestty-ui/src/input.rs:115
↓ 26 callers
Method
build
Consumes the builder returning a [`Question`] [`Question`]: crate::question::Question
src/question/editor.rs:383
↓ 24 callers
Method
default
Get a reference to the choice list's default.
src/question/choice.rs:50
↓ 23 callers
Method
set_at
Sets the location of the 'cursor' in characters.
requestty-ui/src/string_input.rs:84
↓ 22 callers
Method
into_iter
(self)
src/answer.rs:343
↓ 21 callers
Function
confirm
(default: Option<bool>, message: &str)
src/question/confirm.rs:254
↓ 21 callers
Method
set_at
Set the index of the element that is currently being hovered. `at` can be any number (even beyond `list.len()`), but the caller is responsible for ma
requestty-ui/src/select/mod.rs:131
↓ 20 callers
Method
maybe_update_heights
(&mut self, mut layout: Layout)
requestty-ui/src/select/mod.rs:194
↓ 19 callers
Method
init_page
(&mut self)
requestty-ui/src/select/mod.rs:383
↓ 17 callers
Method
adjust_page
Adjust the page considering the direction we moved to
requestty-ui/src/select/mod.rs:270
↓ 17 callers
Method
choice
Inserts a [`Choice`] with the given key and text See [`expand`] for more information. [`Choice`]: crate::question::Choice::Choice [`expand`]: crate:
src/question/expand/builder.rs:202
↓ 17 callers
Function
insert_non_dup
( ident: syn::Ident, item: &mut Option<T>, input: syn::parse::ParseStream, )
requestty-macro/src/helpers.rs:19
↓ 17 callers
Method
validate
(&mut self)
src/question/editor.rs:107
↓ 17 callers
Method
value
The last inputted char (if any).
requestty-ui/src/char_input.rs:42
↓ 16 callers
Method
move_cursor_to
(&mut self, x: u16, y: u16)
requestty-ui/src/backend/mod.rs:201
↓ 16 callers
Method
with_line_offset
Creates a new `Layout` with given `line_offset`.
requestty-ui/src/layout.rs:102
↓ 15 callers
Method
reset_with_layout
Clears all the cells and moves the cursor to the offsets given by the layout.
requestty-ui/src/backend/test_backend.rs:140
↓ 13 callers
Method
as_ref
(&self)
requestty-ui/src/text.rs:123
↓ 13 callers
Method
pass
(&self, test_name: &str)
tests/macros.rs:19
↓ 12 callers
Function
single_line_vec
Returns a Vec with things will render on a single line
requestty-ui/src/select/tests.rs:83
↓ 12 callers
Method
write_styled
(&mut self, styled: &Styled<dyn Display + '_>)
requestty-ui/src/backend/mod.rs:180
↓ 11 callers
Method
is_empty
Returns true if the list has no elements
requestty-ui/src/select/mod.rs:62
↓ 11 callers
Method
len
(&self)
src/question/choice.rs:45
↓ 11 callers
Function
prompt_with
Prompt all the questions in the given iterator, with the given [`Backend`] and [`EventIterator`].
src/lib.rs:264
↓ 11 callers
Method
run
Display the prompt and process events until the user presses `Enter`. After the user presses `Enter`, [`validate`](Prompt::validate) will be called.
requestty-ui/src/input.rs:261
↓ 11 callers
Method
set_value
Sets the value to the given character.
requestty-ui/src/char_input.rs:47
↓ 10 callers
Method
get_byte_i
Gets the byte index of a given char index
requestty-ui/src/string_input.rs:118
↓ 10 callers
Function
multi_line_list
Returns with first and last element taking 5 lines, and everything in between taking 2 lines
requestty-ui/src/select/tests.rs:88
↓ 10 callers
Method
should_loop
(&self)
requestty-ui/src/select/tests.rs:69
↓ 10 callers
Function
test
(mask: char)
requestty-ui/src/string_input.rs:388
↓ 9 callers
Method
line_width
Gets the width of renderable space on the first line. ```text ____________ | vvvvvvv-- line_width | ███████| | ██████████| | ██████████| '-
requestty-ui/src/layout.rs:161
↓ 9 callers
Function
raw_select
(message: &str)
src/question/raw_select/tests.rs:35
↓ 9 callers
Method
with_offset
Creates a new `Layout` with new `offset_x` and `offset_y`.
requestty-ui/src/layout.rs:114
↓ 8 callers
Method
as_ref
Converts `&Choice<T>` to `Choice<&T>`. This will clone the [`Choice::Separator`] if any.
src/question/choice.rs:202
↓ 8 callers
Function
choices
(len: usize)
tests/order_select.rs:5
↓ 8 callers
Method
set_fg
(&mut self, color: Color)
requestty-ui/src/backend/mod.rs:174
↓ 8 callers
Method
set_value
Sets the value
requestty-ui/src/string_input.rs:94
↓ 8 callers
Method
with_page_size
(mut self, page_size: usize)
requestty-ui/src/select/tests.rs:26
↓ 7 callers
Function
current
Get the current [`SymbolSet`] If not set, it defaults to the [`UNICODE`] symbol set. Also see [`symbols::set`](set). # Example ```no_run # #[cfg(f
requestty-ui/src/symbols.rs:30
↓ 7 callers
Method
get_at
The index of the element that is currently being hovered.
requestty-ui/src/select/mod.rs:123
↓ 7 callers
Method
is_paginating
(&self)
requestty-ui/src/select/mod.rs:226
↓ 7 callers
Method
len
(&self)
src/question/expand/mod.rs:265
↓ 7 callers
Method
offset_cursor
Converts a `cursor_pos` relative to (`offset_x`, `offset_y`) to be relative to (0, 0)
requestty-ui/src/layout.rs:147
↓ 7 callers
Function
test
( message: &'static str, hint: Option<&'static str>, delim: Delimiter,
requestty-ui/src/prompt.rs:246
↓ 7 callers
Method
unwrap_choice
Returns the contained [`Choice::Choice`] value, consuming `self`. # Panics This will panic if `self` is not a [`Choice::Choice`].
src/question/choice.rs:226
↓ 6 callers
Method
clear_range
(&mut self, range: R)
requestty-ui/src/backend/test_backend.rs:188
↓ 6 callers
Method
hide_cursor
Hides the cursor while running the input. This won't do anything until it is [run](Input::run).
requestty-ui/src/input.rs:103
↓ 6 callers
Method
into_inner
Consumes the [`Select`] returning the original list.
requestty-ui/src/select/mod.rs:150
↓ 6 callers
Method
layout
(&self)
requestty-ui/src/input.rs:122
↓ 6 callers
Method
len
(&self)
src/question/raw_select/mod.rs:179
↓ 6 callers
Method
mask
Set a mask to print instead of the characters Each character when printed to the terminal will be replaced by the given mask. If a mask is not provid
src/question/password.rs:242
↓ 6 callers
Method
move_x
(&mut self, x: u16)
requestty-ui/src/backend/test_backend.rs:150
↓ 6 callers
Method
set_page_size
Set the choice list's page size.
src/question/choice.rs:75
↓ 6 callers
Method
set_should_loop
Set the choice list's should loop.
src/question/choice.rs:80
↓ 6 callers
Method
try_into_list_items
Returns the `Ok(Vec<ListItem>)` if it is one, otherwise returns itself as an [`Err`].
src/answer.rs:190
↓ 6 callers
Method
with_cursor_pos
Creates a new `Layout` that represents a region past the `cursor_pos`. `cursor_pos` is relative to `offset_x` and `offset_y`.
requestty-ui/src/layout.rs:134
↓ 6 callers
Method
with_hint
Sets the hint
requestty-ui/src/prompt.rs:65
↓ 5 callers
Method
add_y
(&mut self, y: u16)
requestty-ui/src/backend/test_backend.rs:171
↓ 5 callers
Method
area
The area of the size
requestty-ui/src/backend/mod.rs:51
↓ 5 callers
Function
choices
(len: usize)
tests/raw_select.rs:15
↓ 5 callers
Function
choices
(len: usize)
tests/multi_select.rs:12
↓ 5 callers
Method
clear
(&mut self)
requestty-ui/src/input.rs:210
↓ 5 callers
Method
filter_map
(c: char)
src/question/number/mod.rs:54
↓ 5 callers
Method
get
(self, answers: &Answers)
src/question/options.rs:142
↓ 5 callers
Method
height
(&mut self, layout: &mut Layout)
requestty-ui/src/input.rs:392
↓ 5 callers
Method
move_y
(&mut self, y: u16)
requestty-ui/src/backend/test_backend.rs:155
↓ 5 callers
Method
render
(&mut self, layout: &mut Layout, b: &mut B)
requestty-ui/src/select/mod.rs:589
↓ 5 callers
Method
replace_with
Replaces the value with the result of the function
requestty-ui/src/string_input.rs:101
↓ 5 callers
Method
try_get_index
Gets the index at a given delta taking into account looping if enabled -- delta must be within ±len
requestty-ui/src/select/mod.rs:248
↓ 4 callers
Method
adjust_scrollback
(&mut self, height: u16)
requestty-ui/src/input.rs:144
↓ 4 callers
Method
as_mut
Converts `&mut Choice<T>` to `Choice<&mut T>`. This will clone the [`Choice::Separator`] if any.
src/question/choice.rs:213
↓ 4 callers
Method
cell
(&mut self)
requestty-ui/src/backend/test_backend.rs:183
↓ 4 callers
Method
cell_i
(&self)
requestty-ui/src/backend/test_backend.rs:179
↓ 4 callers
Method
get_char_i
Gets the char index of a given byte index
requestty-ui/src/string_input.rs:127
↓ 4 callers
Method
insert
(&mut self, name: String, answer: Answer)
src/answer.rs:293
↓ 4 callers
Method
into_input_prompt
(self, message: &'a str, answers: &'a Answers)
src/question/input/mod.rs:273
↓ 4 callers
Method
into_prompt
(self, message: &'a str, answers: &'a Answers)
src/question/password.rs:94
↓ 4 callers
Method
is_selectable
(&self, index: usize)
requestty-ui/src/select/tests.rs:61
↓ 4 callers
Method
is_separator
Returns `true` if the choice is a separator.
src/question/choice.rs:195
↓ 4 callers
Method
page_size
(&self)
requestty-ui/src/select/mod.rs:222
↓ 4 callers
Method
parse
(input: syn::parse::ParseStream)
requestty-macro/src/helpers.rs:146
↓ 4 callers
Function
prompt_one
(question: I)
src/lib.rs:255
↓ 4 callers
Method
render
(&mut self)
requestty-ui/src/input.rs:193
↓ 4 callers
Method
reset
(&mut self)
requestty-ui/src/input.rs:340
↓ 4 callers
Function
test
(text: &str, indent: usize, max_width: usize, nlines: usize)
requestty-ui/src/text.rs:169
↓ 4 callers
Function
test
(list: List<impl Widget>, height: u16, line_offset: u16)
requestty-ui/src/select/tests.rs:103
↓ 4 callers
Method
try_into_list_item
Returns the `Ok(ListItem)` if it is one, otherwise returns itself as an [`Err`].
src/answer.rs:85
↓ 4 callers
Method
with_should_loop
(mut self, should_loop: bool)
requestty-ui/src/select/tests.rs:31
↓ 3 callers
Method
available_width
Gets the width of renderable space on subsequent lines. ```text ____________ | vvvvvvvvvv-- available_width | ███████| | ██████████| | ███████
requestty-ui/src/layout.rs:175
↓ 3 callers
Function
choices
(len: usize)
tests/select.rs:12
↓ 3 callers
Method
cursor_pos_impl
(&self, layout: Layout)
requestty-ui/src/prompt.rs:144
next →
1–100 of 941, ranked by callers