MCPcopy Create free account

hub / github.com/Lutetium-Vanadium/requestty / functions

Functions941 in github.com/Lutetium-Vanadium/requestty

↓ 121 callersMethodcompile_fail
(&self, test_name: &str)
tests/macros.rs:14
↓ 82 callersMethodmessage
Get the message
requestty-ui/src/prompt.rs:87
↓ 63 callersMethodmap
Maps an `Choice<T>` to `Choice<U>` by applying a function to the contained [`Choice::Choice`] if any.
src/question/choice.rs:181
↓ 60 callersFunctionprompt_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 callersMethodset_fg
(&mut self, color: style::Color)
tests/helpers/mod.rs:41
↓ 29 callersMethodchoices
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 callersMethodextend
(&mut self, iter: T)
src/answer.rs:320
↓ 29 callersMethodhandle_key
(&mut self, key: KeyEvent)
requestty-ui/src/string_input.rs:189
↓ 29 callersMethodlen
(&self)
requestty-ui/src/select/tests.rs:77
↓ 29 callersMethodon_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 callersMethodbuild
Consumes the builder returning a [`Question`] [`Question`]: crate::question::Question
src/question/editor.rs:383
↓ 24 callersMethoddefault
Get a reference to the choice list's default.
src/question/choice.rs:50
↓ 23 callersMethodset_at
Sets the location of the 'cursor' in characters.
requestty-ui/src/string_input.rs:84
↓ 22 callersMethodinto_iter
(self)
src/answer.rs:343
↓ 21 callersFunctionconfirm
(default: Option<bool>, message: &str)
src/question/confirm.rs:254
↓ 21 callersMethodset_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 callersMethodmaybe_update_heights
(&mut self, mut layout: Layout)
requestty-ui/src/select/mod.rs:194
↓ 19 callersMethodinit_page
(&mut self)
requestty-ui/src/select/mod.rs:383
↓ 17 callersMethodadjust_page
Adjust the page considering the direction we moved to
requestty-ui/src/select/mod.rs:270
↓ 17 callersMethodchoice
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 callersFunctioninsert_non_dup
( ident: syn::Ident, item: &mut Option<T>, input: syn::parse::ParseStream, )
requestty-macro/src/helpers.rs:19
↓ 17 callersMethodvalidate
(&mut self)
src/question/editor.rs:107
↓ 17 callersMethodvalue
The last inputted char (if any).
requestty-ui/src/char_input.rs:42
↓ 16 callersMethodmove_cursor_to
(&mut self, x: u16, y: u16)
requestty-ui/src/backend/mod.rs:201
↓ 16 callersMethodwith_line_offset
Creates a new `Layout` with given `line_offset`.
requestty-ui/src/layout.rs:102
↓ 15 callersMethodreset_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 callersMethodas_ref
(&self)
requestty-ui/src/text.rs:123
↓ 13 callersMethodpass
(&self, test_name: &str)
tests/macros.rs:19
↓ 12 callersFunctionsingle_line_vec
Returns a Vec with things will render on a single line
requestty-ui/src/select/tests.rs:83
↓ 12 callersMethodwrite_styled
(&mut self, styled: &Styled<dyn Display + '_>)
requestty-ui/src/backend/mod.rs:180
↓ 11 callersMethodis_empty
Returns true if the list has no elements
requestty-ui/src/select/mod.rs:62
↓ 11 callersMethodlen
(&self)
src/question/choice.rs:45
↓ 11 callersFunctionprompt_with
Prompt all the questions in the given iterator, with the given [`Backend`] and [`EventIterator`].
src/lib.rs:264
↓ 11 callersMethodrun
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 callersMethodset_value
Sets the value to the given character.
requestty-ui/src/char_input.rs:47
↓ 10 callersMethodget_byte_i
Gets the byte index of a given char index
requestty-ui/src/string_input.rs:118
↓ 10 callersFunctionmulti_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 callersMethodshould_loop
(&self)
requestty-ui/src/select/tests.rs:69
↓ 10 callersFunctiontest
(mask: char)
requestty-ui/src/string_input.rs:388
↓ 9 callersMethodline_width
Gets the width of renderable space on the first line. ```text ____________ | vvvvvvv-- line_width | ███████| | ██████████| | ██████████| '-
requestty-ui/src/layout.rs:161
↓ 9 callersFunctionraw_select
(message: &str)
src/question/raw_select/tests.rs:35
↓ 9 callersMethodwith_offset
Creates a new `Layout` with new `offset_x` and `offset_y`.
requestty-ui/src/layout.rs:114
↓ 8 callersMethodas_ref
Converts `&Choice<T>` to `Choice<&T>`. This will clone the [`Choice::Separator`] if any.
src/question/choice.rs:202
↓ 8 callersFunctionchoices
(len: usize)
tests/order_select.rs:5
↓ 8 callersMethodset_fg
(&mut self, color: Color)
requestty-ui/src/backend/mod.rs:174
↓ 8 callersMethodset_value
Sets the value
requestty-ui/src/string_input.rs:94
↓ 8 callersMethodwith_page_size
(mut self, page_size: usize)
requestty-ui/src/select/tests.rs:26
↓ 7 callersFunctioncurrent
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 callersMethodget_at
The index of the element that is currently being hovered.
requestty-ui/src/select/mod.rs:123
↓ 7 callersMethodis_paginating
(&self)
requestty-ui/src/select/mod.rs:226
↓ 7 callersMethodlen
(&self)
src/question/expand/mod.rs:265
↓ 7 callersMethodoffset_cursor
Converts a `cursor_pos` relative to (`offset_x`, `offset_y`) to be relative to (0, 0)
requestty-ui/src/layout.rs:147
↓ 7 callersFunctiontest
( message: &'static str, hint: Option<&'static str>, delim: Delimiter,
requestty-ui/src/prompt.rs:246
↓ 7 callersMethodunwrap_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 callersMethodclear_range
(&mut self, range: R)
requestty-ui/src/backend/test_backend.rs:188
↓ 6 callersMethodhide_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 callersMethodinto_inner
Consumes the [`Select`] returning the original list.
requestty-ui/src/select/mod.rs:150
↓ 6 callersMethodlayout
(&self)
requestty-ui/src/input.rs:122
↓ 6 callersMethodlen
(&self)
src/question/raw_select/mod.rs:179
↓ 6 callersMethodmask
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 callersMethodmove_x
(&mut self, x: u16)
requestty-ui/src/backend/test_backend.rs:150
↓ 6 callersMethodset_page_size
Set the choice list's page size.
src/question/choice.rs:75
↓ 6 callersMethodset_should_loop
Set the choice list's should loop.
src/question/choice.rs:80
↓ 6 callersMethodtry_into_list_items
Returns the `Ok(Vec<ListItem>)` if it is one, otherwise returns itself as an [`Err`].
src/answer.rs:190
↓ 6 callersMethodwith_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 callersMethodwith_hint
Sets the hint
requestty-ui/src/prompt.rs:65
↓ 5 callersMethodadd_y
(&mut self, y: u16)
requestty-ui/src/backend/test_backend.rs:171
↓ 5 callersMethodarea
The area of the size
requestty-ui/src/backend/mod.rs:51
↓ 5 callersFunctionchoices
(len: usize)
tests/raw_select.rs:15
↓ 5 callersFunctionchoices
(len: usize)
tests/multi_select.rs:12
↓ 5 callersMethodclear
(&mut self)
requestty-ui/src/input.rs:210
↓ 5 callersMethodfilter_map
(c: char)
src/question/number/mod.rs:54
↓ 5 callersMethodget
(self, answers: &Answers)
src/question/options.rs:142
↓ 5 callersMethodheight
(&mut self, layout: &mut Layout)
requestty-ui/src/input.rs:392
↓ 5 callersMethodmove_y
(&mut self, y: u16)
requestty-ui/src/backend/test_backend.rs:155
↓ 5 callersMethodrender
(&mut self, layout: &mut Layout, b: &mut B)
requestty-ui/src/select/mod.rs:589
↓ 5 callersMethodreplace_with
Replaces the value with the result of the function
requestty-ui/src/string_input.rs:101
↓ 5 callersMethodtry_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 callersMethodadjust_scrollback
(&mut self, height: u16)
requestty-ui/src/input.rs:144
↓ 4 callersMethodas_mut
Converts `&mut Choice<T>` to `Choice<&mut T>`. This will clone the [`Choice::Separator`] if any.
src/question/choice.rs:213
↓ 4 callersMethodcell
(&mut self)
requestty-ui/src/backend/test_backend.rs:183
↓ 4 callersMethodcell_i
(&self)
requestty-ui/src/backend/test_backend.rs:179
↓ 4 callersMethodget_char_i
Gets the char index of a given byte index
requestty-ui/src/string_input.rs:127
↓ 4 callersMethodinsert
(&mut self, name: String, answer: Answer)
src/answer.rs:293
↓ 4 callersMethodinto_input_prompt
(self, message: &'a str, answers: &'a Answers)
src/question/input/mod.rs:273
↓ 4 callersMethodinto_prompt
(self, message: &'a str, answers: &'a Answers)
src/question/password.rs:94
↓ 4 callersMethodis_selectable
(&self, index: usize)
requestty-ui/src/select/tests.rs:61
↓ 4 callersMethodis_separator
Returns `true` if the choice is a separator.
src/question/choice.rs:195
↓ 4 callersMethodpage_size
(&self)
requestty-ui/src/select/mod.rs:222
↓ 4 callersMethodparse
(input: syn::parse::ParseStream)
requestty-macro/src/helpers.rs:146
↓ 4 callersFunctionprompt_one
(question: I)
src/lib.rs:255
↓ 4 callersMethodrender
(&mut self)
requestty-ui/src/input.rs:193
↓ 4 callersMethodreset
(&mut self)
requestty-ui/src/input.rs:340
↓ 4 callersFunctiontest
(text: &str, indent: usize, max_width: usize, nlines: usize)
requestty-ui/src/text.rs:169
↓ 4 callersFunctiontest
(list: List<impl Widget>, height: u16, line_offset: u16)
requestty-ui/src/select/tests.rs:103
↓ 4 callersMethodtry_into_list_item
Returns the `Ok(ListItem)` if it is one, otherwise returns itself as an [`Err`].
src/answer.rs:85
↓ 4 callersMethodwith_should_loop
(mut self, should_loop: bool)
requestty-ui/src/select/tests.rs:31
↓ 3 callersMethodavailable_width
Gets the width of renderable space on subsequent lines. ```text ____________ | vvvvvvvvvv-- available_width | ███████| | ██████████| | ███████
requestty-ui/src/layout.rs:175
↓ 3 callersFunctionchoices
(len: usize)
tests/select.rs:12
↓ 3 callersMethodcursor_pos_impl
(&self, layout: Layout)
requestty-ui/src/prompt.rs:144
next →1–100 of 941, ranked by callers