MCPcopy Create free account

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

Functions941 in github.com/Lutetium-Vanadium/requestty

Methodblue
(self)
requestty-ui/src/style.rs:243
Methodchoice
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
Methodchoice
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
Methodchoice
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
Functionchoices
(len: usize)
src/question/select/tests.rs:13
Functionchoices
(len: usize)
src/question/order_select/tests.rs:12
Functionchoices
(len: usize)
src/question/multi_select/tests.rs:28
Methodchoices
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
Methodchoices
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
Methodchoices
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
Methodchoices_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
Methodclear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/crossterm.rs:114
Methodclear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/termion.rs:234
Methodclear
(&mut self, clear_type: ClearType)
requestty-ui/src/backend/test_backend.rs:369
Methodconfirm
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
Methodcrossed_out
(self)
requestty-ui/src/style.rs:420
Methodcursor_pos
Returns the location of the first character
requestty-ui/src/text.rs:112
Methodcursor_pos
(&mut self, layout: Layout)
requestty-ui/src/string_input.rs:344
Methodcursor_pos
(&mut self, layout: Layout)
requestty-ui/src/prompt.rs:213
Methodcursor_pos
Returns the position right after the character if any.
requestty-ui/src/char_input.rs:97
Methodcursor_pos
Returns the location of the first character
requestty-ui/src/widgets.rs:120
Methodcursor_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
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/password.rs:87
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/confirm.rs:39
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/editor.rs:84
Methodcursor_pos
This will panic if called
src/question/choice.rs:270
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/expand/mod.rs:39
Methodcursor_pos
(&mut self, mut layout: ui::layout::Layout)
src/question/raw_select/mod.rs:115
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/select/mod.rs:68
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/input/mod.rs:228
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/order_select/mod.rs:222
Methodcursor_pos
(&mut self, layout: ui::layout::Layout)
src/question/multi_select/mod.rs:126
Methodcustom
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
Functioncustom_prompt
( name: &str, message: &'static str, prompted: &'a mut bool, )
tests/question.rs:24
Methoddefault
()
requestty-ui/src/string_input.rs:365
Methoddefault
()
requestty-ui/src/char_input.rs:106
Methoddefault
()
requestty-ui/src/backend/test_backend.rs:21
Methoddefault
()
requestty-ui/src/events/termion.rs:46
Methoddefault
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
Methoddefault
()
src/question/editor.rs:24
Methoddefault
()
src/question/expand/mod.rs:57
Methoddefault
()
src/question/input/mod.rs:33
Methoddefault
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
Methoddefault
()
src/question/order_select/mod.rs:38
Methoddefault_separator
Inserts a [`DefaultSeparator`]. See [`raw_select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`raw_selec
src/question/raw_select/builder.rs:250
Methoddefault_separator
Inserts a [`DefaultSeparator`] See [`select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`select`]: crat
src/question/select/builder.rs:246
Methoddefault_separator
Inserts a [`DefaultSeparator`] See [`multi_select`] for more information. [`DefaultSeparator`]: crate::question::Choice::DefaultSeparator [`multi_se
src/question/multi_select/builder.rs:235
Methoddelim
Get the delimiter
requestty-ui/src/prompt.rs:97
Methoddelta
(i: i64, delta: i64)
src/question/number/mod.rs:50
Methodderef
(&self)
requestty-ui/src/input.rs:361
Methodderef
(&self)
requestty-ui/src/backend/termion.rs:26
Methodderef
(&self)
src/answer.rs:328
Methodderef_mut
(&mut self)
requestty-ui/src/input.rs:367
Methodderef_mut
(&mut self)
requestty-ui/src/backend/termion.rs:36
Methodderef_mut
(&mut self)
src/answer.rs:334
Methoddim
(self)
requestty-ui/src/style.rs:395
Methoddisable_raw_mode
(&mut self)
requestty-ui/src/backend/crossterm.rs:66
Methoddisable_raw_mode
(&mut self)
requestty-ui/src/backend/termion.rs:178
Methoddisable_raw_mode
(&mut self)
requestty-ui/src/backend/test_backend.rs:309
Methoddisable_raw_mode
(&mut self)
tests/helpers/mod.rs:55
Methoddrop
(&mut self)
requestty-ui/src/input.rs:351
Methoddrop
(&mut self)
requestty-ui/src/events/mod.rs:89
Methodeditor
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
Methodeditor
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
Methodempty
Create a new `TestEvents` which yields no events
requestty-ui/src/events/mod.rs:72
Methodenable_raw_mode
(&mut self)
requestty-ui/src/backend/crossterm.rs:62
Methodenable_raw_mode
(&mut self)
requestty-ui/src/backend/termion.rs:161
Methodenable_raw_mode
(&mut self)
requestty-ui/src/backend/test_backend.rs:304
Methodenable_raw_mode
(&mut self)
tests/helpers/mod.rs:51
Methodeq
(&self, other: &Self)
requestty-ui/src/text.rs:23
Methodeq
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
Methodexpand
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
Methodfinish
(self)
src/question/password.rs:42
Methodfinish
(self)
src/question/confirm.rs:64
Methodfinish
(self)
src/question/expand/mod.rs:127
Methodfinish
(self)
src/question/raw_select/mod.rs:64
Methodfinish
(self)
src/question/select/mod.rs:52
Methodfinish
(self)
src/question/input/mod.rs:238
Methodfinish
(self)
src/question/order_select/mod.rs:186
Methodfinish
(self)
src/question/multi_select/mod.rs:75
Methodfloat
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
Methodflush
(&mut self)
requestty-ui/src/backend/crossterm.rs:40
Methodflush
(&mut self)
requestty-ui/src/backend/termion.rs:70
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
requestty-macro/src/question.rs:160
Methodfmt
(&self, fmt: &mut fmt::Formatter<'_>)
requestty-ui/src/error.rs:29
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
requestty-ui/src/backend/termion.rs:260
Methodfmt
Writes all the cells of the `TestBackend` using [`write_to_buf`]. A screenshot of what the printed output looks like: ![](https://raw.githubusercont
requestty-ui/src/backend/test_backend.rs:402
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
requestty-ui/src/events/termion.rs:23
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/answer.rs:287
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/question/options.rs:133
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/question/choice.rs:22
Methodforce_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
Methodfrom
(path: syn::ExprPath)
requestty-macro/src/helpers.rs:112
Methodfrom
(content: T)
requestty-ui/src/style.rs:61
Methodfrom
(text: S)
requestty-ui/src/text.rs:129
Methodfrom
(delim: Delimiter)
requestty-ui/src/prompt.rs:29
Methodfrom
(e: io::Error)
requestty-ui/src/error.rs:40
Methodfrom
(color: Color)
requestty-ui/src/backend/crossterm.rs:124
Methodfrom
((width, height): (u16, u16))
requestty-ui/src/backend/mod.rs:57
Methodfrom
(c: Cursor)
requestty-ui/src/backend/test_backend.rs:44
← previousnext →301–400 of 941, ranked by callers