Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
37 views

We have a boxed slice of an arbitrary type T. I'd like to slice it at a given index, then move the remaining elements after the index into a new Box<[T]>. It's fine if the original Box<[T]>...
Levente Bokor's user avatar
-4 votes
0 answers
64 views

I find difficult to get total download and upload data from a specific process in Linux. I would like to ask a question, how to do that in Rust language? I tried to get total donwload and upload data ...
Septian Dwi Cahya's user avatar
1 vote
1 answer
42 views

I am trying to build Kismet Debugger for the UE4SS tool as described in the Kismet Debugger's readme.md file, but I am running into difficulties. I have tried using x64 Native Build Tools Command ...
The Johnening's user avatar
-1 votes
0 answers
88 views

For good readable code I want to specify the actual data type in let assignments, if the right side is complex or misleading. Like: let strange: DataType::<ComplexWorld<f32>> = ...
Jan Diederich's user avatar
-1 votes
0 answers
90 views

When I run cargo run, I receive the following error. I am not able to figure why rust is not detecting the badmath function. ➜ unssafe git:(master) ✗ cargo run --verbose Fresh find-msvc-tools ...
ShoebIlyas's user avatar
0 votes
0 answers
66 views

What if we want to store objects in a Vec, and reference (or index maybe) to a data structure, while maintaining the ability to mutate from the Vec? Take a look at the brief example below: // think ...
CoderJo's user avatar
  • 21
Advice
1 vote
7 replies
143 views

It's good practice for readable code to specify the actual data type in let assignments, if the right side is complex or misleading. Like: let strange: DataType::<ComplexWorld<f32>> = ...
Jan Diederich's user avatar
3 votes
2 answers
61 views

Does anyone know how to make it work ( without clone() , without excessive boilerplate code, without repeating .a  or .b ( imagine having many such sub-fields in real life code, with large field names,...
Mohit Saini's user avatar
2 votes
1 answer
64 views

I have this snippet that gives me a compile error: fn main() { let mut t = String::from("Hello, world!"); let tt = &mut t; tt.type_id(); } error: error[E0597]: `t` does not ...
Ahmad's user avatar
  • 33
0 votes
0 answers
26 views

Even if I run setTheme("light") in my browser and view the Tauri menu, it remains in the dark theme. The system theme is dark. Is there a way to change the menu theme? import { setTheme } ...
oqiita's user avatar
  • 1
1 vote
1 answer
51 views

From references-change-permissions-on-places, places have three kinds of permission on their data: Read (R): data can be copied to another location. Write (W): data can be mutated. Own (O): data ...
Steven Lu's user avatar
  • 113
0 votes
0 answers
35 views

I am creating a QueryBuilder, so I though that it w'd be amazing to serialize objects to tokens, and have an AST within the QueryBuilder. So I immediatly though about the Visitor Design Pattern. Here'...
Alex Vergara's user avatar
  • 2,335
0 votes
1 answer
53 views

I've tried the rust iced framework and tried to create a markdown view from the documentation and the code compiles and renderes the windows but the code pub fn new() -> Self { Self { ...
devMe's user avatar
  • 499
0 votes
1 answer
82 views

I have the following implementation of to_file for a struct which takes a parameter with AsRef<Path>: pub fn to_file(&self, path: impl AsRef<Path>) -> anyhow::Result<()> { ...
glades's user avatar
  • 5,392
1 vote
0 answers
73 views

I'm using Arch Linux with Wayland. My terminal is Kitty. I'm trying to create an animation using the Kitty Graphics Protocol. However, I want this animation to cover the whole screen and run at 60 fps....
johny's user avatar
  • 42

15 30 50 per page
1
2 3 4 5
2928