Search
 
SCRIPT & CODE EXAMPLE
 

RUST

rust lang underscore

// Note that underscore usage depends on context, see link at bottom (not source)
Underscores are used in front of variables to tell the compiler that you don't
plan on using the variable.
Example, two cases, comment explains what compiler does
let mut my_variable:u32 = 18;		// Compiler will warn you about an unused variable
let mut _my_variable:u32 = 18;		// Compiler will say nothing

// Context link: https://runrust.miraheze.org/wiki/Underscore
Comment

PREVIOUS NEXT
Code Example
Rust :: armanriazi•rust•unsafe•rawpointer 
Rust :: rust undefined size array 
Rust :: rust•armanriazi•osstring•vs•path 
Rust :: rust vec of generics types 
Rust :: armanriazi•rust•error•cannot use the `?` operator in a function that returns `()` 
Rust :: armanriazi•rust•error•E0277•the size for values of type `str` cannot be known at compilation time 
Rust :: Read a floating point number from stdin 
Rust :: armanriazi•rust•rc•vs•arc 
Rust :: armanriazi•rust•error•[E0046]: not all trait items implemented, missing: `summarize_author` 
Rust :: rust•armanriazi•test•mock 
Rust :: armanriazi•rust•thread 
Rust :: rust currying, preset some arguments 
Rust :: Rust Options Some None using closures 
Rust :: reverse a string with runes 
Lua :: random string generator lua 
Lua :: Get number of values in a table lua 
Lua :: user input lua 
Lua :: roblox interpolate color 
Lua :: luau table.find 
Lua :: lua add table to value 
Lua :: lua string count occurrence 
Lua :: append to table lua 
Lua :: lua table to json 
Lua :: How to Register a command in Lua 
Lua :: lua loop through string 
Lua :: how to see greatest value in a table lua 
Matlab :: matlab unix time to datetime 
Matlab :: matlab symbolic simplify fraction 
Matlab :: matlab invert image 
Basic :: floppy disk drive +arduino 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =