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
Method
blue
(self)
requestty-ui/src/style.rs:243
Method
choice
Inserts a [`Choice`] with the given text. See [`raw_select`] for more information. [`Choice`]: crate::question::Choice::Choice [`raw_select`]: crate
src/question/raw_select/builder.rs:201
Method
choice
Inserts a [`Choice`] with the given text. See [`select`] for more information. [`Choice`]: crate::question::Choice::Choice [`select`]: crate::questi
src/question/select/builder.rs:198
Method
choice
Inserts a [`Choice`] with given text and its default checked state as `false`. If you want to set the default checked state, use [`choice_with_defaul
src/question/multi_select/builder.rs:165
Function
choices
(len: usize)
src/question/select/tests.rs:13
Function
choices
(len: usize)
src/question/order_select/tests.rs:12
Function
choices
(len: usize)
src/question/multi_select/tests.rs:28
Method
choices
Extends the given iterator of [`Choice`]s See [`select`] for more information. [`Choice`]: crate::question::Choice [`select`]: crate::question::Ques
src/question/select/builder.rs:274
Method
choices
Extends the given iterator of [`Choice`]s The choices are [`String`]s and can be multiline. [`Choice`]: crate::question::Choice # Examples ``` use
src/question/order_select/builder.rs:171
Method
choices
Extends the given iterator of [`Choice`]s Every [`Choice::Choice`] within will have a default checked value of `false`. If you want to set the defaul
src/question/multi_select/builder.rs:268
Method
choices_with_default
Extends the given iterator of [`Choice`]s with the given default checked value. See [`multi_select`] for more information. [`Choice`]: crate::questi
src/question/multi_select/builder.rs:303
Method
clear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/crossterm.rs:114
Method
clear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/termion.rs:234
Method
clear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/test_backend.rs:369
Method
confirm
Prompt that returns `true` or `false`. <img src="https://raw.githubusercontent.com/lutetium-vanadium/requestty/master/assets/confirm.gif" style="max-
src/question/mod.rs:224
Method
crossed_out
(self)
requestty-ui/src/style.rs:420
Method
cursor_pos
Returns the location of the first character
requestty-ui/src/text.rs:112
Method
cursor_pos
(&mut self, layout: Layout)
requestty-ui/src/string_input.rs:344
Method
cursor_pos
(&mut self, layout: Layout)
requestty-ui/src/prompt.rs:213
Method
cursor_pos
Returns the position right after the character if any.
requestty-ui/src/char_input.rs:97
Method
cursor_pos
Returns the location of the first character
requestty-ui/src/widgets.rs:120
Method
cursor_pos
Returns the starting location of the layout. It should not be relied upon for a sensible cursor position.
requestty-ui/src/select/mod.rs:626
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/password.rs:87
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/confirm.rs:39
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/editor.rs:84
Method
cursor_pos
This will panic if called
src/question/choice.rs:270
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/expand/mod.rs:39
Method
cursor_pos
(&mut self, mut layout: ui::layout::Layout)
src/question/raw_select/mod.rs:115
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/select/mod.rs:68
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/input/mod.rs:228
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/order_select/mod.rs:222
Method
cursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/multi_select/mod.rs:126
Method
custom
Create a [`Question`] from a custom prompt. See [`Prompt`] for more information on writing custom prompts and the various methods on the [`builder`]
src/question/mod.rs:506
Function
custom_prompt
( name: &str, message: &'static str, prompted: &'a mut bool, )
tests/question.rs:24
Method
default
()
requestty-ui/src/string_input.rs:365
Method
default
()
requestty-ui/src/char_input.rs:106
Method
default
()
requestty-ui/src/backend/test_backend.rs:21
Method
default
()
requestty-ui/src/events/termion.rs:46
Method
default
Set a default value for the confirm If the input text is empty, the `default` is taken as the answer. # Examples ``` use requestty::Question; let
src/question/confirm.rs:208
Method
default
()
src/question/editor.rs:24
Method
default
()
src/question/expand/mod.rs:57
Method
default
()
src/question/input/mod.rs:33
Method
default
Set a default value for the input If set and the user presses `Enter` without typing any text, the `default` is taken as the answer. If `default` is
src/question/input/builder.rs:109
Method
default
()
src/question/order_select/mod.rs:38
Method
default_separator
Inserts a [`DefaultSeparator`]. See [`raw_select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`raw_selec
src/question/raw_select/builder.rs:250
Method
default_separator
Inserts a [`DefaultSeparator`] See [`select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`select`]: crat
src/question/select/builder.rs:246
Method
default_separator
Inserts a [`DefaultSeparator`] See [`multi_select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`multi_se
src/question/multi_select/builder.rs:235
Method
delim
Get the delimiter
requestty-ui/src/prompt.rs:97
Method
delta
(i: i64, delta: i64)
src/question/number/mod.rs:50
Method
deref
(&self)
requestty-ui/src/input.rs:361
Method
deref
(&self)
requestty-ui/src/backend/termion.rs:26
Method
deref
(&self)
src/answer.rs:328
Method
deref_mut
(&mut self)
requestty-ui/src/input.rs:367
Method
deref_mut
(&mut self)
requestty-ui/src/backend/termion.rs:36
Method
deref_mut
(&mut self)
src/answer.rs:334
Method
dim
(self)
requestty-ui/src/style.rs:395
Method
disable_raw_mode
(&mut self)
requestty-ui/src/backend/crossterm.rs:66
Method
disable_raw_mode
(&mut self)
requestty-ui/src/backend/termion.rs:178
Method
disable_raw_mode
(&mut self)
requestty-ui/src/backend/test_backend.rs:309
Method
disable_raw_mode
(&mut self)
tests/helpers/mod.rs:55
Method
drop
(&mut self)
requestty-ui/src/input.rs:351
Method
drop
(&mut self)
requestty-ui/src/events/mod.rs:89
Method
editor
Prompt that takes launches the users preferred editor on a temporary file Once the user exits their editor, the contents of the temporary file are re
src/question/mod.rs:200
Method
editor
Use a specific editor instead of the default editor If unspecified, the editor is determined by the `$VISUAL` or `$EDITOR` environment variables. If
src/question/editor.rs:329
Method
empty
Create a new `TestEvents` which yields no events
requestty-ui/src/events/mod.rs:72
Method
enable_raw_mode
(&mut self)
requestty-ui/src/backend/crossterm.rs:62
Method
enable_raw_mode
(&mut self)
requestty-ui/src/backend/termion.rs:161
Method
enable_raw_mode
(&mut self)
requestty-ui/src/backend/test_backend.rs:304
Method
enable_raw_mode
(&mut self)
tests/helpers/mod.rs:51
Method
eq
(&self, other: &Self)
requestty-ui/src/text.rs:23
Method
eq
Visual equality to another backend. This means that if the cells of both backends were rendered on a terminal, they would look the same. It however do
requestty-ui/src/backend/test_backend.rs:73
Method
expand
Prompt that allows the user to select from a list of options by key The keys are ascii case-insensitive characters. The 'h' option is added by the pr
src/question/mod.rs:329
Method
finish
(self)
src/question/password.rs:42
Method
finish
(self)
src/question/confirm.rs:64
Method
finish
(self)
src/question/expand/mod.rs:127
Method
finish
(self)
src/question/raw_select/mod.rs:64
Method
finish
(self)
src/question/select/mod.rs:52
Method
finish
(self)
src/question/input/mod.rs:238
Method
finish
(self)
src/question/order_select/mod.rs:186
Method
finish
(self)
src/question/multi_select/mod.rs:75
Method
float
Prompt that takes a [`f64`] as input. The number is parsed using [`from_str`], but cannot be `NaN`. <img src="https://raw.githubusercontent.com/lute
src/question/mod.rs:292
Method
flush
(&mut self)
requestty-ui/src/backend/crossterm.rs:40
Method
flush
(&mut self)
requestty-ui/src/backend/termion.rs:70
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
requestty-macro/src/question.rs:160
Method
fmt
(&self, fmt: &mut fmt::Formatter<'_>)
requestty-ui/src/error.rs:29
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
requestty-ui/src/backend/termion.rs:260
Method
fmt
Writes all the cells of the `TestBackend` using [`write_to_buf`]. A screenshot of what the printed output looks like: 
requestty-ui/src/events/termion.rs:23
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/answer.rs:287
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/question/options.rs:133
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/question/choice.rs:22
Method
force_recompute
The computed lines are cached between renders, and are only recomputed if the layout changes. This will force a recomputation even if the layout is th
requestty-ui/src/text.rs:44
Method
from
(path: syn::ExprPath)
requestty-macro/src/helpers.rs:112
Method
from
(content: T)
requestty-ui/src/style.rs:61
Method
from
(text: S)
requestty-ui/src/text.rs:129
Method
from
(delim: Delimiter)
requestty-ui/src/prompt.rs:29
Method
from
(e: io::Error)
requestty-ui/src/error.rs:40
Method
from
(color: Color)
requestty-ui/src/backend/crossterm.rs:124
Method
from
((width, height): (u16, u16))
requestty-ui/src/backend/mod.rs:57
Method
from
(c: Cursor)
requestty-ui/src/backend/test_backend.rs:44
← previous
next →
301–400 of 941, ranked by callers