Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/doonv/bevy_dev_console
/ functions
Functions
142 in github.com/doonv/bevy_dev_console
⨍
Functions
142
◇
Types & classes
51
↓ 46 callers
Method
span
(&self)
src/builtin_parser/parser.rs:221
↓ 38 callers
Method
slice
(&self)
src/builtin_parser/lexer.rs:160
↓ 36 callers
Method
wrap
(self, value: T)
src/builtin_parser.rs:40
↓ 32 callers
Method
clone
(&self)
src/builtin_parser/runner/unique_rc.rs:50
↓ 21 callers
Method
push
Push a list of hints. This should be done once per command call.
src/command.rs:98
↓ 18 callers
Method
next
Returns the next [`Token`] and advances the iterator
src/builtin_parser/lexer.rs:119
↓ 17 callers
Method
parse
(&self, command: &str, world: &mut World)
src/command.rs:16
↓ 15 callers
Method
peek
(&self)
src/builtin_parser/lexer.rs:146
↓ 14 callers
Method
format_text
Returns a [`TextFormat`] with the default font and color.
src/config.rs:139
↓ 14 callers
Method
iter
Iterate over all the variables and functions in the current scope of the environment. Does not include variables and functions from higher scopes.
src/builtin_parser/runner/environment.rs:361
↓ 13 callers
Method
borrow
Create a new weak pointer to this [`UniqueRc`].
src/builtin_parser/runner/unique_rc.rs:28
↓ 10 callers
Method
map
(self, f: impl FnOnce(T) -> U)
src/builtin_parser.rs:61
↓ 10 callers
Function
map_parseint_error
( span: Span, slice: &'s str, number_kind: &'static str, )
src/builtin_parser/parser.rs:613
↓ 9 callers
Method
upgrade
Converts this [`WeakRef`] into a [`StrongRef`] (may be unsafe, see [`StrongRef`]'s documentation).
src/builtin_parser/runner/unique_rc.rs:90
↓ 7 callers
Function
parse_expression
( tokens: &mut TokenStream, environment: &Environment, )
src/builtin_parser/parser.rs:300
↓ 7 callers
Method
to_color32
(&self)
src/config.rs:66
↓ 5 callers
Method
into_inner
Get the inner value (`T`) of this [`UniqueRc<T>`].
src/builtin_parser/runner/unique_rc.rs:38
↓ 5 callers
Method
peek_span
(&self)
src/builtin_parser/lexer.rs:174
↓ 5 callers
Method
set
Set a variable.
src/builtin_parser/runner/environment.rs:224
↓ 4 callers
Method
create_registration
(&self, type_id: TypeId)
src/builtin_parser/runner/reflection.rs:101
↓ 4 callers
Function
eval_expression
( expr: Spanned<Expression>, EvalParams { world, environment, registrations,
src/builtin_parser/runner.rs:160
↓ 4 callers
Method
get
Returns a reference to a variable.
src/builtin_parser/runner/environment.rs:268
↓ 4 callers
Method
mut_dyn_reflect
( &self, world: &'a mut World, registration: impl CreateRegistration, )
src/builtin_parser/runner/reflection.rs:36
↓ 3 callers
Method
apply
(self, world: &mut World)
src/command.rs:161
↓ 3 callers
Method
borrow_inner
(&self)
src/builtin_parser/runner/unique_rc.rs:24
↓ 3 callers
Function
eval_tuple
( tuple: Vec<Spanned<Expression>>, EvalParams { world, environment, registrati
src/builtin_parser/runner.rs:596
↓ 3 callers
Function
parse
(tokens: &mut TokenStream, environment: &Environment)
src/builtin_parser/parser.rs:279
↓ 3 callers
Method
span
(&self)
src/builtin_parser/lexer.rs:153
↓ 2 callers
Function
add
Function with parameters and return value. Note that this will cause an error if an integer is passed onto this function.
examples/custom_functions.rs:23
↓ 2 callers
Method
borrow_mut
Mutably borrows the wrapped value.
src/builtin_parser/runner/unique_rc.rs:121
↓ 2 callers
Function
eval_object
( map: HashMap<String, Spanned<Expression>>, EvalParams { world, environment,
src/builtin_parser/runner.rs:567
↓ 2 callers
Method
kind
Returns the kind of [`Number`] as a [string slice](str). You may want to use [`natural_kind`](Self::natural_kind) instead for more natural sounding er
src/builtin_parser/number.rs:84
↓ 2 callers
Method
kind
(&self)
src/builtin_parser/parser.rs:105
↓ 2 callers
Function
parse_additive
( tokens: &mut TokenStream, environment: &Environment, )
src/builtin_parser/parser.rs:339
↓ 2 callers
Function
parse_multiplicitive
( tokens: &mut TokenStream, environment: &Environment, )
src/builtin_parser/parser.rs:366
↓ 2 callers
Function
parse_object
Parses an object. - `{}` - `{test: 4}` - `{str: "sup!", num: -6.2}`
src/builtin_parser/parser.rs:728
↓ 2 callers
Function
parse_value
( tokens: &mut TokenStream, environment: &Environment, )
src/builtin_parser/parser.rs:395
↓ 2 callers
Method
peek_slice
(&self)
src/builtin_parser/lexer.rs:167
↓ 2 callers
Method
reflect
Converts this into a [`Box<dyn Reflect>`](Reflect).
src/builtin_parser/number.rs:38
↓ 2 callers
Method
resolve
(&self, name: &str, span: Span)
src/builtin_parser/runner/environment.rs:315
↓ 2 callers
Method
resolve_mut
(&mut self, name: &str, span: Span)
src/builtin_parser/runner/environment.rs:325
↓ 2 callers
Function
store_in_cache
(environment: &Environment)
src/builtin_parser/completions.rs:30
↓ 2 callers
Function
submit_command
(command: &mut String, commands: &mut Commands)
src/ui.rs:115
↓ 2 callers
Method
try_format
Attempts to format this [`Value`]. Returns an error if the [`Value`] is a reference to moved data.
src/builtin_parser/runner/value.rs:99
↓ 1 callers
Function
add_log
( ui: &mut egui::Ui, id: usize, event: &LogMessage, is_new: &mut bool, hints: &mut Command
src/ui.rs:197
↓ 1 callers
Function
change_selected_completion
Also consumes the up and down arrow keys.
src/ui/completions.rs:145
↓ 1 callers
Method
color_level
Returns a [`Color32`] based on the `level`
src/config.rs:120
↓ 1 callers
Method
completion
(&self, keyword: &str, world: &World)
src/command.rs:23
↓ 1 callers
Function
completions
( text_edit: egui::text_edit::TextEditOutput, text_edit_id: egui::Id, state: &mut ConsoleUiState,
src/ui/completions.rs:12
↓ 1 callers
Function
create_custom_log_layer
(app: &mut App)
src/logging.rs:17
↓ 1 callers
Function
custom_environment
Register our functions by creating and inserting our own environment
examples/custom_functions.rs:65
↓ 1 callers
Function
debug_subprint
(reflect: &dyn Reflect, indentation: usize)
src/builtin_parser/runner/value.rs:248
↓ 1 callers
Function
eval_member_expression
Evaluate a member expression. A member expression allows indexing of values to access their inner fields. # Examples ```text $ {a: 5}.a > 5 $ x = {
src/builtin_parser/runner/member.rs:28
↓ 1 callers
Function
eval_path
Evaluate a path expression. A path expression, in contrast to a member expression, is for creating new variables or assigning to existing ones. # Ex
src/builtin_parser/runner/member.rs:143
↓ 1 callers
Function
fancy_debug_print
A massive function that takes in a type registration and the world and then does all the hard work of printing out the type nicely.
src/builtin_parser/runner/value.rs:237
↓ 1 callers
Method
format_bold
Returns a [`TextFormat`] with the default font and white color.
src/config.rs:149
↓ 1 callers
Method
format_level
Returns a [`TextFormat`] with a color based on the [`Level`] and the [`ConsoleTheme`].
src/config.rs:131
↓ 1 callers
Function
format_line
( time: DateTime<chrono::Local>, config: &ConsoleConfig, LogMessage { message, nam
src/ui.rs:253
↓ 1 callers
Method
function_scope
( &mut self, name: &str, function: impl FnOnce(&mut Self, &mut Function) -> T, )
src/builtin_parser/runner/environment.rs:238
↓ 1 callers
Method
get_function
Returns a reference to a function if it exists.
src/builtin_parser/runner/environment.rs:229
↓ 1 callers
Method
get_rc
Get a reference to the inner [`Rc`] of [`UniqueRc`]. # Safety This function is unsafe because it allows direct access to the [`Rc`]. If cloned then
src/builtin_parser/runner/unique_rc.rs:21
↓ 1 callers
Method
hint
(&self)
src/builtin_parser/parser.rs:240
↓ 1 callers
Method
hints
Returns all the hints for this error.
src/builtin_parser/runner/error.rs:112
↓ 1 callers
Method
kind
Returns the kind of [`Value`] as a [string slice](str). You may want to use [`natural_kind`](Self::natural_kind) instead for more natural sounding err
src/builtin_parser/runner/value.rs:202
↓ 1 callers
Method
move_var
"Moves" a variable, giving you ownership over it. However it will no longer be able to be used unless it's a [`Value::None`], [`Value::Boolean`], or
src/builtin_parser/runner/environment.rs:285
↓ 1 callers
Function
mut_dyn_reflect
( world: &'a mut World, registration: &TypeRegistration, )
src/builtin_parser/runner/reflection.rs:60
↓ 1 callers
Method
natural
Returns the kind of [`Access`] as a [string slice](str) with an `a` or `an` prepended to it. Used for more natural sounding error messages.
src/builtin_parser/parser.rs:121
↓ 1 callers
Method
natural_kind
Returns the kind of [`Value`] as a [string slice](str) with an `a` or `an` prepended to it. Used for more natural sounding error messages.
src/builtin_parser/runner/value.rs:219
↓ 1 callers
Method
neg
Performs the unary `-` operation.
src/builtin_parser/number.rs:235
↓ 1 callers
Function
non_keyword
(character: char)
src/ui/completions.rs:26
↓ 1 callers
Function
object_to_dynamic_struct
( hashmap: HashMap<String, (Value, Span, &'static str)>, )
src/builtin_parser/runner/reflection.rs:48
↓ 1 callers
Function
parse_literal
Parses a literal (value without member expressions)
src/builtin_parser/parser.rs:400
↓ 1 callers
Function
parse_number
(tokens: &mut TokenStream)
src/builtin_parser/parser.rs:636
↓ 1 callers
Function
parse_var_assign
( name: Spanned<Expression>, tokens: &mut TokenStream<'_>, environment: &Environment, )
src/builtin_parser/parser.rs:705
↓ 1 callers
Function
ref_depth_reference
(value: Ref<Value>, span: Range<usize>)
src/builtin_parser/runner/stdlib.rs:34
↓ 1 callers
Function
ref_dyn_reflect
( world: &'a World, registration: &TypeRegistration, )
src/builtin_parser/runner/reflection.rs:79
↓ 1 callers
Method
ref_dyn_reflect
( &self, world: &'a World, registration: impl CreateRegistration, )
src/builtin_parser/runner/reflection.rs:26
↓ 1 callers
Method
reflect
Converts this value into a [`Box<dyn Reflect>`]. `ty` is used for type inference.
src/builtin_parser/runner/value.rs:67
↓ 1 callers
Function
register
(environment: &mut Environment)
src/builtin_parser/runner/stdlib.rs:80
↓ 1 callers
Function
render_ui
The function that renders the UI of the developer console.
src/ui.rs:106
↓ 1 callers
Method
reset_hint_added
(&mut self)
src/command.rs:110
↓ 1 callers
Function
run
(ast: Ast, world: &mut World)
src/builtin_parser/runner.rs:92
↓ 1 callers
Method
spans
Get all the locations of the error in the source.
src/builtin_parser/runner/error.rs:82
↓ 1 callers
Function
store_in_cache_vec
( environment: &Environment, function_names: &mut Vec<String>, variable_names: &mut Vec<String>, )
src/builtin_parser/completions.rs:40
↓ 1 callers
Function
system_time_to_chrono_utc
(t: SystemTime)
src/ui.rs:56
Function
_parse_block
(tokens: &mut TokenStream, environment: &Environment)
src/builtin_parser/parser.rs:332
Method
build
(&self, app: &mut App)
src/lib.rs:22
Method
completion
(&self, keyword: &str, world: &World)
src/command.rs:144
Method
completion
(&self, command: &str, world: &World)
src/builtin_parser.rs:115
Function
custom_log_layer
A function that implements the log reading functionality for the developer console via [`LogPlugin::custom_layer`](bevy::log::LogPlugin::custom_layer)
src/logging.rs:13
Function
dbg
(any: Value)
src/builtin_parser/runner/stdlib.rs:29
Method
default
()
src/config.rs:19
Method
default
()
src/builtin_parser.rs:70
Method
default
()
src/builtin_parser/runner/environment.rs:210
Method
deref
(&self)
src/builtin_parser/runner/unique_rc.rs:59
Method
deref_mut
(&mut self)
src/builtin_parser/runner/unique_rc.rs:64
Function
drop
Disposes of a [`Value`].
src/builtin_parser/runner/stdlib.rs:78
Method
empty
()
src/builtin_parser/completions.rs:22
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/builtin_parser/number.rs:126
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/builtin_parser/parser.rs:250
next →
1–100 of 142, ranked by callers