rust tag

19 questions


1 answers
418 views
0
I can't do it in the tauri of Rust.

Currently, I would like to develop using tauri on Windows 11 pro, but I cannot execute it.As a procedure, I put in Microsoft build tools, put node.js in nvm-windows, ran npm create tauri-app in npm, a...

1 years ago

2 answers
416 views
0
Clause's tautology determination

Assume that Rust is given a sorted integer vector with no duplication.Are there any pairs of integers with the same absolute value?I would like to write a function called .Let's call it the is_tautolo...

1 years ago

1 answers
425 views
0
Unable to edit Rc 's T

I'd like to ask you about the following.We used Rc and RefCell to verify the operation as follows.use std::borough::BorrowMut;usestd::cell::RefCell;use std::rc::Rc;# [derive (Debug)]US>structure Test ...

1 years ago

1 answers
416 views
0
I want to load a file in DIMACS CNF format.

I'd like to load the DIMACS CNF file in Rust.If I write in Ruby, the code will be as follows, but how should I write Rust?In particular, I haven't found a function that corresponds to Ruby's scan.#Rub...

1 years ago

1 answers
440 views
0
Understanding the Behavior of Variable Constraints in Macros

The trustc version is 1.65.0.The following code has an error and cannot be compiled.Code of interest:fnmain(){ test_macro!{ 12, x, y } x+y+temp;}# [macro_export]US>macro_rules!test_macro{ ($e:expr, $...

1 years ago

1 answers
291 views
0
Do you have any samples of Rust for P2P communication?

As per the title, do you have any samples of Rust for P2P communication?https://docs.rs/libp2p/0.31.1/libp2p/This seems to be the case, but it is very difficult to understand in English...First, I wou...

1 years ago

2 answers
106 views
0
Is there a way to do double looping with Rust only with Iterator?

If you want to loop a one-dimensional array into a triangle and process all the combinations, I think Java will be as follows.Foo[]data=...;for(inti=0;i<data.length();i++){ for(int j=i+1;j<data....

1 years ago

1 answers
73 views
0
What is the backend of Rust game engine Piston?

What is the backend (DirectX, OpenGL) of the Rust game engine Piston?

1 years ago

1 answers
86 views
0
What do you mean by trust #[xxx] or #![xxx]?

What does the trust mean by #[xxx] or #![xxx] as stated in the title?For example, https://rocket.rs/It's like the one in this sample code.#![feature(proc_macro_hygiene,decl_macro)]# [macro_use] extern...

1 years ago

2 answers
120 views
0
Understanding RUST Programs: cannot find macro `mime` in this scope

I'm currently learning RUST, but I can't get out of the following error:How can I get out of it?error message error:cannot find macro `mime` in this scope -->src/main.rs:16:18 |16 | response.set_mu...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.