![]() ![]() However, we defined our class name and native method in our Android project using Java coding conventions which is camelCase and UpperCamelCase and we don’t want to change this or our Java code will look wrong. The Rust compiler is very strict - this is one of the things that makes Rust great - and it enforces the use of snake_case throughout. The second line, #, tells the compiler not to warn if we are not using snake_case for a variable or function name. ![]() # is a special attribute that allows you to compile code based on a flag passed to the compiler. The first line here # is telling the compiler to target Android when compiling this module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |