chunk_id
large_string
question_id
large_string
language
large_string
chunk_index
int64
chunk_text
large_string
sparse_text
large_string
dense_vector
list
sparse_indices
list
sparse_values
list
export_source
large_string
54527297_c0
54527297
rust
0
Title: Does Rust have an equivalent to C's `typedef int32_t fe[10]`? Problem title: Does Rust have an equivalent to C's `typedef int32_t fe[10]`? Tags: rust Problem: Does Rust have an equivalent to C's `typedef int32_t fe[10]`? Does Rust have the following type definition? typedef int32_t fe[10]; typedef stru...
Does Rust have an equivalent to C's `typedef int32_t fe[10]`? Does Rust have an equivalent to C's `typedef int32_t fe[10]`? rust Does Rust int32_t ge_p3 X:fe Y:fe Does Rust have an equivalent to C's `typedef int32_t fe[10]`? Does Rust have the following type definition? I know how to define ge_p3 in Rust, but...
[ 0.0133056640625, 0.0238037109375, -0.017333984375, 0.016845703125, 0.007171630859375, -0.00433349609375, 0.004425048828125, -0.0050048828125, 0.018798828125, 0.018798828125, -0.0025177001953125, 0.0115966796875, -0.005096435546875, 0.0038299560546875, -0.01708984375, 0.006591796875, ...
[ 101790, 144222, 183234, 313, 3768, 50986, 112, 420, 23, 18, 6460, 3820, 63709, 52648, 700, 454, 254, 363, 1193, 12, 2242, 990, 765, 25632, 10644, 80934, 61924 ]
[ 0.016510009765625, 0.2509765625, 0.1484375, 0.07647705078125, 0.0052490234375, 0.1702880859375, 0.1402587890625, 0.0931396484375, 0.0328369140625, 0.07598876953125, 0.186279296875, 0.19482421875, 0.0556640625, 0.204833984375, 0.1009521484375, 0.0185394287109375, 0.080810546875, 0.1...
embed
79465269_c2
79465269
rust
2
} } Code signals: AuthError, Error, Axum, State, app_state, AppState, auth.rs, api.rs, api_routes, Router, Router::new, main_page_get, main_page_post, id_page_get, demo.json, get_demo_json, put_demo_json, middleware::from_fn, auth::authorize, Request, Body, Next, Result, Response, axum::middleware::FromFn, http::Reque...
} } Code signals: AuthError, Error, Axum, State, app_state, AppState, auth.rs, api.rs, api_routes, Router, Router::new, main_page_get, main_page_post, id_page_get, demo.json, get_demo_json, put_demo_json, middleware::from_fn, auth::authorize, Request, Body, Next, Result, Response, axum::middleware::FromFn, http::Reque...
[ 0.00982666015625, 0.0233154296875, -0.009765625, 0.00421142578125, -0.0101318359375, 0.036376953125, 0.0103759765625, -0.039306640625, 0.0101318359375, -0.0159912109375, 0.004791259765625, -0.0087890625, -0.0087890625, 0.0186767578125, -0.001129150390625, -0.006622314453125, -0.00053...
[ 51912, 28864, 26073, 7, 12, 5655, 927, 18468, 31611, 4, 212059, 44207, 316, 22836, 4027, 61340, 5659, 135206, 531, 4295, 31470, 133261, 106015, 42, 54936, 5201, 22469, 3794, 4594, 3447, 53397, 170, 1681, 2046, 80750, 3884, 86991, 15876, 161...
[ 0.0816650390625, 0.26025390625, 0.296142578125, 0.118408203125, 0.0380859375, 0.2091064453125, 0.177490234375, 0.14453125, 0.1868896484375, 0.00726318359375, 0.221923828125, 0.1549072265625, 0.206787109375, 0.156005859375, 0.179931640625, 0.1561279296875, 0.1435546875, 0.13671875, ...
embed
35633807_c0
35633807
rust
0
Title: Borrow issue returning &format! in pattern Problem title: Borrow issue returning &format! in pattern Tags: borrow-checker, rust Problem: Borrow issue returning &format! in pattern I'm trying to return the result of a format! after pattern matching an enum : enum Enm { Cont(String) } fn call(enm: &Enm) ->...
Borrow issue returning &format! in pattern Borrow issue returning &format! in pattern borrow-checker rust Borrow Enm Cont Enm::Cont Borrow issue returning &format! in pattern I'm trying to return the result of a format! after pattern matching an enum : But this won't work: borrowed value does not live long enou...
[ -0.01190185546875, 0.025634765625, 0.0016326904296875, -0.004180908203125, -0.0003223419189453125, -0.01312255859375, 0.004608154296875, -0.00982666015625, 0.0235595703125, 0.00537109375, 0.0185546875, -0.00665283203125, 0.00738525390625, -0.0027618408203125, 0.0322265625, 0.0003337860...
[ 7422, 15555, 31089, 30646, 214, 25133, 51727, 38, 23, 103510, 3017, 78292, 56, 52648, 357, 39, 1657, 18, 11935, 31577, 16750, 9384, 7103, 14858, 22, 316, 903, 23742, 4488, 297, 34292, 14602, 959, 6867, 4989, 20174, 86869 ]
[ 0.1917724609375, 0.26171875, 0.209228515625, 0.234619140625, 0.0740966796875, 0.0667724609375, 0.2320556640625, 0.0321044921875, 0.069580078125, 0.2459716796875, 0.167236328125, 0.171630859375, 0.1090087890625, 0.236572265625, 0.10174560546875, 0.10003662109375, 0.08905029296875, 0...
embed
68612781_c1
68612781
rust
1
error; 1 warning emitted For more information about this error, try `rustc --explain E0308`. Code signals: Rust, gdnative::Ref, ArrayMesh, SurfaceTool::new, st.begin, Mesh::PRIMITIVE_TRIANGLES, Mesh::PRIMITIVE_LINES, self.size.0, self.size.1, self.size.2, VoxelChunk::custom_voxel, Vector3::new, f32, self.pos.x, self.p...
error; 1 warning emitted For more information about this error, try `rustc --explain E0308`. Code signals: Rust, gdnative::Ref, ArrayMesh, SurfaceTool::new, st.begin, Mesh::PRIMITIVE_TRIANGLES, Mesh::PRIMITIVE_LINES, self.size.0, self.size.1, self.size.2, VoxelChunk::custom_voxel, Vector3::new, f32, self.pos.x, self.p...
[ -0.00048065185546875, 0.0169677734375, 0.01007080078125, 0.0042724609375, -0.0108642578125, -0.01251220703125, -0.02392578125, -0.00836181640625, -0.006866455078125, 0.01409912109375, 0.01446533203125, 0.00128936767578125, 0.00506591796875, -0.024169921875, 0.00750732421875, -0.0014495...
[ 18499, 74, 106, 1631, 592, 53225, 3674, 4677, 903, 9790, 43245, 238, 83613, 16442, 241, 9513, 8318, 5, 28864, 26073, 7, 144222, 706, 39200, 4935, 190015, 69253, 53, 594, 12708, 179794, 186490, 54936, 6138, 6820, 12021, 127, 62350, 169813, ...
[ 0.23681640625, 0.1077880859375, 0.1505126953125, 0.1854248046875, 0.14013671875, 0.17578125, 0.093505859375, 0.042572021484375, 0.10888671875, 0.005401611328125, 0.218505859375, 0.20556640625, 0.031341552734375, 0.0894775390625, 0.095947265625, 0.1051025390625, 0.2164306640625, 0.0...
embed
62984936_c2
62984936
rust
2
::net::tcp, ReadHalf, WriteHalf, SharedPackets, tokio::main, Result, Box, Error, TcpStream::connect, stream.split, Vec::new, inc.push, Bytes::from, Wow, incoming_packets, Arc::new, Mutex::new, outg.push, outgoint_packets, local_incoming_packets, Arc::clone, local_outgoint_packets, tokio::spawn, AsyncWriteExt, AsyncRead...
::net::tcp, ReadHalf, WriteHalf, SharedPackets, tokio::main, Result, Box, Error, TcpStream::connect, stream.split, Vec::new, inc.push, Bytes::from, Wow, incoming_packets, Arc::new, Mutex::new, outg.push, outgoint_packets, local_incoming_packets, Arc::clone, local_outgoint_packets, tokio::spawn, AsyncWriteExt, AsyncRead...
[ -0.0024871826171875, 0.0230712890625, -0.004302978515625, 0.0235595703125, -0.004302978515625, 0.006103515625, -0.0007171630859375, -0.01904296875, 0.02783203125, 0.017333984375, 0.022705078125, -0.006317138671875, -0.0101318359375, 0.0115966796875, 0.0033416748046875, -0.0092163085937...
[ 1984, 1179, 12, 18, 121422, 4, 4764, 106670, 420, 601, 18781, 29790, 71, 205956, 7831, 126509, 24931, 126684, 27271, 212059, 384, 115061, 135457, 75973, 7008, 4353, 52884, 54936, 23, 238, 7332, 127, 3311, 1636, 161063, 53505, 277, 29102, 51...
[ 0.135498046875, 0.2235107421875, 0.0999755859375, 0.062103271484375, 0.23095703125, 0.0699462890625, 0.1737060546875, 0.1630859375, 0.1195068359375, 0.048095703125, 0.115234375, 0.164306640625, 0.069580078125, 0.1898193359375, 0.1446533203125, 0.263671875, 0.1695556640625, 0.199096...
embed
58368801_c0
58368801
rust
0
Title: How do I check if a thing is in a vector Problem title: How do I check if a thing is in a vector Tags: rust Problem: How do I check if a thing is in a vector How do I check if a thing is in a vector? let n= vec!["-i","mmmm"]; if "-i" in n { println!("yes"); } else { println!("no"); I'm guessing that I need to pu...
How do I check if a thing is in a vector How do I check if a thing is in a vector rust How How do I check if a thing is in a vector How do I check if a thing is in a vector? I'm guessing that I need to put this in a loop and then do if "-i" in x where x is the iter var. But I was hopping there is a handy method availab...
[ -0.02490234375, 0.0035247802734375, -0.01043701171875, 0.0164794921875, -0.003692626953125, 0.016357421875, 0.006561279296875, -0.0184326171875, -0.00933837890625, -0.025146484375, 0.005645751953125, -0.00141143798828125, -0.01708984375, 0.00092315673828125, -0.0284423828125, 0.0150756...
[ 11249, 54, 87, 12765, 2174, 10, 13580, 83, 23, 173, 18770, 52648, 57767, 903, 40956, 9, 14, 1022, 17, 720, 285, 53, 55300, 55681, 86531, 21373 ]
[ 0.08135986328125, 0.0670166015625, 0.0811767578125, 0.2244873046875, 0.152587890625, 0.120849609375, 0.17333984375, 0.1455078125, 0.22265625, 0.2093505859375, 0.259521484375, 0.252685546875, 0.039459228515625, 0.033721923828125, 0.1400146484375, 0.117919921875, 0.142333984375, 0.08...
embed
67059181_c1
67059181
rust
1
_empty(b: &mut Bencher) { let mut cont = Container::new(MyStruct, false); b.iter(|| { cont.inner.cheap_call(0); if let Some(func) = cont.expensive_fn { func(&mut cont.inner, 1); } }); } } Code signals: Optional, OptTrait, cheap_call, expensive_call, ExpensiveFnOf, Container, expensive_fn, Option, Some, T::expensive_cal...
_empty(b: &mut Bencher) { let mut cont = Container::new(MyStruct, false); b.iter(|| { cont.inner.cheap_call(0); if let Some(func) = cont.expensive_fn { func(&mut cont.inner, 1); } }); } } Code signals: Optional, OptTrait, cheap_call, expensive_call, ExpensiveFnOf, Container, expensive_fn, Option, Some, T::expensive_cal...
[ 0.0089111328125, -0.018798828125, -0.0040283203125, 0.015869140625, -0.0062255859375, 0.0146484375, 0.032470703125, -0.0294189453125, 0.0084228515625, 0.02978515625, -0.0032958984375, 0.023681640625, -0.0152587890625, 0.00439453125, 0.01446533203125, -0.003875732421875, -0.0146484375...
[ 101, 33548, 939, 275, 12, 619, 14311, 3419, 5372, 2633, 21144, 22832, 34749, 20037, 54936, 31852, 71713, 18190, 18, 98320, 3142, 876, 16840, 73, 1679, 5, 1430, 2631, 85763, 177609, 31384, 16498, 238, 83613, 33, 29888, 14783, 7477, 28864, ...
[ 0.020843505859375, 0.197509765625, 0.1966552734375, 0.072998046875, 0.034820556640625, 0.0261383056640625, 0.1541748046875, 0.1597900390625, 0.2032470703125, 0.013671875, 0.1280517578125, 0.162841796875, 0.1590576171875, 0.1287841796875, 0.046661376953125, 0.0733642578125, 0.08032226...
embed
68314238_c0
68314238
rust
0
Title: how to use a vector and its `rev` to create 2 zips in Rust? Problem title: how to use a vector and its `rev` to create 2 zips in Rust? Tags: rust Problem: how to use a vector and its `rev` to create 2 zips in Rust? I'm trying to use a vector to create 2 different zips : let foo = vec!['a','b','c']; let bar = vec...
how to use a vector and its `rev` to create 2 zips in Rust? how to use a vector and its `rev` to create 2 zips in Rust? rust Rust foo.zip it_rev foo.rev how to use a vector and its `rev` to create 2 zips in Rust? I'm trying to use a vector to create 2 different zips : because of my use of zip . How to achieve what I wa...
[ -0.0035858154296875, 0.0238037109375, -0.0206298828125, 0.04296875, -0.0067138671875, 0.0179443359375, -0.003662109375, 0.01031494140625, 0.001556396484375, -0.0206298828125, -0.0045166015625, 0.03466796875, 0.0084228515625, 0.0228271484375, -0.0166015625, 0.00421142578125, -0.016845...
[ 3642, 47, 4527, 173, 18770, 136, 6863, 65381, 28282, 116, 68330, 7, 23, 144222, 52648, 5775, 31, 50836, 442, 10, 31577, 12921, 6637, 69307, 3444 ]
[ 0.0631103515625, 0.016998291015625, 0.106689453125, 0.19677734375, 0.232666015625, 0.06689453125, 0.0261077880859375, 0.22802734375, 0.12744140625, 0.1669921875, 0.2159423828125, 0.130859375, 0.06134033203125, 0.2281494140625, 0.172607421875, 0.050750732421875, 0.05999755859375, 0....
embed
63783339_c0
63783339
rust
0
Title: Math syntax in Rust Problem title: Math syntax in Rust Tags: rust Problem: Math syntax in Rust In Rust, it seems that the syntax for simple math expressions like sin(x)+cos(y)*sqrt(z) have to be written like x.sin()+y.cos()*z.sqrt() , which is weird, and anti-natural, and prone to errors with more complex expres...
Math syntax in Rust Math syntax in Rust rust Math Rust x.sin y.cos z.sqrt Math syntax in Rust In Rust, it seems that the syntax for simple math expressions like sin(x)+cos(y)*sqrt(z) have to be written like x.sin()+y.cos()*z.sqrt() , which is weird, and anti-natural, and prone to errors with more complex expressions (e...
[ -0.007415771484375, -0.0067138671875, -0.01019287109375, 0.0029296875, 0.01531982421875, -0.0038604736328125, 0.0059814453125, 0.00994873046875, 0.00095367431640625, -0.00909423828125, -0.004974365234375, 0.0147705078125, -0.0164794921875, -0.01531982421875, 0.011962890625, -0.01043701...
[ 78804, 6002, 86531, 23, 144222, 52648, 1022, 1596, 113, 7840, 97, 864, 3198, 360, 37202, 8781, 48909, 125195, 1884, 880, 425, 1328, 53, 1639, 169, 765, 59121, 5, 132, 179459, 2874, 84832, 502, 18499, 1286, 27140, 83613, 12684, 14537, 7722...
[ 0.211669921875, 0.1646728515625, 0.2264404296875, 0.104736328125, 0.267822265625, 0.2103271484375, 0.08612060546875, 0.17431640625, 0.0960693359375, 0.1697998046875, 0.1256103515625, 0.1141357421875, 0.182861328125, 0.01416015625, 0.03826904296875, 0.13916015625, 0.1773681640625, 0...
embed
70965939_c1
70965939
rust
1
abstraction based on SysTick let mut delay = hal::delay::Delay::new(cp.SYST, &clocks); } loop {} } Code signals: How, unsafe_code, clippy::empty_loop, no_main, no_std, Halt, panic_halt, cortex_m_rt::entry, stm32f4xx_hal, crate::hal, Access, stm32, Some, stm32::Peripherals::take, cortex_m::peripheral::Peripherals::take...
abstraction based on SysTick let mut delay = hal::delay::Delay::new(cp.SYST, &clocks); } loop {} } Code signals: How, unsafe_code, clippy::empty_loop, no_main, no_std, Halt, panic_halt, cortex_m_rt::entry, stm32f4xx_hal, crate::hal, Access, stm32, Some, stm32::Peripherals::take, cortex_m::peripheral::Peripherals::take...
[ -0.002838134765625, -0.01031494140625, 0.0213623046875, -0.02978515625, 0.0069580078125, -0.0072021484375, 0.0125732421875, 0.0062255859375, -0.002166748046875, -0.035888671875, -0.0072021484375, 0.006072998046875, -0.0279541015625, -0.0107421875, 0.0111083984375, -0.00811767578125, ...
[ 164789, 1830, 35509, 98, 4843, 7, 618, 41113, 2633, 21144, 8, 5259, 1870, 112, 4657, 54936, 121422, 62428, 8545, 63499, 40956, 28864, 26073, 11249, 51, 115840, 40899, 34196, 6493, 33548, 28354, 110, 24931, 271, 71, 4772, 18, 249, 6402, 23...
[ 0.2421875, 0.13232421875, 0.1336669921875, 0.04571533203125, 0.1309814453125, 0.061614990234375, 0.1123046875, 0.198486328125, 0.075439453125, 0.22021484375, 0.163330078125, 0.25927734375, 0.107666015625, 0.1201171875, 0.113037109375, 0.062744140625, 0.05438232421875, 0.08093261718...
embed
59119779_c0
59119779
rust
0
Title: Temporary value is freed inconsistency Problem title: Temporary value is freed inconsistency Tags: rust Problem: Temporary value is freed inconsistency Why does this generate a "temporary value is freed" error: let mut new_string = String::from("test"); new_string.push_str( if true { &format!("{}","ay") } else {...
Temporary value is freed inconsistency Temporary value is freed inconsistency rust Temporary new_string String::from new_string.push_str Temporary value is freed inconsistency Why does this generate a "temporary value is freed" error: When this is valid: Playground Link
[ 0.009521484375, 0.0203857421875, -0.0133056640625, 0.02001953125, 0.007232666015625, 0.0225830078125, 0.0084228515625, -0.00157928466796875, 0.0062255859375, 0.01171875, 0.015625, 0.02587890625, 0.0162353515625, 0.00946044921875, 0.0272216796875, 0.005401611328125, 0.006744384765625,...
[ 42748, 3701, 34292, 83, 4092, 71, 23, 25553, 6892, 2408, 53, 52648, 3525, 91693, 23351, 214, 161063, 7332, 9297, 44084, 139392, 99736, 6635, 18499, 35604, 11356, 64330, 12779 ]
[ 0.1671142578125, 0.1337890625, 0.245361328125, 0.09051513671875, 0.195556640625, 0.1373291015625, 0.0667724609375, 0.132080078125, 0.185791015625, 0.015411376953125, 0.037017822265625, 0.246337890625, 0.07427978515625, 0.1942138671875, 0.1470947265625, 0.00384521484375, 0.09985351562...
embed
76476964_c0
76476964
rust
0
Title: how to restrict wgpu for only a section of the window? Problem title: how to restrict wgpu for only a section of the window? Tags: rust Problem: how to restrict wgpu for only a section of the window? how do i set the viewport of a wgpu application to only use the center of the screen? I want to have triangles an...
how to restrict wgpu for only a section of the window? how to restrict wgpu for only a section of the window? rust how to restrict wgpu for only a section of the window? how do i set the viewport of a wgpu application to only use the center of the screen? I want to have triangles and the background color to only render...
[ -0.01116943359375, -0.0035552978515625, 0.0164794921875, -0.00262451171875, -0.01806640625, 0.00029754638671875, -0.01409912109375, -0.01806640625, 0.01141357421875, -0.0137939453125, -0.0247802734375, 0.00244140625, 0.01953125, -0.0233154296875, -0.009765625, 0.00921630859375, 0.027...
[ 3642, 47, 173072, 148, 177, 1766, 100, 4734, 40059, 76896, 52648, 17, 5423, 21455, 6982, 38415, 4527, 27585, 111, 49119, 3444, 765, 1927, 109217, 136, 76615, 10576, 89159, 34475, 16128, 50782, 16530, 17368, 143870, 79516, 42, 3245, 6328, 26...
[ 0.064697265625, 0.039794921875, 0.23046875, 0.09423828125, 0.06689453125, 0.240966796875, 0.0221710205078125, 0.08740234375, 0.138916015625, 0.1387939453125, 0.187255859375, 0.0205230712890625, 0.121826171875, 0.120849609375, 0.163330078125, 0.110595703125, 0.061126708984375, 0.156...
embed
72526999_c0
72526999
rust
0
Title: Rust equivalent of Java HashMap initialization Problem title: Rust equivalent of Java HashMap initialization Tags: rust Problem: Rust equivalent of Java HashMap initialization I'm looking for Rust equivalent of Java's HashMap initialization. Java: Map<String, List<String>> map = new HashMap<String, List<String>>...
Rust equivalent of Java HashMap initialization Rust equivalent of Java HashMap initialization rust Rust Java HashMap Map List map.put Arrays.asList Rust equivalent of Java HashMap initialization I'm looking for Rust equivalent of Java's HashMap initialization. Java:
[ 0.00762939453125, 0.009765625, -0.00445556640625, 0.005340576171875, -0.01068115234375, -0.01141357421875, 0.010009765625, -0.00775146484375, 0.004364013671875, 0.0128173828125, -0.0022125244140625, 0.00140380859375, 0.007110595703125, 0.0255126953125, -0.00191497802734375, -0.00045204...
[ 144222, 183234, 111, 41925, 162087, 166179, 61475, 47691, 52648, 42719, 32036, 22288, 7077, 69253, 4778, 162, 154663, 16487, 100 ]
[ 0.2587890625, 0.20458984375, 0.041717529296875, 0.2191162109375, 0.1593017578125, 0.20947265625, 0.1513671875, 0.082763671875, 0.216796875, 0.151611328125, 0.141357421875, 0.1268310546875, 0.11181640625, 0.0997314453125, 0.1348876953125, 0.130615234375, 0.189453125, 0.0556945800781...
embed
41990175_c2
41990175
rust
2
, Quit, siv.run, WordList, Vec, Debug, WordBar, target_list, include_str, google-10000-english-usa.txt, Cursive, See, github.com, reset_input, target_word, siv.find_id, target_word.get_content, target_word.set_content, self.update_and_get_bar, set_content, rand_word, rand::thread_rng, rng.choose, self.words, update_and...
, Quit, siv.run, WordList, Vec, Debug, WordBar, target_list, include_str, google-10000-english-usa.txt, Cursive, See, github.com, reset_input, target_word, siv.find_id, target_word.get_content, target_word.set_content, self.update_and_get_bar, set_content, rand_word, rand::thread_rng, rng.choose, self.words, update_and...
[ 0.00433349609375, 0.007110595703125, -0.0225830078125, -0.0033111572265625, -0.0042724609375, 0.0286865234375, -0.0191650390625, -0.0091552734375, 0.0118408203125, -0.004119873046875, 0.029052734375, 0.016845703125, -0.0247802734375, -0.000461578369140625, 0.0096435546875, -0.024536132...
[ 6, 4, 7644, 18, 78, 334, 5, 16428, 22543, 154663, 52884, 262, 85779, 25267, 30388, 6562, 26698, 9297, 26484, 9, 191281, 13305, 15227, 11684, 124326, 17065, 29888, 6872, 62270, 32102, 277, 168398, 73, 7077, 47416, 111607, 532, 3794, 69246, ...
[ 0.02850341796875, 0.0760498046875, 0.1885986328125, 0.1611328125, 0.1375732421875, 0.2149658203125, 0.0703125, 0.1865234375, 0.1693115234375, 0.2259521484375, 0.2318115234375, 0.11376953125, 0.268310546875, 0.250244140625, 0.2213134765625, 0.19287109375, 0.160888671875, 0.171997070...
embed
60387662_c2
60387662
rust
2
, PIPE_ACCESS_DUPLEX, FILE_FLAG_OVERLAPPED, FILE_FLAG_FIRST_PIPE_INSTANCE, WRITE_DAC, server_handle, RawHandle, namedpipeapi::CreateNamedPipeW, u16_slice.as_ptr, PIPE_TYPE_BYTE, PIPE_READMODE_BYTE, PIPE_WAIT, ptr::null_mut, SECURITY_ATTRIBUTES, mem::size_of, DWORD, BOOL, child_handle, fileapi::CreateFileW, GENERIC_READ...
, PIPE_ACCESS_DUPLEX, FILE_FLAG_OVERLAPPED, FILE_FLAG_FIRST_PIPE_INSTANCE, WRITE_DAC, server_handle, RawHandle, namedpipeapi::CreateNamedPipeW, u16_slice.as_ptr, PIPE_TYPE_BYTE, PIPE_READMODE_BYTE, PIPE_WAIT, ptr::null_mut, SECURITY_ATTRIBUTES, mem::size_of, DWORD, BOOL, child_handle, fileapi::CreateFileW, GENERIC_READ...
[ -0.0004062652587890625, 0.01177978515625, -0.00189971923828125, 0.0264892578125, -0.03271484375, 0.000659942626953125, -0.00323486328125, -0.022705078125, 0.01007080078125, -0.0021514892578125, 0.0089111328125, 0.0196533203125, 0.0208740234375, 0.024169921875, -0.01953125, 0.0132446289...
[ 6, 4, 25645, 21907, 15012, 194695, 397, 18409, 88233, 563, 52099, 91912, 106105, 866, 40680, 17610, 14688, 8545, 15185, 618, 113786, 115055, 25216, 191723, 10723, 79628, 109997, 135679, 133, 24, 4806, 1434, 29518, 12, 63784, 163612, 683, 4867...
[ 0.039337158203125, 0.07501220703125, 0.1624755859375, 0.1552734375, 0.0789794921875, 0.209228515625, 0.00537109375, 0.07025146484375, 0.1920166015625, 0.06829833984375, 0.1495361328125, 0.184814453125, 0.1246337890625, 0.106689453125, 0.0263824462890625, 0.021240234375, 0.04409790039...
embed
30799885_c0
30799885
rust
0
Title: Faster way of adding negative signed to unsigned Problem title: Faster way of adding negative signed to unsigned Tags: bit-manipulation, rust Problem: Faster way of adding negative signed to unsigned Assuming I have a: usize and a negative b:isize how do I achieve the following semantics - reduce a by absolute v...
Faster way of adding negative signed to unsigned Faster way of adding negative signed to unsigned bit-manipulation rust Faster b:isize b.abs Faster way of adding negative signed to unsigned Assuming I have a: usize and a negative b:isize how do I achieve the following semantics - reduce a by absolute value of b in fast...
[ -0.02099609375, -0.0164794921875, 0.023193359375, -0.0111083984375, -0.0296630859375, 0.0166015625, 0.000751495361328125, 0.00982666015625, 0.007049560546875, -0.00017070770263671875, 0.0008544921875, 0.01275634765625, -0.01275634765625, 0.02783203125, 0.01806640625, -0.02587890625, ...
[ 25290, 56, 3917, 154107, 40907, 181141, 47, 51, 31304, 4785, 9051, 254, 72403, 52648, 876, 14, 62539, 2055, 297, 66596, 10, 75, 136, 12, 3642, 54, 87, 69307, 25632, 484, 109109, 34390, 390, 89931, 34292, 111, 4271, 525, 144996, 7722, 17...
[ 0.1724853515625, 0.1361083984375, 0.10736083984375, 0.1922607421875, 0.2388916015625, 0.2037353515625, 0.083984375, 0.07672119140625, 0.183349609375, 0.1131591796875, 0.033843994140625, 0.06524658203125, 0.06597900390625, 0.199951171875, 0.152587890625, 0.0909423828125, 0.20983886718...
embed
77714846_c2
77714846
rust
2
0334bb6f224f7962.so, libthiserror_core_impl-f2c52c21a354b6ff.so, libzerofrom_derive-d617e7f86f6504a7.so, libderive_more-71b2ecc6e76493ab.so, librustc_driver-78f3b3010e7a7c26.so, libthiserror_impl-4af3faeadd561b3a.so, libzerovec_derive-508bcf32bf5cbb5e.so, libderive_setters-c8a70d2499d48f8a.so, librustc_fluent_macro-e6a...
0334bb6f224f7962.so, libthiserror_core_impl-f2c52c21a354b6ff.so, libzerofrom_derive-d617e7f86f6504a7.so, libderive_more-71b2ecc6e76493ab.so, librustc_driver-78f3b3010e7a7c26.so, libthiserror_impl-4af3faeadd561b3a.so, libzerovec_derive-508bcf32bf5cbb5e.so, libderive_setters-c8a70d2499d48f8a.so, librustc_fluent_macro-e6a...
[ 0.00119781494140625, -0.015380859375, -0.016357421875, 0.010498046875, -0.00677490234375, 0.0050048828125, -0.0262451171875, -0.004547119140625, 0.00080108642578125, 0.001953125, -0.0004711151123046875, -0.0166015625, 0.0145263671875, 0.02294921875, 0.0108642578125, -0.0036773681640625...
[ 5098, 10289, 5125, 910, 420, 304, 2357, 22377, 10837, 5, 991, 4, 25474, 100231, 188800, 30854, 116120, 12744, 3117, 5843, 4902, 80510, 161063, 820, 5844, 9, 2489, 15276, 85399, 17678, 15770, 275, 10060, 178058, 11591, 2055, 43245, 238, 3392...
[ 0.13720703125, 0.2017822265625, 0.09893798828125, 0.07916259765625, 0.07611083984375, 0.051361083984375, 0.1634521484375, 0.1427001953125, 0.2066650390625, 0.082763671875, 0.2147216796875, 0.093017578125, 0.2423095703125, 0.2030029296875, 0.28857421875, 0.2215576171875, 0.21691894531...
embed
50394209_c0
50394209
rust
0
Title: How can I create an efficient iterator of chars from stdin with Rust? Problem title: How can I create an efficient iterator of chars from stdin with Rust? Tags: chars, stdin, rust Problem: How can I create an efficient iterator of chars from stdin with Rust? Now that the Read::chars iterator has been officially ...
How can I create an efficient iterator of chars from stdin with Rust? How can I create an efficient iterator of chars from stdin with Rust? chars stdin rust stdin How Rust Read::chars Reader How can I create an efficient iterator of chars from stdin with Rust? Now that the Read::chars iterator has been officially depre...
[ 0.0081787109375, -0.01251220703125, 0.00823974609375, 0.004058837890625, 0.0103759765625, -0.010986328125, 0.0191650390625, -0.0115966796875, -0.0250244140625, -0.03564453125, -0.004608154296875, -0.0118408203125, 0.016357421875, -0.00021457672119140625, 0.001434326171875, -0.002441406...
[ 28282, 93766, 17, 720, 4597, 21441, 1295, 6138, 3035, 678, 144222, 831, 7, 52648, 11249, 4764, 12, 9254, 122636, 8, 4692, 4460, 27798, 113054, 645, 38162, 15490, 16454, 75973, 98323 ]
[ 0.12841796875, 0.1978759765625, 0.08038330078125, 0.2049560546875, 0.1796875, 0.20556640625, 0.0614013671875, 0.16455078125, 0.1990966796875, 0.06689453125, 0.262451171875, 0.0281829833984375, 0.016998291015625, 0.2044677734375, 0.01239013671875, 0.177978515625, 0.000091552734375, ...
embed
51179123_c0
51179123
rust
0
Title: match of a temporary member does not live long enough Problem title: match of a temporary member does not live long enough Tags: rust, borrow-checker Problem: match of a temporary member does not live long enough The following code does not compile (playground) : #![allow(unused)] use std::cell::RefCell; enum To...
match of a temporary member does not live long enough match of a temporary member does not live long enough rust borrow-checker std::cell::RefCell Token Thing RefCell::new Token::A a.borrow Error E0597 main.rs:16:23 match of a temporary member does not live long enough The following code does not compile (playground) :...
[ 0.005889892578125, 0.04150390625, 0.00897216796875, -0.0081787109375, 0.007049560546875, -0.038330078125, -0.0233154296875, 0.0145263671875, -0.0057373046875, -0.019775390625, -0.00982666015625, 0.051513671875, 0.0179443359375, 0.0201416015625, 0.03759765625, -0.0167236328125, -0.016...
[ 14858, 111, 142458, 53, 32786, 959, 6867, 4989, 20174, 52648, 3017, 15555, 78292, 56, 6138, 34680, 190015, 6796, 717, 1098, 6003, 214, 53295, 54936, 10, 3422, 212059, 241, 8194, 14773, 5201, 4295, 22354, 24864, 25632, 18151, 9969, 1340, 207...
[ 0.25537109375, 0.06427001953125, 0.197998046875, 0.09033203125, 0.22314453125, 0.102783203125, 0.1629638671875, 0.09912109375, 0.1556396484375, 0.201171875, 0.1336669921875, 0.1981201171875, 0.166748046875, 0.095947265625, 0.088623046875, 0.12255859375, 0.1256103515625, 0.104797363...
embed
58921575_c0
58921575
rust
0
Title: Can include_bytes!() be used on a custom structure? Problem title: Can include_bytes!() be used on a custom structure? Tags: rust Problem: Can include_bytes!() be used on a custom structure? I want to embed an image file in my project. To be more precise, I would like to embed the loaded Rust object containing t...
Can include_bytes!() be used on a custom structure? Can include_bytes!() be used on a custom structure? rust Can include_bytes usvg::Tree cairo::ImageSurface Can include_bytes!() be used on a custom structure? I want to embed an image file in my project. To be more precise, I would like to embed the loaded Rust object ...
[ 0.0155029296875, 0.0260009765625, -0.000579833984375, 0.00860595703125, -0.02001953125, 0.0272216796875, 0.0194091796875, -0.004364013671875, 0.00897216796875, -0.004241943359375, 0.0233154296875, 0.02587890625, -0.003021240234375, 0.02392578125, 0.01104736328125, 0.0108642578125, -0...
[ 4171, 26698, 454, 61028, 7, 90295, 16, 186, 11814, 98, 10, 114122, 45646, 32, 52648, 1821, 334, 177, 12, 62731, 13, 78968, 31, 216960, 84041, 40404, 87, 3444, 352, 13482, 29569, 11435, 23, 759, 13452, 1286, 134995, 4, 2806, 1884, 72367,...
[ 0.1414794921875, 0.279052734375, 0.058380126953125, 0.287109375, 0.127685546875, 0.196533203125, 0.07550048828125, 0.10986328125, 0.1961669921875, 0.1204833984375, 0.046905517578125, 0.23388671875, 0.2381591796875, 0.0106201171875, 0.25830078125, 0.09698486328125, 0.122314453125, 0...
embed
68604021_c0
68604021
rust
0
Title: Close File stored in Map in Rust Problem title: Close File stored in Map in Rust Tags: rust, io, file Problem: Close File stored in Map in Rust I store opened files in a map: HashMap<u32, File> . Sometimes functions read_to_file and write_to_file are called. They get the file from the map and make the correspond...
Close File stored in Map in Rust Close File stored in Map in Rust rust io file Close File Map Rust HashMap u32 read_to_file write_to_file Close File stored in Map in Rust I store opened files in a map: HashMap<u32, File> . Sometimes functions read_to_file and write_to_file are called. They get the file from the map and...
[ 0.017822265625, -0.006500244140625, 0.00726318359375, -0.02392578125, -0.019775390625, -0.0164794921875, 0.0019073486328125, 0.003448486328125, -0.002105712890625, 0.019287109375, -0.00518798828125, 0.005462646484375, 0.01318359375, 0.019287109375, 0.034912109375, -0.013427734375, -0...
[ 153335, 42724, 4343, 71, 23, 42719, 144222, 52648, 22995, 11435, 162087, 166179, 75, 6460, 12301, 188, 29822, 33022, 87, 142096, 102158, 22288, 34, 160193, 32354, 136, 35839, 2046, 1295, 42518, 50491, 5, 71864, 79612, 32562, 16454, 5701, 3871...
[ 0.232666015625, 0.22802734375, 0.18408203125, 0.0323486328125, 0.11865234375, 0.252685546875, 0.28125, 0.2386474609375, 0.2373046875, 0.2132568359375, 0.1658935546875, 0.239013671875, 0.045257568359375, 0.2108154296875, 0.16064453125, 0.1966552734375, 0.173583984375, 0.160400390625...
embed
73736756_c0
73736756
rust
0
Title: How to convert from Option&lt;&amp;T&gt; to &amp;Option&lt;T&gt; in Rust? Problem title: How to convert from Option&lt;&amp;T&gt; to &amp;Option&lt;T&gt; in Rust? Tags: rust, option-type Problem: How to convert from Option<&T> to &Option in Rust? For a non copy type, like HashMap<String, String> for example, how...
How to convert from Option&lt;&amp;T&gt; to &amp;Option&lt;T&gt; in Rust? How to convert from Option&lt;&amp;T&gt; to &amp;Option&lt;T&gt; in Rust? rust option-type Option How Rust HashMap as_ref as_deref How to convert from Option<&T> to &Option in Rust? For a non copy type, like HashMap<String, String> for example, h...
[ 0.0167236328125, 0.033447265625, 0.0035247802734375, -0.00138092041015625, 0.0034942626953125, -0.028076171875, 0.00128936767578125, -0.0186767578125, -0.000274658203125, -0.00170135498046875, -0.0076904296875, 0.00958251953125, 0.0238037109375, 0.03662109375, 0.00506591796875, 0.00738...
[ 11249, 47, 96760, 1295, 86769, 1230, 1277, 618, 5386, 25133, 39029, 1363, 23, 144222, 619, 52648, 35829, 50986, 162087, 166179, 237, 29087, 112, 351, 43658, 10644, 71713, 23351, 3642, 831, 6056, 20450, 592, 16487, 2347, 198274, 5, 162, 959,...
[ 0.07379150390625, 0.12451171875, 0.2034912109375, 0.128173828125, 0.2646484375, 0.1171875, 0.0970458984375, 0.1610107421875, 0.147705078125, 0.049346923828125, 0.2548828125, 0.137451171875, 0.07806396484375, 0.2315673828125, 0.0958251953125, 0.203857421875, 0.2227783203125, 0.13439...
embed
74931350_c1
74931350
rust
1
know how to run a method on this boxed struct. command.execute(data); /// doesn't work so i tried to create a function like execute_command<P: AsRef<Path>>(command: &Box(dyn Command), path: P) -> bool{ command.execute(path) } But i got this error: the execute method cannot be invoked on a trait object . Code signals: ...
know how to run a method on this boxed struct. command.execute(data); /// doesn't work so i tried to create a function like execute_command<P: AsRef<Path>>(command: &Box(dyn Command), path: P) -> bool{ command.execute(path) } But i got this error: the execute method cannot be invoked on a trait object . Code signals: ...
[ -0.0079345703125, 0.01025390625, -0.00811767578125, 0.02490234375, -0.005157470703125, 0.005950927734375, -0.00055694580078125, -0.0233154296875, 0.01080322265625, -0.01953125, -0.006591796875, -0.0036773681640625, 0.0042724609375, 0.01434326171875, -0.00909423828125, -0.0162353515625,...
[ 3714, 3642, 47, 11675, 55300, 98, 903, 16530, 297, 36716, 75101, 46480, 85691, 10135, 3142, 22027, 18, 4488, 37842, 28282, 32354, 71924, 13, 277, 12018, 683, 1301, 190015, 10519, 619, 72295, 17872, 123573, 60875, 436, 142484, 5, 128405, 184...
[ 0.1109619140625, 0.10205078125, 0.0263671875, 0.1810302734375, 0.2225341796875, 0.1634521484375, 0.1275634765625, 0.20751953125, 0.14306640625, 0.204345703125, 0.224853515625, 0.1229248046875, 0.204833984375, 0.1722412109375, 0.00384521484375, 0.051910400390625, 0.1046142578125, 0....
embed
70734986_c1
70734986
rust
1
? Also, I was trying to understand, defining closure parameters using & . I understand & means to reference/borrow a value. However here, I removed & from |&a, &b| and it still worked, but at that point, types were defined as a: &(&str, i32) b: &(&str, i32) . Here what does it mean by having or not having & in the par...
? Also, I was trying to understand, defining closure parameters using & . I understand & means to reference/borrow a value. However here, I removed & from |&a, &b| and it still worked, but at that point, types were defined as a: &(&str, i32) b: &(&str, i32) . Here what does it mean by having or not having & in the par...
[ 0.0189208984375, 0.0164794921875, -0.01171875, 0.0257568359375, -0.01507568359375, 0.006591796875, -0.020751953125, -0.0172119140625, -0.00830078125, 0.037109375, 0.0025177001953125, 0.0224609375, 0.007232666015625, 0.01416015625, 0.0201416015625, -0.0137939453125, 0.0033721923828125...
[ 28219, 13204, 170224, 171859, 17368, 619, 26950, 47, 91067, 3422, 15555, 34292, 3688, 184750, 1295, 1230, 11, 275, 79786, 52895, 61924, 71, 237, 10, 9297, 91887, 876, 17, 6, 11853, 2367, 14602, 29459, 19441, 707, 959, 23, 80934, 28864, 26...
[ 0.1109619140625, 0.1370849609375, 0.2470703125, 0.268310546875, 0.051544189453125, 0.271728515625, 0.1549072265625, 0.04656982421875, 0.200439453125, 0.130615234375, 0.177978515625, 0.145751953125, 0.018035888671875, 0.133544921875, 0.05804443359375, 0.2039794921875, 0.1051025390625,...
embed
28079010_c1
28079010
rust
1
1, 169)); } For some reason booth tests (in comments) passes. I would rather expect that at least one of them will fail. Am I wrong? At least it should stop at some point, but when I change jpeg::color::utils::rgb_to_ycbcr(0, 71, 171) to jpeg::color::utils::rgb_to_ycbcr(0, 71, 169) then test fails as YCbCr value has ch...
1, 169)); } For some reason booth tests (in comments) passes. I would rather expect that at least one of them will fail. Am I wrong? At least it should stop at some point, but when I change jpeg::color::utils::rgb_to_ycbcr(0, 71, 171) to jpeg::color::utils::rgb_to_ycbcr(0, 71, 169) then test fails as YCbCr value has ch...
[ -0.029296875, -0.03271484375, -0.01239013671875, 0.01556396484375, -0.0013275146484375, 0.01324462890625, 0.011474609375, -0.000644683837890625, -0.00135040283203125, 0.036865234375, -0.026123046875, 0.02685546875, 0.004730224609375, -0.007232666015625, 0.00592041015625, 0.013305664062...
[ 85067, 31635, 49935, 127, 109921, 73, 24626, 10922, 7, 43257, 41206, 19713, 35782, 2022, 44691, 442, 7279, 6275, 15549, 215109, 46133, 1003, 7870, 10566, 275, 188, 53, 238, 65037, 42, 2389, 14905, 97596, 47, 3034, 990, 441, 34292, 98816, ...
[ 0.191650390625, 0.037200927734375, 0.181884765625, 0.205078125, 0.247314453125, 0.0367431640625, 0.2103271484375, 0.1737060546875, 0.0711669921875, 0.0185089111328125, 0.0836181640625, 0.044281005859375, 0.1802978515625, 0.0262451171875, 0.080078125, 0.0555419921875, 0.0928955078125,...
embed
30047179_c0
30047179
rust
0
Title: Can Cargo.toml have Cargo tell rustc to include plugins? Problem title: Can Cargo.toml have Cargo tell rustc to include plugins? Tags: rust, rust-cargo Problem: Can Cargo.toml have Cargo tell rustc to include plugins? Let's say I want to lint all my code by rust-clippy. For now, I'll have to write #![feature(plu...
Can Cargo.toml have Cargo tell rustc to include plugins? Can Cargo.toml have Cargo tell rustc to include plugins? rust rust-cargo plugins Can Cargo.toml Cargo Can Cargo.toml have Cargo tell rustc to include plugins? Let's say I want to lint all my code by rust-clippy. For now, I'll have to write in each of my sources. ...
[ 0.00191497802734375, 0.01531982421875, 0.01141357421875, -0.0072021484375, -0.014892578125, 0.00860595703125, -0.003082275390625, 0.004791259765625, -0.007598876953125, 0.00086212158203125, -0.019287109375, 0.004119873046875, -0.0262451171875, 0.033447265625, 0.010009765625, 0.00364685...
[ 4171, 3980, 519, 5928, 141, 14192, 52648, 238, 26698, 69993, 7, 3284, 765, 3444, 11508, 18, 756, 18151, 106371, 6493, 33022, 97264, 222495, 4527, 15190, 31344, 11435 ]
[ 0.04962158203125, 0.1982421875, 0.2117919921875, 0.0838623046875, 0.134033203125, 0.097900390625, 0.20263671875, 0.1512451171875, 0.0931396484375, 0.262939453125, 0.03515625, 0.10418701171875, 0.009429931640625, 0.0303802490234375, 0.0882568359375, 0.100830078125, 0.0258026123046875,...
embed
30326322_c0
30326322
rust
0
Title: How to implement a custom allocator? Problem title: How to implement a custom allocator? Tags: rust Problem: How to implement a custom allocator? I am looking for a way to implement something like a memory pool in Rust. I want to allocate a set of related small objects in chunks, and delete the set of objects at...
How to implement a custom allocator? How to implement a custom allocator? rust How How to implement a custom allocator? I am looking for a way to implement something like a memory pool in Rust. I want to allocate a set of related small objects in chunks, and delete the set of objects at once. The objects won't be freed...
[ 0.00421142578125, 0.01385498046875, -0.00098419189453125, 0.00927734375, -0.02392578125, 0.005340576171875, 0.0125732421875, -0.001708984375, 0.0034332275390625, -0.008056640625, 0.0093994140625, 0.01165771484375, 0.019287109375, 0.019287109375, 0.0081787109375, -0.006866455078125, -...
[ 11249, 47, 29479, 10, 114122, 24286, 408, 1290, 32, 52648, 16487, 3917, 1884, 98323, 19361, 23, 144222, 3444, 33478, 5423, 62548, 19336, 36746, 7839, 136, 154109, 24145, 23742, 4092, 71, 84797, 40368, 72382, 903, 51515, 34390, 38551, 30098, ...
[ 0.1181640625, 0.08935546875, 0.2474365234375, 0.10205078125, 0.284912109375, 0.2269287109375, 0.197998046875, 0.248291015625, 0.02581787109375, 0.198486328125, 0.039154052734375, 0.0426025390625, 0.089599609375, 0.1904296875, 0.193603515625, 0.0804443359375, 0.2431640625, 0.0673828...
embed
47885478_c1
47885478
rust
1
main.rs:26:15: 26:31]> No one wants that in their code, so I hope I misunderstood. The question is, whether it's possible, and how to use group_by without a for loop? Code signals: docs, How, Itertools, group_by, Itertools::group_by, GroupBy, data.into_iter, assert_eq, group.sum, i32, data.iter, into_iter, group.collec...
main.rs:26:15: 26:31]> No one wants that in their code, so I hope I misunderstood. The question is, whether it's possible, and how to use group_by without a for loop? Code signals: docs, How, Itertools, group_by, Itertools::group_by, GroupBy, data.into_iter, assert_eq, group.sum, i32, data.iter, into_iter, group.collec...
[ -0.0087890625, 0.00787353515625, 0.00002110004425048828, 0.004150390625, -0.025390625, 0.015380859375, 0.003997802734375, 0.008544921875, 0.006072998046875, -0.0228271484375, -0.027587890625, 0.0164794921875, 0.0120849609375, 0.0111083984375, 0.0074462890625, 0.006866455078125, -0.01...
[ 5201, 4295, 28194, 12221, 1381, 27321, 438, 1632, 86171, 450, 18151, 15673, 24658, 9655, 36766, 7722, 3642, 47, 4527, 21115, 454, 1272, 15490, 10, 100, 40956, 28864, 26073, 54, 4439, 11249, 720, 89110, 51588, 10760, 75358, 2053, 21579, 1684...
[ 0.0350341796875, 0.062744140625, 0.06103515625, 0.0965576171875, 0.0718994140625, 0.041107177734375, 0.03948974609375, 0.0289764404296875, 0.1617431640625, 0.06915283203125, 0.147216796875, 0.034088134765625, 0.01678466796875, 0.03778076171875, 0.06884765625, 0.185791015625, 0.050842...
embed
73939213_c0
73939213
rust
0
Title: How can I declare this struct which has an Optional error field? Problem title: How can I declare this struct which has an Optional error field? Tags: rust Problem: How can I declare this struct which has an Optional error field? How can I declare this struct correctly? PLAYGROUND CODE use std::{error}; For more...
How can I declare this struct which has an Optional error field? How can I declare this struct which has an Optional error field? rust AppError How Optional Option anyhow::Error error::Error Send Sync E0277 std::error::Error lib.rs:6:10 Sized How can I declare this struct which has an Optional error field? How can I de...
[ 0.0234375, 0.0218505859375, -0.020751953125, 0.0191650390625, -0.0017547607421875, 0.0179443359375, 0.01190185546875, -0.042724609375, 0.007568359375, 0.041015625, 0.0255126953125, -0.0277099609375, 0.00007343292236328125, 0.002593994140625, 0.0191650390625, 0.0078125, 0.008117675781...
[ 11249, 831, 159978, 903, 36716, 1556, 86769, 289, 18499, 44457, 87, 3129, 142, 52648, 5659, 18468, 31611, 2499, 47251, 24044, 217835, 241, 9550, 14546, 6138, 71, 188800, 25474, 4295, 910, 15110, 159, 29367, 26785, 185671, 136498, 34384, 8244,...
[ 0.07122802734375, 0.07275390625, 0.2091064453125, 0.094482421875, 0.219970703125, 0.07720947265625, 0.2213134765625, 0.19287109375, 0.2451171875, 0.23095703125, 0.0171966552734375, 0.0106201171875, 0.01416015625, 0.2490234375, 0.1385498046875, 0.10137939453125, 0.106689453125, 0.05...
embed
70384254_c0
70384254
rust
0
Title: why Path.ends_with return false when passed a correctly-matching file extension? Problem title: why Path.ends_with return false when passed a correctly-matching file extension? Tags: rust Problem: why Path.ends_with return false when passed a correctly-matching file extension? why this code return false use std:...
why Path.ends_with return false when passed a correctly-matching file extension? why Path.ends_with return false when passed a correctly-matching file extension? rust Path.ends_with std::path::Path Ends Path::new some.file.d.ts ends_with why Path.ends_with return false when passed a correctly-matching file extension? w...
[ 0.006866455078125, 0.0164794921875, 0.004425048828125, 0.01141357421875, -0.01708984375, -0.006011962890625, -0.000553131103515625, 0.0040283203125, -0.0162353515625, 0.01806640625, 0.0223388671875, 0.005889892578125, -0.0068359375, 0.031494140625, 0.0011749267578125, -0.006591796875, ...
[ 15400, 108421, 3611, 76228, 30646, 98320, 115081, 26785, 98753, 214, 11435, 111938, 52648, 6138, 71, 128405, 683, 10519, 18878, 54936, 3060, 29822, 933, 3564, 7, 18151, 11301, 64330, 3126 ]
[ 0.049560546875, 0.23876953125, 0.1290283203125, 0.15625, 0.1256103515625, 0.195068359375, 0.0816650390625, 0.1046142578125, 0.1407470703125, 0.0562744140625, 0.10028076171875, 0.137451171875, 0.1915283203125, 0.080322265625, 0.022796630859375, 0.155517578125, 0.045135498046875, 0.1...
embed
70451418_c0
70451418
rust
0
Title: How to use nom to parse until a string is found? Problem title: How to use nom to parse until a string is found? Tags: rust, nom Problem: How to use nom to parse until a string is found? It's easy to use nom to parse a string until a character is found. How to use nom to gobble a string until a delimiter or the ...
How to use nom to parse until a string is found? How to use nom to parse until a string is found? rust nom How How to use nom to parse until a string is found? It's easy to use nom to parse a string until a character is found. How to use nom to gobble a string until a delimiter or the end? deals with this. How do I do ...
[ -0.0208740234375, 0.00872802734375, -0.0028228759765625, 0.020751953125, -0.0262451171875, 0.027099609375, 0.022216796875, -0.0023651123046875, 0.004791259765625, -0.026123046875, -0.0029754638671875, -0.02685546875, 0.005889892578125, -0.0146484375, -0.00885009765625, -0.0014266967773...
[ 11249, 47, 4527, 9901, 366, 184, 24189, 79315, 14037, 52648, 23468, 62816, 738, 73163, 8, 93343, 56, 3564, 32, 144227, 124850, 64457, 11001, 1563, 206, 13817, 3444, 26818, 33600, 31 ]
[ 0.0909423828125, 0.0938720703125, 0.134033203125, 0.29638671875, 0.16943359375, 0.14794921875, 0.161865234375, 0.216552734375, 0.14794921875, 0.21533203125, 0.087890625, 0.147216796875, 0.076416015625, 0.210693359375, 0.0938720703125, 0.182373046875, 0.06781005859375, 0.14367675781...
embed
54889521_c0
54889521
rust
0
Title: What&#x27;s the difference between len() and capacity()? Problem title: What&#x27;s the difference between len() and capacity()? Tags: rust Problem: What's the difference between len() and capacity()? When I create a vector, the length and the capacity are the same. What is the difference between these methods? ...
What&#x27;s the difference between len() and capacity()? What&#x27;s the difference between len() and capacity()? rust What Length vec.len Capacity vec.capacity What's the difference between len() and capacity()? When I create a vector, the length and the capacity are the same. What is the difference between these meth...
[ 0.0067138671875, 0.046630859375, -0.0230712890625, 0.041015625, 0.001068115234375, 0.00038909912109375, 0.0087890625, 0.013916015625, 0.022216796875, -0.01214599609375, -0.0203857421875, -0.0208740234375, -0.003753662109375, 0.04248046875, -0.0086669921875, 0.01287841796875, 0.017944...
[ 3768, 70, 60212, 17721, 3098, 132, 136, 177399, 52648, 4865, 77554, 22834, 1977, 14304, 11, 60089, 76009, 939, 28282, 173, 18770, 140909, 621, 5701, 6097, 150624 ]
[ 0.052947998046875, 0.0750732421875, 0.2020263671875, 0.120361328125, 0.233642578125, 0.0806884765625, 0.113037109375, 0.2646484375, 0.2132568359375, 0.02557373046875, 0.065185546875, 0.1695556640625, 0.1812744140625, 0.13916015625, 0.121826171875, 0.03875732421875, 0.1917724609375, ...
embed
73409092_c1
73409092
rust
1
=> { let result_entity = $ecs.create_entity(); $ecs.components.add_comp_to_last(&result_entity, comp); } } I've tried to read both The book and The little book of macros , But I'm lacking concrete example or explanations of the whole thing. Code signals: Declarative, ECS::new, entity1, create_entity, entity2, Position...
=> { let result_entity = $ecs.create_entity(); $ecs.components.add_comp_to_last(&result_entity, comp); } } I've tried to read both The book and The little book of macros , But I'm lacking concrete example or explanations of the whole thing. Code signals: Declarative, ECS::new, entity1, create_entity, entity2, Position...
[ 0.009033203125, 0.0019683837890625, -0.0125732421875, 0.018310546875, 0.0019989013671875, 0.051025390625, 0.00811767578125, 0.00811767578125, -0.0042724609375, -0.0213623046875, -0.0238037109375, 0.00494384765625, 0.01177978515625, 0.00115966796875, 0.0179443359375, -0.01904296875, -...
[ 44357, 2633, 16750, 2517, 2481, 3650, 3240, 7, 7612, 2182, 277, 54137, 11, 4028, 58875, 188, 19777, 2109, 7136, 9969, 12301, 581, 12877, 10176, 111, 111789, 6, 41324, 122776, 27781, 187136, 28271, 28864, 26073, 98501, 4935, 241, 19283, 5493...
[ 0.0780029296875, 0.03900146484375, 0.236572265625, 0.117431640625, 0.1044921875, 0.046630859375, 0.1248779296875, 0.107666015625, 0.116943359375, 0.095947265625, 0.035308837890625, 0.15673828125, 0.02008056640625, 0.1177978515625, 0.1727294921875, 0.0750732421875, 0.1580810546875, ...
embed
60774533_c0
60774533
rust
0
Title: struct lifetime of field from another field Problem title: struct lifetime of field from another field Tags: rust Problem: struct lifetime of field from another field I'm parsing some text and would like to store a Vec of slices of it. struct Word<'a> { word: &'a str, // other_stuff } struct Text<'a> { text: Str...
struct lifetime of field from another field struct lifetime of field from another field rust another Word other_stuff Text Vec other_things struct lifetime of field from another field I'm parsing some text and would like to store a Vec of slices of it. I don't know how to say the lifetime of word is the same as text . ...
[ 0.0123291015625, 0.0308837890625, -0.01708984375, 0.021484375, 0.00592041015625, 0.00933837890625, 0.0263671875, -0.000667572021484375, 0.01556396484375, -0.021728515625, -0.0201416015625, 0.0267333984375, 0.000537872314453125, 0.0020599365234375, -0.000919342041015625, 0.0112915039062...
[ 36716, 6897, 6032, 111, 44457, 1295, 15700, 52648, 22543, 3789, 271, 21493, 24129, 52884, 64113, 366, 6953, 7986, 1884, 4343, 28756, 5170, 5154, 2565, 83, 5701, 237, 7722 ]
[ 0.2225341796875, 0.133544921875, 0.1695556640625, 0.05316162109375, 0.2122802734375, 0.06890869140625, 0.08837890625, 0.1956787109375, 0.1702880859375, 0.07562255859375, 0.0182952880859375, 0.108154296875, 0.1458740234375, 0.1927490234375, 0.1109619140625, 0.0777587890625, 0.01055908...
embed
34693847_c2
34693847
rust
2
structure, _id, ObjectId, ContentHash::from_str, Bson, PathBuf::from_bson, UtcDatetime, FileTime, I64, u64, Metadata::from_bson, CommitData::from_bson, macro_rules, target:ident, source:expr, field:expr, f:expr, rest:tt, source.remove, Some, None, Err, BsonDestructureError::MissingField, field_name, variant:ident, ejdb...
structure, _id, ObjectId, ContentHash::from_str, Bson, PathBuf::from_bson, UtcDatetime, FileTime, I64, u64, Metadata::from_bson, CommitData::from_bson, macro_rules, target:ident, source:expr, field:expr, f:expr, rest:tt, source.remove, Some, None, Err, BsonDestructureError::MissingField, field_name, variant:ident, ejdb...
[ 0.0040283203125, 0.0142822265625, -0.0015716552734375, 0.0235595703125, -0.0029144287109375, 0.0263671875, -0.01904296875, -0.0118408203125, 0.0159912109375, -0.0027618408203125, 0.0303955078125, 0.01904296875, 0.017822265625, -0.01177978515625, 0.01556396484375, -0.002105712890625, ...
[ 45646, 101, 532, 134549, 568, 71, 70870, 6495, 1495, 12, 161063, 9297, 335, 1681, 108421, 7235, 420, 275, 3994, 86291, 6032, 42724, 70059, 13307, 75, 36939, 10135, 3288, 4007, 137989, 111789, 13500, 30388, 52128, 4, 31344, 83613, 42, 44457,...
[ 0.26806640625, 0.053497314453125, 0.161865234375, 0.2041015625, 0.09930419921875, 0.10577392578125, 0.231689453125, 0.1737060546875, 0.1328125, 0.006103515625, 0.1287841796875, 0.1468505859375, 0.1143798828125, 0.2208251953125, 0.1519775390625, 0.1097412109375, 0.1107177734375, 0.0...
embed
38606608_c0
38606608
rust
0
Title: Unable to find unsafe trait implementation Problem title: Unable to find unsafe trait implementation Tags: rust Problem: Unable to find unsafe trait implementation I wanted to use vulkano which has all the examples in a new crate . I copied the folder examples out and changed the Cargo.toml to [package] name = "...
Unable to find unsafe trait implementation Unable to find unsafe trait implementation rust Unable build.rs f32 vulkano::pipeline::vertex::VertexMember E0277 impl_vertex Vertex vulkano::pipeline::vertex::Vertex member::f VertexMember Unable to find unsafe trait implementation I wanted to use vulkano which has all the ex...
[ 0.002716064453125, 0.000560760498046875, -0.00182342529296875, 0.00872802734375, -0.016357421875, 0.005218505859375, 0.0201416015625, -0.00531005859375, 0.0010528564453125, -0.014892578125, 0.0098876953125, -0.011474609375, 0.0157470703125, 0.0208740234375, -0.00142669677734375, 0.0019...
[ 992, 2886, 7413, 51, 115840, 110106, 208124, 52648, 45367, 4295, 1238, 6460, 147551, 31, 1434, 26338, 86, 814, 24371, 15896, 594, 27417, 9550, 14546, 116120, 1446, 32786, 420, 36663, 4527, 27781, 3525, 17957, 71200, 78303, 98816, 3980, 519, ...
[ 0.037017822265625, 0.18896484375, 0.1771240234375, 0.1170654296875, 0.25927734375, 0.25146484375, 0.23779296875, 0.2408447265625, 0.2032470703125, 0.140869140625, 0.047119140625, 0.180908203125, 0.234130859375, 0.2021484375, 0.05133056640625, 0.1673583984375, 0.1060791015625, 0.102...
embed
30546157_c0
30546157
rust
0
Title: Do macros not expand interpolated token trees? Problem title: Do macros not expand interpolated token trees? Tags: rust Problem: Do macros not expand interpolated token trees? Why does this : macro_rules! a_macro { ($($a:tt)+) => ($($a)+); } fn main() { let x:u32 = 1; let y:u32 = a_macro!(-x); } fail to compile ...
Do macros not expand interpolated token trees? Do macros not expand interpolated token trees? rust macro_rules a_macro a:tt x:u32 y:u32 Do macros not expand interpolated token trees? Why does this : fail to compile with
[ 0.025146484375, 0.015869140625, -0.016357421875, 0.00872802734375, 0.0068359375, 0.01104736328125, 0.00750732421875, -0.00262451171875, -0.006561279296875, -0.007781982421875, -0.015380859375, 0.012451171875, 0.01373291015625, -0.00848388671875, 0.0255126953125, -0.0274658203125, 0.0...
[ 111789, 7, 959, 71062, 1940, 5877, 47, 1098, 1360, 984, 27686, 52648, 13500, 15322, 3062, 6460, 44084, 35782, 9969, 1340, 678 ]
[ 0.21826171875, 0.0257568359375, 0.11181640625, 0.2093505859375, 0.10601806640625, 0.134033203125, 0.0950927734375, 0.148681640625, 0.164794921875, 0.0243377685546875, 0.02862548828125, 0.2069091796875, 0.1253662109375, 0.1226806640625, 0.040069580078125, 0.1285400390625, 0.0017700195...
embed
52139879_c0
52139879
rust
0
Title: How would you write the equivalent of this C++ loop in Rust Problem title: How would you write the equivalent of this C++ loop in Rust Tags: iteration, syntax, rust, loops Problem: How would you write the equivalent of this C++ loop in Rust Rust's for loops are a bit different than those in C-style languages. I ...
How would you write the equivalent of this C++ loop in Rust How would you write the equivalent of this C++ loop in Rust iteration syntax rust loops How Rust How would you write the equivalent of this C++ loop in Rust Rust's for loops are a bit different than those in C-style languages. I am trying to figure out if I ca...
[ 0.0123291015625, 0.0140380859375, 0.00506591796875, 0.0162353515625, 0.0086669921875, 0.010986328125, 0.0172119140625, 0.002197265625, 0.006134033203125, 0.0029449462890625, 0.015869140625, -0.0203857421875, 0.0026092529296875, -0.002471923828125, -0.00689697265625, -0.00433349609375, ...
[ 11249, 2806, 33022, 183234, 111, 903, 313, 37223, 40956, 23, 144222, 17, 720, 2320, 6002, 86531, 52648, 7, 100, 4785, 12921, 40946, 46876, 26366, 1810, 69307, 5701, 16750, 35064, 21373, 54543, 70, 35431, 8353, 304, 4426, 653 ]
[ 0.06854248046875, 0.062164306640625, 0.1395263671875, 0.1746826171875, 0.03704833984375, 0.081298828125, 0.02325439453125, 0.2371826171875, 0.2086181640625, 0.0892333984375, 0.25732421875, 0.06268310546875, 0.193115234375, 0.0087890625, 0.05950927734375, 0.08575439453125, 0.215820312...
embed
74092800_c0
74092800
rust
0
Title: Is there a way to convert fugit Instant to micoseconds? Problem title: Is there a way to convert fugit Instant to micoseconds? Tags: rp2040, rust Problem: Is there a way to convert fugit Instant to micoseconds? I am using rp2040 and rp2040_hal and it uses fugit. I am using a function timer.get_conter() which ret...
Is there a way to convert fugit Instant to micoseconds? Is there a way to convert fugit Instant to micoseconds? rp2040 rust Instant timer.get_conter rp2040 Is there a way to convert fugit Instant to micoseconds? I am using rp2040 and rp2040_hal and it uses fugit. I am using a function timer.get_conter() which returns a...
[ -0.005126953125, -0.01239013671875, 0.0093994140625, -0.0067138671875, -0.02392578125, -0.013916015625, 0.00762939453125, -0.0201416015625, 0.0027008056640625, -0.037841796875, 0.00787353515625, 0.03173828125, 0.00714111328125, 0.004791259765625, -0.002685546875, 0.0030059814453125, ...
[ 10, 3917, 47, 96760, 105503, 166945, 46029, 191633, 7, 10681, 1549, 2839, 52648, 21991, 3794, 2271, 720, 2685, 17368, 4200, 4527, 32354, 30646, 111, 162720, 217, 3444, 11948, 115081, 16792, 4034, 81988, 603, 68034, 69307 ]
[ 0.02984619140625, 0.1136474609375, 0.110107421875, 0.1859130859375, 0.30224609375, 0.267333984375, 0.1817626953125, 0.282470703125, 0.0667724609375, 0.131591796875, 0.06903076171875, 0.1871337890625, 0.209716796875, 0.2406005859375, 0.068115234375, 0.1002197265625, 0.189208984375, ...
embed
60248333_c0
60248333
rust
0
Title: How to get Pin&lt;&amp;mut T&gt; out of Pin&lt;Arc&lt;Mutex&lt;T&gt;&gt;&gt; Problem title: How to get Pin&lt;&amp;mut T&gt; out of Pin&lt;Arc&lt;Mutex&lt;T&gt;&gt;&gt; Tags: stream, future, rust-pin, rust Problem: How to get Pin<&mut T> out of Pin >> I'm writing a stream adapter that requires a shared ownership...
How to get Pin&lt;&amp;mut T&gt; out of Pin&lt;Arc&lt;Mutex&lt;T&gt;&gt;&gt; How to get Pin&lt;&amp;mut T&gt; out of Pin&lt;Arc&lt;Mutex&lt;T&gt;&gt;&gt; stream future rust-pin rust How Pin Arc Mutex Stream poll_next How to get Pin<&mut T> out of Pin >> I'm writing a stream adapter that requires a shared ownership of t...
[ -0.0004405975341796875, 0.012939453125, 0.005218505859375, -0.001251220703125, 0.0130615234375, 0.006591796875, 0.01397705078125, -0.029052734375, 0.01312255859375, -0.01373291015625, 0.002227783203125, -0.001556396484375, 0.00439453125, 0.0291748046875, 0.0037384033203125, -0.00631713...
[ 11249, 2046, 12264, 14311, 384, 1810, 111, 7614, 238, 10685, 24371, 75973, 22690, 52648, 5128, 51210, 2758, 115061, 160, 1181, 86, 29062, 47, 32562, 123666, 144570, 99764, 101785, 16070, 26785, 4343, 158559, 23, 116120, 11782, 39379 ]
[ 0.07177734375, 0.10614013671875, 0.2459716796875, 0.159423828125, 0.1619873046875, 0.1685791015625, 0.08642578125, 0.1146240234375, 0.06500244140625, 0.10400390625, 0.23388671875, 0.183837890625, 0.17626953125, 0.1956787109375, 0.15576171875, 0.2008056640625, 0.1494140625, 0.189453...
embed
68375424_c0
68375424
rust
0
Title: How to launch a substrate blockchain as a test network? Problem title: How to launch a substrate blockchain as a test network? Tags: polkadot-js, rust, substrate, blockchain Problem: How to launch a substrate blockchain as a test network? Please forgive my stupid question here. To launch my node-template under t...
How to launch a substrate blockchain as a test network? How to launch a substrate blockchain as a test network? polkadot-js rust substrate blockchain How How to launch a substrate blockchain as a test network? Please forgive my stupid question here. To launch my node-template under the TEST NETWORKS category, do I need...
[ -0.00124359130859375, 0.00421142578125, 0.0035552978515625, 0.000850677490234375, -0.0024871826171875, 0.00095367431640625, 0.03125, -0.002838134765625, 0.01434326171875, -0.0213623046875, 0.004638671875, -0.02197265625, 0.0174560546875, -0.002716064453125, -0.0033111572265625, -0.0133...
[ 11249, 47, 83184, 218250, 13, 127009, 237, 3034, 33120, 10, 3722, 161, 15464, 28175, 52648, 96259, 110833, 110, 112, 2982, 92558, 1379, 384, 21828, 9960, 24638, 95487, 4, 27980, 10002, 9007, 2206, 343, 441, 19346, 83, 26785, 75101, 51339, ...
[ 0.0977783203125, 0.04888916015625, 0.2056884765625, 0.2724609375, 0.15478515625, 0.2335205078125, 0.0987548828125, 0.255126953125, 0.1866455078125, 0.02410888671875, 0.1148681640625, 0.1165771484375, 0.1630859375, 0.13623046875, 0.2227783203125, 0.04510498046875, 0.0694580078125, 0...
embed
73862440_c0
73862440
rust
0
Title: Rustup: how to add/build components for custom toolchain Problem title: Rustup: how to add/build components for custom toolchain Tags: rustup, rust-cargo, rust Problem: Rustup: how to add/build components for custom toolchain I need to build a repo using a custom toolchain. However, that repo requires rust-src r...
Rustup: how to add/build components for custom toolchain Rustup: how to add/build components for custom toolchain rustup rust-cargo rust Rustup Rustup: how to add/build components for custom toolchain I need to build a repo using a custom toolchain. However, that repo requires However, it seems rustup can't install com...
[ -0.00897216796875, 0.0157470703125, 0.00616455078125, -0.0034942626953125, -0.02392578125, 0.005523681640625, -0.008056640625, -0.007080078125, 0.01165771484375, 0.0242919921875, -0.018798828125, -0.00194549560546875, 0.0113525390625, 0.03564453125, 0.00592041015625, 0.01239013671875, ...
[ 4518, 13272, 3642, 15190, 64, 177149, 82761, 7, 100, 114122, 55516, 115097, 3114, 52648, 3284, 519, 3871, 45367, 93392, 17368, 144570, 831, 18, 20600, 35978 ]
[ 0.1190185546875, 0.256103515625, 0.06298828125, 0.149169921875, 0.053436279296875, 0.18212890625, 0.2109375, 0.04852294921875, 0.06494140625, 0.2161865234375, 0.14208984375, 0.2193603515625, 0.102294921875, 0.1824951171875, 0.08740234375, 0.1204833984375, 0.0222625732421875, 0.1108...
embed
75158966_c0
75158966
rust
0
Title: Create multiple html static files with Yew Problem title: Create multiple html static files with Yew Tags: yew, webassembly, rust Problem: Create multiple html static files with Yew Is it possible to create more than one HTML file (with relative JS & WASM modules) from a single Yew project. For example, here I c...
Create multiple html static files with Yew Create multiple html static files with Yew yew webassembly rust Create Yew yew::Renderer App Create multiple html static files with Yew Is it possible to create more than one HTML file (with relative JS & WASM modules) from a single Yew project. For example, here I create one ...
[ 0.007537841796875, -0.00750732421875, 0.0032958984375, 0.0174560546875, -0.0164794921875, 0.00830078125, 0.0093994140625, -0.01611328125, 0.01385498046875, -0.0341796875, -0.03955078125, -0.035400390625, 0.00244140625, 0.0010986328125, 0.00830078125, -0.0242919921875, 0.008544921875,...
[ 151313, 48716, 7693, 201939, 102158, 678, 11246, 434, 2422, 1467, 89845, 52648, 23894, 56, 5659, 2071, 442, 7722, 47, 28282, 1286, 3501, 1632, 19097, 11435, 76228, 35845, 64977, 619, 4336, 18148, 88996, 1295, 11001, 13452, 3688, 17662, 114700...
[ 0.1138916015625, 0.2188720703125, 0.2034912109375, 0.2132568359375, 0.18310546875, 0.06793212890625, 0.2158203125, 0.24609375, 0.172119140625, 0.05816650390625, 0.114990234375, 0.191162109375, 0.1280517578125, 0.0677490234375, 0.1224365234375, 0.0195159912109375, 0.044769287109375, ...
embed
75182121_c2
75182121
rust
2
, Future, Output, Result, Send, Sync, player_create, Arc, sqlx::PgPool, _team_id, _input, pool.begin, await.unwrap, domain_player, Box::new, Box::pin, shirt_get_next_and_increase, sqlx::query_as, INSERT, INTO, VALUES, RETURNING, domain_player.id, domain_player.shirt_number, fetch_one, sqlx::PgConnection, Here, _tx, arg...
, Future, Output, Result, Send, Sync, player_create, Arc, sqlx::PgPool, _team_id, _input, pool.begin, await.unwrap, domain_player, Box::new, Box::pin, shirt_get_next_and_increase, sqlx::query_as, INSERT, INTO, VALUES, RETURNING, domain_player.id, domain_player.shirt_number, fetch_one, sqlx::PgConnection, Here, _tx, arg...
[ -0.00653076171875, 0.006866455078125, -0.0103759765625, -0.006317138671875, 0.0001583099365234375, 0.0029296875, -0.004669189453125, -0.017333984375, -0.0025482177734375, -0.000308990478515625, 0.034912109375, 0.036376953125, -0.0133056640625, 0.0004253387451171875, -0.003997802734375, ...
[ 4, 94724, 13538, 7077, 126684, 24044, 217835, 58585, 7612, 2182, 51210, 91, 99247, 425, 12, 683, 177, 7192, 929, 44420, 532, 73, 19361, 6820, 634, 217, 309, 13631, 77758, 139570, 27271, 54936, 5128, 6, 38184, 3794, 86, 29062, 2940, 944, ...
[ 0.034027099609375, 0.1998291015625, 0.129150390625, 0.0982666015625, 0.1732177734375, 0.138671875, 0.1959228515625, 0.2210693359375, 0.14208984375, 0.05633544921875, 0.1856689453125, 0.023834228515625, 0.1788330078125, 0.1478271484375, 0.0050048828125, 0.01983642578125, 0.07690429687...
embed
57063777_c0
57063777
rust
0
Title: Remove all whitespace from a string Problem title: Remove all whitespace from a string Tags: regex, removing-whitespace, rust, whitespace Problem: Remove all whitespace from a string How do I remove all white space from a string? I can think of some obvious methods such as looping over the string and removing ea...
Remove all whitespace from a string Remove all whitespace from a string regex removing-whitespace rust whitespace a Remove Remove all whitespace from a string How do I remove all white space from a string? I can think of some obvious methods such as looping over the string and removing each white space character, or us...
[ -0.010498046875, 0.017822265625, -0.00897216796875, 0.03369140625, -0.0228271484375, 0.00160980224609375, 0.0030517578125, 0.00433349609375, 0.007415771484375, -0.01373291015625, 0.005523681640625, 0.0152587890625, -0.025390625, 0.0162353515625, -0.0260009765625, 0.01080322265625, 0....
[ 181139, 756, 35011, 65421, 1295, 79315, 6835, 3355, 49146, 6496, 148477, 52648, 10, 54, 87, 87388, 32628, 5351, 162520, 150624, 40956, 645, 12638, 62816, 20324, 125195, 51347, 36510, 93766, 8781, 3917, 47 ]
[ 0.1729736328125, 0.1612548828125, 0.2193603515625, 0.275146484375, 0.1011962890625, 0.279296875, 0.1405029296875, 0.176025390625, 0.091064453125, 0.0723876953125, 0.18310546875, 0.2158203125, 0.010040283203125, 0.02020263671875, 0.0219268798828125, 0.1695556640625, 0.26025390625, 0...
embed
73180983_c0
73180983
rust
0
Title: Why is the size of Option&lt;bool&gt; equal to 1? Problem title: Why is the size of Option&lt;bool&gt; equal to 1? Tags: rust, size Problem: Why is the size of Option equal to 1? On Rust Playground , the size of an Option<bool> is 1. Is rust packing the option information into the bool itself? So the Option repr...
Why is the size of Option&lt;bool&gt; equal to 1? Why is the size of Option&lt;bool&gt; equal to 1? rust size Why Option None Some std::mem::size_of size_of Why is the size of Option equal to 1? On Rust Playground , the size of an Option<bool> is 1. Is rust packing the option information into the bool itself? So the Op...
[ 0.0272216796875, 0.00396728515625, 0.017822265625, 0.0162353515625, -0.0087890625, -0.006622314453125, 0.020751953125, -0.01446533203125, 0.002593994140625, 0.032470703125, -0.0025634765625, -0.004486083984375, -0.015869140625, -0.0029296875, 0.009521484375, 0.0162353515625, 0.031982...
[ 44084, 13267, 111, 86769, 1277, 142484, 5386, 105950, 106, 52648, 438, 86, 31384, 6138, 71, 37138, 62539, 4390, 83, 70, 47, 2161, 144222, 11356, 64330, 142, 615, 43824, 214, 35829, 4677, 3934, 68034, 33636, 138, 7722, 117249, 8710, 9774 ]
[ 0.10400390625, 0.202392578125, 0.1116943359375, 0.2998046875, 0.036346435546875, 0.1845703125, 0.0791015625, 0.1419677734375, 0.117431640625, 0.21337890625, 0.05120849609375, 0.07049560546875, 0.0809326171875, 0.0982666015625, 0.07440185546875, 0.1148681640625, 0.114501953125, 0.11...
embed
74978159_c0
74978159
rust
0
Title: Is there a way to use NASM syntax for inline assembly? Problem title: Is there a way to use NASM syntax for inline assembly? Tags: inline-assembly, rust, gnu-assembler, nasm Problem: Is there a way to use NASM syntax for inline assembly? I really dislike the GNU Assembler syntax and I some existing code written ...
Is there a way to use NASM syntax for inline assembly? Is there a way to use NASM syntax for inline assembly? inline-assembly rust gnu-assembler nasm NASM global_asm Is there a way to use NASM syntax for inline assembly? I really dislike the GNU Assembler syntax and I some existing code written with NASM syntax that wo...
[ -0.019287109375, 0.004852294921875, -0.00958251953125, 0.010009765625, 0.001861572265625, -0.01080322265625, -0.00238037109375, 0.005828857421875, 0.007232666015625, -0.0191650390625, 0.01361083984375, -0.005706787109375, -0.00909423828125, -0.0228271484375, -0.01153564453125, -0.00567...
[ 3917, 4527, 79518, 594, 6002, 86531, 100, 23, 2256, 10, 89845, 38526, 2685, 47, 11, 52648, 104155, 93457, 42, 1416, 39, 7964, 162, 6183, 2837, 5062, 165132, 151169, 56, 144573, 18151, 32233, 24503, 1733, 18588, 11469, 7722, 3249, 90295, 1...
[ 0.09783935546875, 0.12158203125, 0.1937255859375, 0.2276611328125, 0.1593017578125, 0.200927734375, 0.06622314453125, 0.1243896484375, 0.2022705078125, 0.0572509765625, 0.1888427734375, 0.0780029296875, 0.014984130859375, 0.0125732421875, 0.012664794921875, 0.158203125, 0.10876464843...
embed
26049939_c1
26049939
rust
1
<B: Bar> Bar for Foo<B> {} impl Bar for Foo2 {} fn bar<B: Bar>(bar: B) {} fn circle_vec<B: Bar>() { bar(Foo2); // 1. WORKS Foo { bar: Some(Foo { bar: None }) }; // 2. WILL NOT WORK } This will give me this error: error[E0282]: type annotations needed --> src/main.rs:17:21 | 17 | Foo { bar: Some(Foo { bar: None }) }; //...
<B: Bar> Bar for Foo<B> {} impl Bar for Foo2 {} fn bar<B: Bar>(bar: B) {} fn circle_vec<B: Bar>() { bar(Foo2); // 1. WORKS Foo { bar: Some(Foo { bar: None }) }; // 2. WILL NOT WORK } This will give me this error: error[E0282]: type annotations needed --> src/main.rs:17:21 | 17 | Foo { bar: Some(Foo { bar: None }) }; //...
[ 0.0120849609375, 0.00118255615234375, -0.0155029296875, 0.01385498046875, 0.0010986328125, 0.0081787109375, -0.0177001953125, -0.026123046875, 0.00188446044921875, 0.024658203125, -0.00836181640625, -0.0004024505615234375, 0.0022125244140625, 0.00726318359375, -0.0128173828125, -0.0132...
[ 571, 12, 3253, 100, 9572, 31, 116120, 304, 14783, 1909, 1299, 335, 42154, 35259, 27591, 10461, 231355, 294, 31384, 438, 787, 57912, 86725, 163, 903, 18499, 647, 9550, 12012, 10644, 8668, 22062, 44841, 19437, 24931, 4295, 22950, 25619, 729, ...
[ 0.107666015625, 0.0218048095703125, 0.2301025390625, 0.07232666015625, 0.2003173828125, 0.18115234375, 0.171875, 0.14990234375, 0.1217041015625, 0.215087890625, 0.1654052734375, 0.123779296875, 0.076904296875, 0.17578125, 0.1480712890625, 0.1405029296875, 0.180908203125, 0.03295898...
embed
51765062_c0
51765062
rust
0
Title: Can you use Rust to write Firefox add-ons/extensions? Problem title: Can you use Rust to write Firefox add-ons/extensions? Tags: firefox, rust, browser-addons Problem: Can you use Rust to write Firefox add-ons/extensions? Mozilla has the Oxidation project : The goal of Oxidation is to make it easier and more ple...
Can you use Rust to write Firefox add-ons/extensions? Can you use Rust to write Firefox add-ons/extensions? firefox rust browser-addons Can Rust Firefox Can you use Rust to write Firefox add-ons/extensions? Mozilla has the Oxidation project : But it does not mention anything about whether Rust is supported for add-ons ...
[ 0.00830078125, 0.02685546875, 0.01904296875, 0.017578125, -0.0203857421875, 0.0087890625, 0.00104522705078125, -0.0125732421875, -0.0185546875, 0.007080078125, 0.007049560546875, -0.01544189453125, 0.0067138671875, 0.0281982421875, 0.006805419921875, -0.025390625, 0.007049560546875, ...
[ 4171, 398, 4527, 144222, 47, 33022, 43568, 15190, 9, 5245, 3355, 128872, 64, 11476, 147797, 52648, 31842, 712, 4445, 109875, 1556, 180, 425, 532, 2320, 13452, 959, 41392, 8060, 100 ]
[ 0.10791015625, 0.050628662109375, 0.118896484375, 0.27685546875, 0.0916748046875, 0.1778564453125, 0.253173828125, 0.154541015625, 0.0308990478515625, 0.17333984375, 0.08770751953125, 0.1842041015625, 0.0037841796875, 0.07635498046875, 0.144287109375, 0.225830078125, 0.1060791015625,...
embed
72348259_c1
72348259
rust
1
Experimentals\rust-workspace\foo_1) Verifying foo_1 v0.1.0 (E:\Works\Experimentals\rust-workspace\foo_1) Updating crates.io index error: failed to verify package tarball Caused by: no matching package named `foo_2` found location searched: registry `crates-io` required by package `foo_1 v0.1.0 (E:\Works\Experimentals\r...
Experimentals\rust-workspace\foo_1) Verifying foo_1 v0.1.0 (E:\Works\Experimentals\rust-workspace\foo_1) Updating crates.io index error: failed to verify package tarball Caused by: no matching package named `foo_2` found location searched: registry `crates-io` required by package `foo_1 v0.1.0 (E:\Works\Experimentals\r...
[ 0.0167236328125, 0.00174713134765625, -0.0091552734375, 0.01190185546875, 0.01385498046875, 0.00072479248046875, -0.02099609375, 0.0216064453125, 0.0003604888916015625, 0.0537109375, 0.005096435546875, -0.007080078125, -0.0103759765625, 0.011474609375, -0.00048828125, -0.024169921875, ...
[ 146797, 16765, 43245, 18244, 65421, 3584, 31, 115187, 1446, 151138, 5775, 81, 102014, 2389, 108259, 19279, 17152, 52796, 10091, 56464, 187906, 846, 63262, 18499, 165523, 47, 493, 40383, 98169, 2405, 12126, 2041, 110, 14858, 454, 304, 14037, 3...
[ 0.1981201171875, 0.125732421875, 0.2110595703125, 0.086181640625, 0.158203125, 0.1661376953125, 0.145263671875, 0.1656494140625, 0.19482421875, 0.1834716796875, 0.1705322265625, 0.08203125, 0.1446533203125, 0.12548828125, 0.1064453125, 0.020294189453125, 0.14697265625, 0.1282958984...
embed
74178631_c1
74178631
rust
1
, R2, C2, SB>>> <&'a Matrix<T, R1, C1, SA> as Add<Matrix<T, R2, C2, SB>>> <Matrix<T, R1, C1, SA> as Add<&'b Matrix<T, R2, C2, SB>>> <Matrix<T, R1, C1, SA> as Add<Matrix<T, R2, C2, SB>>> For more information about this error, try `rustc --explain E0277`. error: could not compile `playground` due to previous error Can so...
, R2, C2, SB>>> <&'a Matrix<T, R1, C1, SA> as Add<Matrix<T, R2, C2, SB>>> <Matrix<T, R1, C1, SA> as Add<&'b Matrix<T, R2, C2, SB>>> <Matrix<T, R1, C1, SA> as Add<Matrix<T, R2, C2, SB>>> For more information about this error, try `rustc --explain E0277`. error: could not compile `playground` due to previous error Can so...
[ 0.00174713134765625, 0.017578125, 0.0244140625, 0.017333984375, 0.0035858154296875, 0.01348876953125, -0.013671875, -0.006591796875, 0.0010986328125, 0.00787353515625, 0.00823974609375, -0.0247802734375, 0.00933837890625, 0.0162353515625, -0.00799560546875, -0.0322265625, -0.00741577...
[ 627, 304, 313, 90944, 130910, 1230, 11, 194234, 618, 418, 5377, 237, 29117, 4613, 87427, 275, 4, 18499, 43245, 238, 83613, 16442, 241, 9550, 14546, 5809, 959, 9969, 1340, 9473, 20706, 64330, 4743, 96362, 14192, 31635, 24, 54090, 2844, 18,...
[ 0.08892822265625, 0.1011962890625, 0.04248046875, 0.10137939453125, 0.053802490234375, 0.0069580078125, 0.04327392578125, 0.2169189453125, 0.057861328125, 0.045440673828125, 0.1060791015625, 0.035980224609375, 0.1536865234375, 0.07086181640625, 0.1573486328125, 0.07196044921875, 0.00...
embed
75717123_c1
75717123
rust
1
07 | } | - `limiter` dropped here while still borrowed Is there any way to keep the limiter alive? Code signals: Rate-limited, governor::state::StreamRateLimitExt, Quota, RateLimiter, tonic::async_trait, ServiceTrait, MyService, ScanNetworkStream, Pin, Box, Stream, Item, Result, ScanNetworkResponse, tonic::Status, Send...
07 | } | - `limiter` dropped here while still borrowed Is there any way to keep the limiter alive? Code signals: Rate-limited, governor::state::StreamRateLimitExt, Quota, RateLimiter, tonic::async_trait, ServiceTrait, MyService, ScanNetworkStream, Pin, Box, Stream, Item, Result, ScanNetworkResponse, tonic::Status, Send...
[ -0.004852294921875, 0.0274658203125, -0.006744384765625, -0.02294921875, 0.003875732421875, 0.007080078125, -0.01226806640625, -0.022216796875, 0.029296875, -0.036865234375, 0.0103759765625, 0.0177001953125, 0.004547119140625, -0.00897216796875, 0.0233154296875, 0.0036773681640625, 0...
[ 4719, 93343, 56, 36069, 20051, 3688, 12960, 7464, 3017, 15555, 297, 2071, 2685, 2499, 3917, 47, 13695, 70, 17475, 923, 272, 28864, 26073, 7, 131182, 23607, 42, 61340, 115061, 12248, 67, 866, 6836, 19279, 18, 43851, 102, 6402, 12654, 87929...
[ 0.05169677734375, 0.273193359375, 0.2371826171875, 0.15673828125, 0.1051025390625, 0.12939453125, 0.07989501953125, 0.1124267578125, 0.169677734375, 0.2310791015625, 0.1131591796875, 0.00140380859375, 0.036865234375, 0.0533447265625, 0.09521484375, 0.08990478515625, 0.1973876953125, ...
embed
71465023_c1
71465023
rust
1
the current scope method not found in `mongodb::results::UpdateResult Code signals: Method, mongodb::results::UpdateResult, Client, ClientOptions, ResolverConfig, std::error::Error, std::io, bson::doc, tokio::main, Result, Box, Error, client_uri, dotenv::var, MONGODB_URI, You, db_name, MONGODB_NAME, Enter, String::new...
the current scope method not found in `mongodb::results::UpdateResult Code signals: Method, mongodb::results::UpdateResult, Client, ClientOptions, ResolverConfig, std::error::Error, std::io, bson::doc, tokio::main, Result, Box, Error, client_uri, dotenv::var, MONGODB_URI, You, db_name, MONGODB_NAME, Enter, String::new...
[ 0.004730224609375, 0.0283203125, 0.0194091796875, 0.0203857421875, 0.004058837890625, 0.01239013671875, -0.019287109375, -0.0026092529296875, 0.0030517578125, 0.0029449462890625, -0.0279541015625, -0.01019287109375, -0.01495361328125, -0.0167236328125, 0.0302734375, -0.0001201629638671...
[ 70, 43581, 70820, 55300, 959, 14037, 23, 3796, 7803, 275, 2109, 7136, 152872, 4332, 7, 28864, 26073, 74644, 2667, 91732, 39029, 5256, 853, 86918, 83671, 6138, 71, 188800, 18468, 31611, 846, 876, 1681, 29713, 126509, 24931, 126684, 27271, 21...
[ 0.030548095703125, 0.2318115234375, 0.314208984375, 0.271728515625, 0.15625, 0.200439453125, 0.05548095703125, 0.13427734375, 0.136962890625, 0.1651611328125, 0.0968017578125, 0.1689453125, 0.1793212890625, 0.018096923828125, 0.095458984375, 0.189208984375, 0.24853515625, 0.2749023...
embed
76349634_c1
76349634
rust
1
= ... part is eclipsed. Code signals: warp::Filter, handler_without_parameter, Result, warp::Reply, warp::Rejection, warp::reply::json, to_string, get_items, warp::get, warp::path, warp::path::end, and_then, HashMap, HashMap::new, para_filter, warp::any, para.clone, E0593, Sized, Self::Extract, Tuple, HList, Combine, ...
= ... part is eclipsed. Code signals: warp::Filter, handler_without_parameter, Result, warp::Reply, warp::Rejection, warp::reply::json, to_string, get_items, warp::get, warp::path, warp::path::end, and_then, HashMap, HashMap::new, para_filter, warp::any, para.clone, E0593, Sized, Self::Extract, Tuple, HList, Combine, ...
[ -0.004486083984375, 0.001739501953125, 0.0002899169921875, 0.00057220458984375, 0.006622314453125, -0.0087890625, 0.006103515625, -0.0101318359375, 0.012451171875, 0.0021514892578125, -0.00341796875, 0.008056640625, -0.006622314453125, 0.047607421875, 0.003875732421875, 0.0162353515625...
[ 2203, 153, 2831, 83, 28, 106371, 5281, 5, 28864, 26073, 7, 12, 1631, 254, 919, 379, 720, 35863, 76228, 6056, 6276, 29089, 126684, 62479, 4332, 236, 10763, 170, 1681, 47, 91693, 2046, 1486, 4432, 3794, 128405, 3611, 92733, 162087, 166179, ...
[ 0.19873046875, 0.1373291015625, 0.19140625, 0.101318359375, 0.08905029296875, 0.253662109375, 0.196533203125, 0.038238525390625, 0.26171875, 0.263427734375, 0.126953125, 0.0294647216796875, 0.1778564453125, 0.1507568359375, 0.06103515625, 0.1871337890625, 0.1495361328125, 0.2446289...
embed
76695338_c0
76695338
rust
0
Title: Partition struct collection into member collection Problem title: Partition struct collection into member collection Tags: vector, struct, rust, iterator, collections Problem: Partition struct collection into member collection I want to convert a collection of struct type to collection of struct's member type. s...
Partition struct collection into member collection Partition struct collection into member collection vector struct rust iterator collections Partition Foo i64 f64 Vec foo.iter Not Partition struct collection into member collection I want to convert a collection of struct type to collection of struct's member type.
[ -0.00141143798828125, 0.00001895427703857422, -0.0167236328125, 0.0084228515625, -0.0263671875, -0.00506591796875, 0.0008087158203125, -0.01708984375, -0.0137939453125, -0.004058837890625, -0.0302734375, 0.0137939453125, 0.01324462890625, 0.01495361328125, -0.00144195556640625, -0.0264...
[ 9148, 1363, 36716, 42486, 3934, 32786, 173, 18770, 52648, 720, 4597, 9572, 31, 13307, 52884, 5775, 16840, 11205, 3444, 47, 96760, 10644, 111 ]
[ 0.1544189453125, 0.060028076171875, 0.2235107421875, 0.2177734375, 0.140380859375, 0.2308349609375, 0.1240234375, 0.1163330078125, 0.1695556640625, 0.1588134765625, 0.06903076171875, 0.094482421875, 0.0806884765625, 0.1651611328125, 0.15234375, 0.07879638671875, 0.135498046875, 0.0...
embed
69242985_c0
69242985
rust
0
Title: How to print out type of variable in Rust? Problem title: How to print out type of variable in Rust? Tags: rust Problem: How to print out type of variable in Rust? How to print out type of any variable in Ruts? Thanks in advance! use std::any::Any; use std::any::type_name; fn main() { let x = 5; let x = x + 1; l...
How to print out type of variable in Rust? How to print out type of variable in Rust? rust How Rust std::any::Any std::any::type_name spaces.len String::from_utf16 How to print out type of variable in Rust? How to print out type of any variable in Ruts? Thanks in advance!
[ -0.00201416015625, 0.02001953125, -0.0030059814453125, 0.052490234375, -0.00040435791015625, 0.004302978515625, -0.00927734375, 0.0054931640625, -0.0081787109375, 0.0067138671875, 0.0146484375, -0.053955078125, 0.0194091796875, 0.011474609375, 0.003143310546875, 0.0167236328125, 0.00...
[ 11249, 47, 28412, 1810, 10644, 111, 77336, 23, 144222, 52648, 6138, 71, 4848, 299, 50986, 11627, 32628, 1977, 23351, 161063, 1003, 420, 2485, 2499, 90538, 7, 129745 ]
[ 0.0733642578125, 0.0875244140625, 0.19921875, 0.1514892578125, 0.252197265625, 0.11767578125, 0.29345703125, 0.1260986328125, 0.27392578125, 0.2103271484375, 0.1510009765625, 0.123779296875, 0.1424560546875, 0.1263427734375, 0.2100830078125, 0.128173828125, 0.1549072265625, 0.09094...
embed
74836907_c0
74836907
rust
0
Title: VSCode Code Actions not working with Rust Problem title: VSCode Code Actions not working with Rust Tags: visual-studio-code, rust-analyzer, rust Problem: VSCode Code Actions not working with Rust I'm using VSCode with rust-analyzer. I can get the Code Actions menu to show up, but clicking on the items does nothi...
VSCode Code Actions not working with Rust VSCode Code Actions not working with Rust visual-studio-code rust-analyzer rust VSCode Actions Rust VSCode Code Actions not working with Rust I'm using VSCode with rust-analyzer. I can get the Code Actions menu to show up, but clicking on the items does nothing. How can I fix t...
[ 0.00848388671875, 0.00017261505126953125, 0.02099609375, 0.016357421875, 0.0174560546875, 0.01458740234375, -0.0126953125, 0.00156402587890625, -0.01446533203125, 0.032958984375, -0.022216796875, 0.0010528564453125, -0.002532958984375, 0.021240234375, -0.00055694580078125, 0.0137939453...
[ 44160, 114211, 28864, 57945, 959, 20697, 678, 144222, 21176, 52629, 40899, 52648, 1500, 538, 4383, 17368, 8026, 7639, 18158, 214, 55769, 14602, 33720, 30022, 903, 171581, 43240, 5885, 18, 20594, 23937, 56464, 80383 ]
[ 0.1705322265625, 0.253173828125, 0.2294921875, 0.2308349609375, 0.064453125, 0.1246337890625, 0.145751953125, 0.2314453125, 0.1102294921875, 0.099365234375, 0.1630859375, 0.1912841796875, 0.081298828125, 0.0933837890625, 0.1474609375, 0.0706787109375, 0.1568603515625, 0.05480957031...
embed
75359781_c1
75359781
rust
1
need your help. I tried to find the right ways to invoke some JavaScript functions, such as prompt or alert. However, I cannot invoke the Tauri api correctly. Code signals: How, Blazor, scripts.js, ToggleWindowMax, appWindow.toggleMaximize, Pages, index.razor, IJSRuntime, PageTitle, Index, MudStack, MudButton, pa-3, V...
need your help. I tried to find the right ways to invoke some JavaScript functions, such as prompt or alert. However, I cannot invoke the Tauri api correctly. Code signals: How, Blazor, scripts.js, ToggleWindowMax, appWindow.toggleMaximize, Pages, index.razor, IJSRuntime, PageTitle, Index, MudStack, MudButton, pa-3, V...
[ -0.0299072265625, 0.024658203125, -0.003753662109375, 0.0291748046875, 0.00104522705078125, 0.019287109375, 0.016357421875, 0.00897216796875, 0.01220703125, -0.04443359375, 0.00823974609375, -0.00193023681640625, -0.0010223388671875, 0.0284423828125, 0.0294189453125, -0.000222206115722...
[ 3871, 935, 4358, 37842, 7108, 48322, 23, 23253, 13, 3060, 17925, 32354, 105876, 707, 110342, 53418, 1218, 1162, 31470, 26785, 28864, 26073, 11249, 22446, 12597, 26499, 28175, 717, 129384, 24293, 71346, 4027, 188, 77651, 14231, 63262, 5, 219, ...
[ 0.1314697265625, 0.0271148681640625, 0.1072998046875, 0.03436279296875, 0.0889892578125, 0.05224609375, 0.07958984375, 0.16943359375, 0.027313232421875, 0.004364013671875, 0.2327880859375, 0.171630859375, 0.2166748046875, 0.017822265625, 0.2056884765625, 0.1314697265625, 0.1875, 0....
embed
77249382_c0
77249382
rust
0
Title: why Result&lt;T,E&gt; instead of Result&lt;T,E: Error&gt; in rust? Problem title: why Result&lt;T,E&gt; instead of Result&lt;T,E: Error&gt; in rust? Tags: rust Problem: why Result instead of Result in rust? I am new to rust and still trying to grab the concept of it. In Error trait docs it mentions Error is a tr...
why Result&lt;T,E&gt; instead of Result&lt;T,E: Error&gt; in rust? why Result&lt;T,E&gt; instead of Result&lt;T,E: Error&gt; in rust? rust Result E:Error why Result instead of Result in rust? I am new to rust and still trying to grab the concept of it. In Error trait docs it mentions But why Result is defined as Result...
[ 0.010009765625, 0.0113525390625, 0.009765625, -0.005462646484375, 0.0252685546875, -0.01513671875, -0.01336669921875, -0.02685546875, 0.004241943359375, 0.01416015625, 0.00830078125, -0.051025390625, 0.003875732421875, 0.006927490234375, 0.00244140625, 0.0169677734375, 0.017700195312...
[ 15400, 126684, 1277, 618, 647, 1230, 5386, 64457, 212059, 23, 52648, 241, 12, 18468, 31611, 111, 3525, 59102, 23755, 110106, 54, 41392, 83, 61924, 71, 237, 4, 34735 ]
[ 0.1458740234375, 0.287841796875, 0.059326171875, 0.1151123046875, 0.146484375, 0.00457763671875, 0.1324462890625, 0.171142578125, 0.2222900390625, 0.1058349609375, 0.255859375, 0.1737060546875, 0.0292510986328125, 0.1790771484375, 0.202880859375, 0.052032470703125, 0.0018310546875, ...
embed
37877381_c0
37877381
rust
0
Title: What is the difference between immutable and const variables in Rust? Problem title: What is the difference between immutable and const variables in Rust? Tags: rust, immutability, constants Problem: What is the difference between immutable and const variables in Rust? I learned that if a variable is not explici...
What is the difference between immutable and const variables in Rust? What is the difference between immutable and const variables in Rust? rust immutability constants What Rust What is the difference between immutable and const variables in Rust? I learned that if a variable is not explicitly declared mutable using mu...
[ 0.0159912109375, -0.000713348388671875, 0.0037078857421875, 0.0152587890625, 0.0152587890625, 0.0172119140625, -0.0203857421875, -0.00106048583984375, -0.00860595703125, 0.0277099609375, -0.01287841796875, -0.005218505859375, 0.01446533203125, 0.039794921875, -0.00189208984375, 0.01202...
[ 4865, 60212, 17721, 566, 561, 22819, 136, 158, 271, 77336, 7, 23, 144222, 52648, 14311, 41159, 53697, 83, 70, 959, 143726, 159978, 842, 17368, 21144, 24209, 53418, 98816, 7103, 21635, 15400, 765, 166117, 5701, 129927 ]
[ 0.0096435546875, 0.1873779296875, 0.102294921875, 0.09490966796875, 0.173828125, 0.184814453125, 0.092529296875, 0.1611328125, 0.175537109375, 0.26220703125, 0.042633056640625, 0.0849609375, 0.260498046875, 0.206298828125, 0.1806640625, 0.0770263671875, 0.143310546875, 0.0176239013...
embed
48220203_c1
48220203
rust
1
} This of course gives an error, "conflicting implementations of trait TypeLevelMap<_, _> for type TypeLevelMapCons<_, _, _, _, _> ". I can't figure out how to tell Rust to prefer the first one; specialization didn't help, and there's no != in where bounds. Is there a way to disambiguate them, or is there another way ...
} This of course gives an error, "conflicting implementations of trait TypeLevelMap<_, _> for type TypeLevelMapCons<_, _, _, _, _> ". I can't figure out how to tell Rust to prefer the first one; specialization didn't help, and there's no != in where bounds. Is there a way to disambiguate them, or is there another way ...
[ -0.01202392578125, 0.0113525390625, 0.00028228759765625, -0.0247802734375, -0.0020904541015625, -0.0203857421875, -0.01409912109375, -0.014892578125, -0.002532958984375, 0.005615234375, 0.0079345703125, 0.0194091796875, 0.032470703125, 0.031494140625, 0.005950927734375, 0.0081787109375...
[ 51912, 3293, 15411, 76199, 18499, 2271, 134225, 214, 208124, 7, 110106, 60457, 5267, 2601, 166179, 100, 10644, 11935, 26366, 14192, 144222, 12601, 5117, 1632, 5361, 47691, 4358, 110, 711, 1369, 7440, 99091, 3917, 6392, 6332, 16407, 67, 2856, ...
[ 0.036529541015625, 0.06195068359375, 0.07550048828125, 0.013397216796875, 0.1844482421875, 0.109130859375, 0.234619140625, 0.06878662109375, 0.1766357421875, 0.077392578125, 0.2381591796875, 0.2174072265625, 0.1385498046875, 0.2066650390625, 0.178955078125, 0.0504150390625, 0.1945800...
embed
38885060_c0
38885060
rust
0
Title: Way to create inline static values Problem title: Way to create inline static values Tags: rust Problem: Way to create inline static values Sometimes I'd like to use some complex values with static lifetime, but defining them explicitly is tedious. Is there a way to turn something like this: const PATH: &'static...
Way to create inline static values Way to create inline static values rust Way PATH do_things Way to create inline static values Sometimes I'd like to use some complex values with static lifetime, but defining them explicitly is tedious. Is there a way to turn something like this: into something closer to this? The fun...
[ 0.025390625, -0.01287841796875, -0.0029449462890625, -0.007568359375, -0.028076171875, -0.00041961669921875, -0.0017547607421875, -0.0169677734375, 0.016845703125, -0.0279541015625, -0.01055908203125, -0.019775390625, 0.007598876953125, 0.0133056640625, 0.0078125, -0.00122833251953125,...
[ 42261, 47, 28282, 23, 2256, 201939, 142424, 52648, 436, 139909, 54, 64113, 160193, 1884, 4527, 27140, 6897, 6032, 13204, 449, 143726, 5670, 223, 3917, 15504, 903, 3934, 20903, 42, 32354, 51776, 619, 1230, 7704, 10750 ]
[ 0.1689453125, 0.052886962890625, 0.2015380859375, 0.1058349609375, 0.2396240234375, 0.271240234375, 0.2432861328125, 0.2210693359375, 0.0552978515625, 0.21533203125, 0.0665283203125, 0.131103515625, 0.011688232421875, 0.075439453125, 0.0928955078125, 0.1668701171875, 0.10595703125, ...
embed
77623437_c2
77623437
rust
2
, read_lines, cal_line, coloured_cubes.insert, Game, cal_line.starts_with, Line, cal_line.replace_range, prefix.len, game_part, cal_line.split, game_part.split, cube_info, Vec, cube.split, cube_info.len, i32, coloured_cubes.contains_key, temp_colour, Got, Problem, Did, ResultSum, Functions, Result, Returns, Iterator, R...
, read_lines, cal_line, coloured_cubes.insert, Game, cal_line.starts_with, Line, cal_line.replace_range, prefix.len, game_part, cal_line.split, game_part.split, cube_info, Vec, cube.split, cube_info.len, i32, coloured_cubes.contains_key, temp_colour, Got, Problem, Did, ResultSum, Functions, Result, Returns, Iterator, R...
[ -0.01806640625, -0.01275634765625, -0.0107421875, 0.01397705078125, 0.00311279296875, 0.002777099609375, 0.0146484375, -0.0152587890625, 0.006561279296875, 0.03173828125, -0.01141357421875, 0.0390625, 0.007232666015625, -0.00994873046875, 0.012451171875, -0.00098419189453125, 0.00787...
[ 6, 4, 12301, 454, 59801, 6510, 2256, 134855, 297, 1010, 7438, 5, 73, 33657, 13547, 17137, 76228, 16777, 107, 23935, 94250, 183114, 1977, 6712, 17365, 4353, 314, 372, 7319, 52884, 17, 6460, 98102, 5425, 19770, 20805, 22796, 474, 53983, 156...
[ 0.0010986328125, 0.0943603515625, 0.187744140625, 0.040313720703125, 0.2073974609375, 0.1583251953125, 0.188232421875, 0.2210693359375, 0.1494140625, 0.1614990234375, 0.1563720703125, 0.0836181640625, 0.040252685546875, 0.153076171875, 0.1787109375, 0.1265869140625, 0.0936279296875, ...
embed
77951002_c0
77951002
rust
0
Title: Avoid `PhantdomData` when wrapping a generic `Fn`? Problem title: Avoid `PhantdomData` when wrapping a generic `Fn`? Tags: rust Problem: Avoid `PhantdomData` when wrapping a generic `Fn`? The following definition fails with an error that T is an unused parameter: struct Wrapper<F:Fn(T)->(),T> { func: F } The nor...
Avoid `PhantdomData` when wrapping a generic `Fn`? Avoid `PhantdomData` when wrapping a generic `Fn`? rust Avoid PhantdomData Wrapper F:Fn PhantomData Avoid `PhantdomData` when wrapping a generic `Fn`? The following definition fails with an error that T is an unused parameter: The normal solution would be to use Phanto...
[ -0.003631591796875, 0.007476806640625, -0.00567626953125, -0.0179443359375, -0.00982666015625, 0.005279541015625, 0.029052734375, -0.0118408203125, -0.007354736328125, -0.0341796875, -0.019287109375, -0.01165771484375, -0.01019287109375, 0.007415771484375, 0.0037689208984375, 0.0087280...
[ 84361, 532, 45689, 1236, 3815, 137989, 137565, 10366, 189534, 919, 19, 52648, 95581, 18, 219, 8079, 563, 206640, 25632, 80934, 35782, 18499, 384, 83, 51, 33740, 171859, 3638, 29806, 4527, 103608, 5885, 71864, 17368 ]
[ 0.1466064453125, 0.08880615234375, 0.07952880859375, 0.1201171875, 0.175537109375, 0.2174072265625, 0.1617431640625, 0.051971435546875, 0.2125244140625, 0.08941650390625, 0.133544921875, 0.114013671875, 0.129638671875, 0.0662841796875, 0.1214599609375, 0.13427734375, 0.09808349609375...
embed
58470768_c3
58470768
rust
3
b8dacef.2wggiqwux76jad1h.rcgu.o, testmqtt-e2a79a549b8dacef.3mqzooten3ugyse9.rcgu.o, testmqtt-e2a79a549b8dacef.3vqvdeaqidai2p26.rcgu.o, testmqtt-e2a79a549b8dacef.4fnmrub2ky4biwf5.rcgu.o, testmqtt-e2a79a549b8dacef.4tdiuzs0kqadbi75.rcgu.o, testmqtt-e2a79a549b8dacef.4u40iyf9g9kmiphf.rcgu.o, testmqtt-e2a79a549b8dacef.51m4wn...
b8dacef.2wggiqwux76jad1h.rcgu.o, testmqtt-e2a79a549b8dacef.3mqzooten3ugyse9.rcgu.o, testmqtt-e2a79a549b8dacef.3vqvdeaqidai2p26.rcgu.o, testmqtt-e2a79a549b8dacef.4fnmrub2ky4biwf5.rcgu.o, testmqtt-e2a79a549b8dacef.4tdiuzs0kqadbi75.rcgu.o, testmqtt-e2a79a549b8dacef.4u40iyf9g9kmiphf.rcgu.o, testmqtt-e2a79a549b8dacef.51m4wn...
[ 0.00897216796875, -0.03662109375, -0.0023956298828125, 0.0030670166015625, 0.0203857421875, -0.003387451171875, -0.0172119140625, 0.029052734375, 0.0146484375, 0.037109375, -0.004608154296875, -0.0308837890625, 0.002593994140625, -0.0250244140625, -0.01495361328125, 0.00653076171875, ...
[ 876, 1019, 85, 329, 420, 5, 304, 16680, 6077, 11835, 11315, 127, 19437, 1234, 31, 4, 3034, 39, 864, 3062, 9, 13, 11, 22377, 163170, 275, 363, 63290, 9387, 59355, 1126, 334, 112, 1683, 14, 4046, 47485, 617, 964, 434, 758, 7, 2389, ...
[ 0.061981201171875, 0.109130859375, 0.031341552734375, 0.036285400390625, 0.056304931640625, 0.033447265625, 0.0302886962890625, 0.045562744140625, 0.017181396484375, 0.1119384765625, 0.09375, 0.059722900390625, 0.0689697265625, 0.1597900390625, 0.11376953125, 0.086669921875, 0.263183...
embed
35321795_c2
35321795
rust
2
, v0.1.0, main.rs:94:36, main.rs:94, main.rs:75:6, main.rs:75, main.rs:76, main.rs:77, main.rs:78, main.rs:79, main.rs:80, Arc, Mutex, std::str, std::thread, receive_loop2, tt2, std::sync::mpsc::channel, std::io::stdin, Sender, Receiver, websocket::message::Type, websocket::client::request::Url, websocket::Client, Url:...
, v0.1.0, main.rs:94:36, main.rs:94, main.rs:75:6, main.rs:75, main.rs:76, main.rs:77, main.rs:78, main.rs:79, main.rs:80, Arc, Mutex, std::str, std::thread, receive_loop2, tt2, std::sync::mpsc::channel, std::io::stdin, Sender, Receiver, websocket::message::Type, websocket::client::request::Url, websocket::Client, Url:...
[ 0.00567626953125, 0.0068359375, -0.001007080078125, 0.01165771484375, 0.00909423828125, 0.018310546875, 0.017333984375, -0.0028839111328125, 0.0025482177734375, -0.001190185546875, 0.007568359375, 0.0025787353515625, 0.00170135498046875, -0.0045166015625, 0.005523681640625, -0.00172424...
[ 6, 4, 81, 102014, 5, 2389, 5201, 4295, 14889, 32944, 6873, 910, 11835, 14546, 19051, 22377, 4836, 51210, 2758, 24371, 6138, 71, 12, 9297, 39116, 53299, 28354, 304, 3062, 12654, 2676, 10382, 17032, 846, 271, 3035, 24044, 56, 93908, 814, ...
[ 0.113037109375, 0.0853271484375, 0.191650390625, 0.280517578125, 0.09893798828125, 0.24951171875, 0.1246337890625, 0.1064453125, 0.1993408203125, 0.169189453125, 0.135498046875, 0.08251953125, 0.1258544921875, 0.1451416015625, 0.07794189453125, 0.127197265625, 0.1016845703125, 0.20...
embed
40846232_c0
40846232
rust
0
Title: Rust compiler does not see structure as Sized Problem title: Rust compiler does not see structure as Sized Tags: rust Problem: Rust compiler does not see structure as Sized I am trying to define a trait as follows: pub struct Parameter<A: Parameterisable>(&'static str, Box<A>); pub trait Parameterisable { // Som...
Rust compiler does not see structure as Sized Rust compiler does not see structure as Sized rust Rust Sized Parameter Parameterisable Box Some i32 f64 ParameterCollection Vec E0277 std::marker::Sized main.rs:10:32 Rust compiler does not see structure as Sized I am trying to define a trait as follows: That is, the param...
[ 0.008544921875, 0.01483154296875, -0.01513671875, 0.0024261474609375, -0.0228271484375, 0.007781982421875, 0.01123046875, -0.01611328125, 0.0081787109375, 0.002349853515625, -0.0107421875, 0.00823974609375, -0.01153564453125, 0.00970458984375, 0.036376953125, 0.0004138946533203125, 0...
[ 144222, 9969, 34759, 959, 1957, 45646, 237, 159, 29367, 52648, 1720, 29089, 2886, 27271, 17, 6460, 13307, 78457, 133, 52884, 241, 9550, 14546, 6138, 10015, 56, 294, 5201, 4295, 29902, 31577, 61924, 110106, 171859, 42486, 83, 10, 17664, 6644...
[ 0.2437744140625, 0.1728515625, 0.1793212890625, 0.1046142578125, 0.164306640625, 0.231201171875, 0.0682373046875, 0.1356201171875, 0.2322998046875, 0.205322265625, 0.1302490234375, 0.1934814453125, 0.03509521484375, 0.17626953125, 0.0006103515625, 0.1585693359375, 0.1563720703125, ...
embed
69175141_c1
69175141
rust
1
let (tx, rx) = mpsc::channel(); | -------- consider giving this pattern the explicit type `(Sender<T>, std::sync::mpsc::Receiver<T>)`, with the type parameters specified how can I achieve this? Code signals: std::thread, std::sync::mpsc, macro_rules, packed_task, f:ident, arg:expr, packed_method_task, ins:ident, ins.$...
let (tx, rx) = mpsc::channel(); | -------- consider giving this pattern the explicit type `(Sender<T>, std::sync::mpsc::Receiver<T>)`, with the type parameters specified how can I achieve this? Code signals: std::thread, std::sync::mpsc, macro_rules, packed_task, f:ident, arg:expr, packed_method_task, ins:ident, ins.$...
[ -0.01123046875, 0.005859375, -0.01275634765625, 0.02734375, -0.020263671875, 0.02197265625, -0.0150146484375, -0.00323486328125, 0.00506591796875, -0.003326416015625, 0.01190185546875, -0.0026702880859375, -0.0035858154296875, -0.0026397705078125, -0.000308990478515625, 0.0125122070312...
[ 2633, 18, 425, 4, 67179, 2203, 9607, 10382, 17032, 8876, 58745, 110405, 16916, 68772, 903, 103510, 143726, 10644, 294, 23894, 618, 6138, 71, 12654, 238, 2676, 4332, 329, 14, 814, 70, 171859, 58735, 831, 69307, 28864, 26073, 7, 39116, 1117...
[ 0.191650390625, 0.07818603515625, 0.17919921875, 0.0186767578125, 0.224853515625, 0.0164031982421875, 0.0924072265625, 0.1304931640625, 0.1326904296875, 0.144287109375, 0.0150909423828125, 0.012847900390625, 0.084228515625, 0.08154296875, 0.06109619140625, 0.278076171875, 0.227661132...
embed
72509006_c2
72509006
rust
2
match i { // 0 => assert_eq!(nibble.get(), 2), // 1 => assert_eq!(nibble.get(), 1), // 2 => assert_eq!(nibble.get(), 4), // 3 => Code signals: Abstract, RefCell, Borrow, Iterator, Item, AsRef, Nibbler, Nibble, MSB, LSB, from_u8, Nibble::MSB, Nibble::LSB, Option, None, Self::Item, self.rest.take, or_else, self.inner.ne...
match i { // 0 => assert_eq!(nibble.get(), 2), // 1 => assert_eq!(nibble.get(), 1), // 2 => assert_eq!(nibble.get(), 4), // 3 => Code signals: Abstract, RefCell, Borrow, Iterator, Item, AsRef, Nibbler, Nibble, MSB, LSB, from_u8, Nibble::MSB, Nibble::LSB, Option, None, Self::Item, self.rest.take, or_else, self.inner.ne...
[ -0.039794921875, -0.0091552734375, 0.0025177001953125, 0.00347900390625, -0.005828857421875, -0.003204345703125, 0.004608154296875, 0.003692626953125, 0.006072998046875, 0.0289306640625, 0.0228271484375, 0.017578125, -0.00445556640625, -0.004180908203125, 0.0091552734375, -0.0133666992...
[ 14858, 17, 10666, 4666, 757, 44357, 237, 33657, 13, 864, 90295, 93, 73163, 5, 3794, 4958, 106, 4879, 116, 13956, 138, 28864, 26073, 7, 12, 233973, 53295, 441, 6796, 7422, 15555, 87, 720, 4597, 78426, 1301, 190015, 1520, 42, 16265, 571, ...
[ 0.26708984375, 0.162353515625, 0.0279083251953125, 0.071533203125, 0.19384765625, 0.1092529296875, 0.08477783203125, 0.2237548828125, 0.0928955078125, 0.221435546875, 0.090087890625, 0.1817626953125, 0.287109375, 0.022064208984375, 0.141357421875, 0.1243896484375, 0.1075439453125, ...
embed
43949612_c0
43949612
rust
0
Title: Redirect output of child process spawned from Rust Problem title: Redirect output of child process spawned from Rust Tags: io, rust, process Problem: Redirect output of child process spawned from Rust I need to redirect output of a spawned child process. This is what I tried but it doesn't work: Command::new(cmd...
Redirect output of child process spawned from Rust Redirect output of child process spawned from Rust io rust process Rust Redirect Command::new log_path as_str Stdio::piped Stdio::inherit Redirect output of child process spawned from Rust I need to redirect output of a spawned child process. This is what I tried but i...
[ 0.005584716796875, 0.0196533203125, -0.009765625, 0.0024871826171875, -0.01190185546875, -0.0032958984375, -0.0035400390625, -0.0125732421875, -0.01068115234375, 0.00823974609375, 0.00811767578125, 0.005462646484375, -0.0014801025390625, 0.0167236328125, -0.000324249267578125, -0.00628...
[ 853, 80581, 140992, 111, 29041, 9433, 5623, 7710, 297, 1295, 144222, 22995, 52648, 123573, 54936, 12684, 128405, 237, 9297, 2907, 5670, 1434, 20051, 3334, 217, 3871, 47, 456, 37842, 22027, 18, 4488 ]
[ 0.0977783203125, 0.26611328125, 0.253173828125, 0.052520751953125, 0.175048828125, 0.1898193359375, 0.1390380859375, 0.118896484375, 0.056365966796875, 0.1171875, 0.2464599609375, 0.1793212890625, 0.216552734375, 0.16650390625, 0.0694580078125, 0.1580810546875, 0.1678466796875, 0.0...
embed
74062588_c1
74062588
rust
1
macro that takes a specific key/val and simply inlines either a known value or an empty value, but as far as I can tell there isn't any way to match a macro on a specific identifier, only any identifier... Is there any way that I can move all these lookups from runtime to compile time? Code signals: Macro, std::str, V...
macro that takes a specific key/val and simply inlines either a known value or an empty value, but as far as I can tell there isn't any way to match a macro on a specific identifier, only any identifier... Is there any way that I can move all these lookups from runtime to compile time? Code signals: Macro, std::str, V...
[ -0.00970458984375, -0.016357421875, -0.0032958984375, -0.0032501220703125, 0.0030517578125, 0.0181884765625, 0.0380859375, -0.02783203125, 0.0079345703125, 0.040283203125, -0.01397705078125, 0.003936767578125, -0.003753662109375, -0.02734375, -0.01434326171875, -0.0106201171875, 0.00...
[ 111789, 51776, 29458, 22799, 1405, 42856, 23, 59801, 51529, 34292, 201505, 3917, 14858, 98, 42485, 56, 831, 25813, 756, 6713, 74854, 1295, 11675, 6032, 9969, 1340, 1733, 28864, 26073, 4727, 516, 6138, 71, 9297, 190060, 86769, 105748, 212003, ...
[ 0.28369140625, 0.1119384765625, 0.116943359375, 0.1651611328125, 0.1676025390625, 0.04803466796875, 0.1251220703125, 0.241943359375, 0.1456298828125, 0.1298828125, 0.1295166015625, 0.0623779296875, 0.2176513671875, 0.00994873046875, 0.1903076171875, 0.061370849609375, 0.0025329589843...
embed
70754394_c0
70754394
rust
0
Title: How to push String in String in Rust? Problem title: How to push String in String in Rust? Tags: rust, string-concatenation Problem: How to push String in String in Rust? fn main() { let mut str = "string".to_string(); // How do I push String to String? str.push_str(format!("{}", "new_string")); } So, how do I p...
How to push String in String in Rust? How to push String in String in Rust? rust string-concatenation How Rust to_string str.push_str new_string How to push String in String in Rust? So, how do I push the formatted string in str ? I don't want to concatenate. Concatenation is kinda' the same thing as push but I want to...
[ -0.0137939453125, 0.0076904296875, -0.01324462890625, 0.040771484375, 0.0042724609375, 0.03076171875, 0.01251220703125, -0.0029754638671875, 0.015380859375, -0.0024566650390625, 0.0189208984375, -0.03369140625, -0.0108642578125, -0.00168609619140625, 0.0081787109375, -0.01239013671875,...
[ 11249, 47, 25944, 23351, 214, 23, 144222, 52648, 79315, 2271, 4460, 33, 91693, 7704, 7332, 127, 9297, 3525, 3642, 54, 87, 9384, 3674, 3444, 158, 33478, 76, 67, 1657, 2320, 831, 64457 ]
[ 0.06280517578125, 0.08416748046875, 0.223388671875, 0.2205810546875, 0.140625, 0.0972900390625, 0.2451171875, 0.2149658203125, 0.244140625, 0.012603759765625, 0.125, 0.10107421875, 0.201416015625, 0.201904296875, 0.1375732421875, 0.1019287109375, 0.1798095703125, 0.06427001953125, ...
embed
71283507_c0
71283507
rust
0
Title: Is it a cleaner way to write the following code in rust? Problem title: Is it a cleaner way to write the following code in rust? Tags: rust Problem: Is it a cleaner way to write the following code in rust? for x in strategies { let mut flag = true; for y in x { if y { flag = false; break; } } if flag { // do som...
Is it a cleaner way to write the following code in rust? Is it a cleaner way to write the following code in rust? rust Is it a cleaner way to write the following code in rust? I really hate the use of the flag, and it adds unnecessary branch instructions. I am thinking if there is a way that we can execute // do someth...
[ -0.027587890625, 0.00537109375, 0.01202392578125, 0.01953125, -0.0023345947265625, 0.01513671875, 0.00555419921875, -0.0203857421875, 0.00188446044921875, 0.018798828125, 0.000637054443359375, 0.0361328125, -0.00921630859375, 0.01458740234375, -0.0062255859375, 0.00994873046875, 0.00...
[ 2071, 46622, 56, 3917, 33022, 25632, 18151, 23, 52648, 442, 10, 35463, 4527, 49938, 32845, 206, 167934, 71924, 4666, 54, 2174, 75414, 40956, 82230, 3638, 2301, 18, 36356 ]
[ 0.02777099609375, 0.2298583984375, 0.1640625, 0.06787109375, 0.1444091796875, 0.1068115234375, 0.177490234375, 0.134765625, 0.260009765625, 0.008636474609375, 0.012298583984375, 0.165771484375, 0.04388427734375, 0.2261962890625, 0.05181884765625, 0.02392578125, 0.128662109375, 0.11...
embed
60580754_c1
60580754
rust
1
std::vec::Vec<std::string::String>`, which does not implement the `Copy` trait ... 76 | for arg in args { | ---- | | | value moved here | help: consider borrowing to avoid moving into the for loop: `&args` ... 90 | ROOT_DIRECTORY = args.get(index + 1).unwrap(); | Is there any way for me to create a static copy of the v...
std::vec::Vec<std::string::String>`, which does not implement the `Copy` trait ... 76 | for arg in args { | ---- | | | value moved here | help: consider borrowing to avoid moving into the for loop: `&args` ... 90 | ROOT_DIRECTORY = args.get(index + 1).unwrap(); | Is there any way for me to create a static copy of the v...
[ 0.00555419921875, 0.0091552734375, -0.016845703125, 0.04150390625, -0.0078125, 0.024169921875, 0.0021209716796875, -0.02490234375, 0.01300048828125, -0.00537109375, -0.0126953125, 0.0103759765625, 0.0064697265625, 0.00213623046875, -0.01336669921875, -0.00604248046875, 0.000305175781...
[ 6138, 71, 35259, 12, 856, 3240, 271, 91693, 71713, 214, 3129, 14602, 959, 29479, 10625, 6493, 110106, 14810, 100, 79459, 23, 7, 112111, 34292, 109133, 3688, 4358, 16916, 3017, 15555, 71864, 98567, 40956, 1230, 61477, 2510, 627, 162727, 1232...
[ 0.157470703125, 0.146728515625, 0.24560546875, 0.002197265625, 0.174560546875, 0.224365234375, 0.1220703125, 0.1328125, 0.11669921875, 0.06890869140625, 0.033416748046875, 0.1192626953125, 0.1771240234375, 0.21875, 0.137939453125, 0.1998291015625, 0.226806640625, 0.2529296875, 0....
embed
75446912_c0
75446912
rust
0
Title: How to properly manage multithreading read and write access in Rust? Problem title: How to properly manage multithreading read and write access in Rust? Tags: multithreading, mutex, rust Problem: How to properly manage multithreading read and write access in Rust? I'm kind of confused by Arc and Mutex in rust. M...
How to properly manage multithreading read and write access in Rust? How to properly manage multithreading read and write access in Rust? multithreading mutex rust How Rust Arc Mutex How to properly manage multithreading read and write access in Rust? I'm kind of confused by Arc and Mutex in rust. My problem is the fol...
[ -0.00109100341796875, 0.009521484375, -0.0096435546875, 0.007080078125, -0.00567626953125, 0.005889892578125, 0.017333984375, 0.006561279296875, -0.00799560546875, -0.00022125244140625, 0.0023956298828125, -0.0181884765625, 0.00665283203125, 0.0230712890625, 0.005401611328125, -0.00509...
[ 11249, 47, 155965, 111240, 3869, 65847, 11, 6238, 12301, 136, 33022, 17203, 23, 144222, 842, 24371, 52648, 51210, 2758, 55681, 2967, 1528, 5608, 4527, 653, 21748, 86997, 4734, 106, 1556, 2053, 3789, 831, 69307 ]
[ 0.0760498046875, 0.05548095703125, 0.12548828125, 0.195556640625, 0.195556640625, 0.2010498046875, 0.10986328125, 0.1192626953125, 0.2010498046875, 0.11865234375, 0.171630859375, 0.178466796875, 0.0811767578125, 0.2783203125, 0.130615234375, 0.25, 0.235595703125, 0.182861328125, ...
embed
70855252_c0
70855252
rust
0
Title: Is it a good practice to always return a Result&lt;T, E&gt; from functions? Problem title: Is it a good practice to always return a Result&lt;T, E&gt; from functions? Tags: rust Problem: Is it a good practice to always return a Result from functions? I realize that I always use Result when I need to return somet...
Is it a good practice to always return a Result&lt;T, E&gt; from functions? Is it a good practice to always return a Result&lt;T, E&gt; from functions? rust functions Result Error Is it a good practice to always return a Result from functions? I realize that I always use Result when I need to return something from a fu...
[ -0.0010223388671875, 0.00909423828125, 0.0166015625, -0.0091552734375, 0.0269775390625, -0.000240325927734375, 0.0002288818359375, -0.03173828125, -0.00372314453125, -0.0206298828125, -0.0003948211669921875, -0.0194091796875, -0.01104736328125, 0.010498046875, -0.00122833251953125, 0.0...
[ 2071, 10, 4127, 41361, 11343, 30646, 126684, 1277, 618, 241, 5386, 1295, 32354, 47, 52648, 212059, 442, 92154, 4527, 3229, 3871, 115723, 144222, 34754, 5608, 2292, 71, 13648, 190647, 18499 ]
[ 0.01812744140625, 0.09027099609375, 0.14501953125, 0.219482421875, 0.1405029296875, 0.229736328125, 0.282470703125, 0.014892578125, 0.0977783203125, 0.064697265625, 0.0760498046875, 0.1375732421875, 0.1949462890625, 0.0528564453125, 0.20361328125, 0.2017822265625, 0.05029296875, 0....
embed
78524254_c0
78524254
rust
0
Title: How should I modify the rust program to run it? Problem title: How should I modify the rust program to run it? Tags: rust Problem: How should I modify the rust program to run it? this code can not run fn main() { let a = 2; let b = 3; println!("{}",sum1(&a,&b)); } fn sum1<T:std::ops::Add<Output = T>>(a:&T,b:&T)-...
How should I modify the rust program to run it? How should I modify the rust program to run it? rust How sum1 T:std::ops::Add Output i32 How should I modify the rust program to run it? this code can not run use (a:T,b:T) can run,and the following code can run too
[ -0.006072998046875, 0.0264892578125, 0.01544189453125, 0.031982421875, -0.01055908203125, -0.005218505859375, -0.00738525390625, 0.013427734375, -0.00106048583984375, -0.028564453125, 0.01287841796875, -0.0322265625, 0.00360107421875, 0.00830078125, 0.0294189453125, -0.0091552734375, ...
[ 11249, 5608, 2811, 40383, 52648, 1528, 47, 11675, 442, 10554, 418, 384, 271, 71, 68818, 284, 4028, 13538, 7077, 17, 6460, 903, 18151, 831, 959, 4527, 11, 618, 275, 12, 16, 25632 ]
[ 0.06243896484375, 0.0888671875, 0.1639404296875, 0.1630859375, 0.281005859375, 0.2203369140625, 0.09716796875, 0.154541015625, 0.01361083984375, 0.1820068359375, 0.064697265625, 0.0826416015625, 0.10186767578125, 0.0631103515625, 0.1767578125, 0.015106201171875, 0.12890625, 0.12365...
embed
69234716_c1
69234716
rust
1
Player 2 : George - George I don't know what am I doing wrong because if I test the same code but without the match expression the program actually stops and lets me enter the first name (player_1) before asking me for the second one (player_2). Maybe match is not the way to do it and I should rather use an if/else ? ...
Player 2 : George - George I don't know what am I doing wrong because if I test the same code but without the match expression the program actually stops and lets me enter the first name (player_1) before asking me for the second one (player_2). Maybe match is not the way to do it and I should rather use an if/else ? ...
[ -0.0257568359375, -0.006683349609375, -0.01220703125, 0.0181884765625, 0.01031494140625, 0.0223388671875, -0.01544189453125, 0.024169921875, 0.0067138671875, -0.0015716552734375, 0.0341796875, 0.002471923828125, 0.004486083984375, 0.000690460205078125, 0.0206298828125, -0.03271484375, ...
[ 60560, 116, 152, 14787, 20, 3714, 444, 87, 20594, 44691, 2174, 3034, 5701, 18151, 1284, 15490, 70, 14858, 125195, 1528, 20653, 7279, 7, 2633, 163, 30957, 5117, 9351, 139570, 115187, 16, 8108, 113292, 100, 17932, 1632, 10461, 83425, 3917, ...
[ 0.242919921875, 0.1973876953125, 0.049713134765625, 0.263427734375, 0.038970947265625, 0.0794677734375, 0.0270233154296875, 0.003570556640625, 0.0654296875, 0.12744140625, 0.1190185546875, 0.1783447265625, 0.1055908203125, 0.2137451171875, 0.00048828125, 0.123779296875, 0.02044677734...
embed
46885292_c0
46885292
rust
0
Title: How to launch a Rust application from Visual Studio Code? Problem title: How to launch a Rust application from Visual Studio Code? Tags: rust-language-server, rust-cargo, visual-studio-code, rust Problem: How to launch a Rust application from Visual Studio Code? I have installed the Visual Studio Code extensions...
How to launch a Rust application from Visual Studio Code? How to launch a Rust application from Visual Studio Code? rust-language-server rust-cargo visual-studio-code rust Visual How Rust Studio How to launch a Rust application from Visual Studio Code? I have installed the Visual Studio Code extensions for Rust: I want...
[ 0.02001953125, 0.0189208984375, 0.008544921875, 0.025390625, 0.0029754638671875, -0.00162506103515625, -0.010986328125, 0.00738525390625, 0.00078582763671875, -0.00244140625, -0.0001811981201171875, -0.00860595703125, 0.00078582763671875, 0.027099609375, -0.0034027099609375, -0.0039978...
[ 11249, 47, 83184, 10, 144222, 38415, 1295, 73372, 22968, 28864, 52648, 196651, 39642, 3284, 519, 21176, 52629, 40899, 20600, 111938, 7, 3444, 11675, 759, 13452, 18, 28219, 7440, 18158, 28398, 9598, 92, 45367, 66211, 59994, 262, 1021, 7136, ...
[ 0.111083984375, 0.06256103515625, 0.22998046875, 0.0672607421875, 0.281005859375, 0.2303466796875, 0.1441650390625, 0.226806640625, 0.2401123046875, 0.2374267578125, 0.2119140625, 0.10247802734375, 0.109375, 0.119873046875, 0.1546630859375, 0.1759033203125, 0.1826171875, 0.16857910...
embed
63148876_c0
63148876
rust
0
Title: FFMPEG input options in rust Problem title: FFMPEG input options in rust Tags: ffmpeg, rust, rtsp Problem: FFMPEG input options in rust I want to decode rtsp stream like that: ffplay -max_delay 50000 "rtsp://name:password@1.2.3.4:port" . So I tried use this crate - https://crates.io/crates/ffmpeg-next , but I su...
FFMPEG input options in rust FFMPEG input options in rust ffmpeg rust rtsp FFMPEG max_delay name:password FFMPEG input options in rust I want to decode rtsp stream like that: ffplay -max_delay 50000 "rtsp://name:password@1.2.3.4:port" . So I tried use this crate - https://crates.io/crates/ffmpeg-next , but I succeeded ...
[ -0.0126953125, -0.0032196044921875, -0.001983642578125, 0.0107421875, 0.0107421875, -0.01904296875, 0.019775390625, -0.0096435546875, -0.00787353515625, -0.0150146484375, -0.0172119140625, -0.0419921875, 0.005950927734375, 0.0191650390625, -0.0245361328125, 0.005218505859375, 0.00747...
[ 106076, 9088, 25176, 107730, 50717, 23, 52648, 26472, 19738, 177, 3198, 7008, 18389, 112, 5259, 13409, 47416, 3444, 8, 40899, 75973, 1884, 450, 20706, 24084, 190, 28568, 48400, 172508, 6982, 58, 37842, 4527, 903, 501, 17957, 187906, 846, 49...
[ 0.14404296875, 0.1318359375, 0.166015625, 0.1973876953125, 0.1953125, 0.055633544921875, 0.26171875, 0.1326904296875, 0.17529296875, 0.0919189453125, 0.158935546875, 0.211181640625, 0.1405029296875, 0.15625, 0.2313232421875, 0.060516357421875, 0.093017578125, 0.0406494140625, 0.1...
embed
78288310_c1
78288310
rust
1
self.draw(); | ^^^^ second mutable borrow occurs here 32 | self.do_something(card1, card2); | ----- first borrow later used here This link can quickly show the error, playground . Can you help me make some adjustments to correct the codes and keep the functionality of the three functions? Thanks! I want to maintain al...
self.draw(); | ^^^^ second mutable borrow occurs here 32 | self.do_something(card1, card2); | ----- first borrow later used here This link can quickly show the error, playground . Can you help me make some adjustments to correct the codes and keep the functionality of the three functions? Thanks! I want to maintain al...
[ -0.0023956298828125, 0.01263427734375, 0.01318359375, -0.00433349609375, 0.01300048828125, 0.0140380859375, -0.00836181640625, 0.00457763671875, 0.0283203125, -0.01507568359375, -0.010009765625, 0.028076171875, -0.0010528564453125, 0.02099609375, 0.010009765625, -0.0206298828125, -0....
[ 15970, 86905, 16377, 15729, 17932, 842, 22819, 3017, 15555, 74918, 3688, 2789, 246, 43452, 64113, 38931, 418, 20596, 10461, 5117, 14432, 11814, 3126, 69405, 7639, 18499, 11301, 64330, 4358, 126596, 9035, 26785, 18151, 13695, 123309, 17262, 3235...
[ 0.16064453125, 0.2127685546875, 0.012908935546875, 0.0582275390625, 0.128662109375, 0.1219482421875, 0.16845703125, 0.16748046875, 0.2103271484375, 0.126953125, 0.095458984375, 0.181640625, 0.1004638671875, 0.03759765625, 0.127197265625, 0.1795654296875, 0.034088134765625, 0.169677...
embed
58674830_c0
58674830
rust
0
Title: How to clone an Option&lt;Rc&lt;_&gt;&gt; in Rust? Problem title: How to clone an Option&lt;Rc&lt;_&gt;&gt; in Rust? Tags: clone, rust Problem: How to clone an Option > in Rust? Say I have an Option of Rc : let x = Some(Rc::new(3)); If I need to make a clone, I can do: let y = Some(Rc::clone(&x.unwrap())); But i...
How to clone an Option&lt;Rc&lt;_&gt;&gt; in Rust? How to clone an Option&lt;Rc&lt;_&gt;&gt; in Rust? clone rust How Option Rust Some Rc::new Rc::clone x.unwrap x.clone How to clone an Option > in Rust? Say I have an Option of Rc : If I need to make a clone, I can do: But it seems there's also a short cut: Are there an...
[ -0.006683349609375, 0.0303955078125, 0.010986328125, 0.0262451171875, 0.0050048828125, -0.0189208984375, 0.0067138671875, -0.0179443359375, 0.0118408203125, 0.00860595703125, 0.0002994537353515625, -0.00001537799835205078, 0.0135498046875, -0.0026092529296875, 0.0072021484375, 0.003341...
[ 11249, 47, 20450, 86, 86769, 1052, 238, 5386, 23, 144222, 142, 52648, 31384, 627, 54936, 63499, 1022, 309, 13631, 977, 765, 111, 3871, 3249, 10, 831, 54, 16610, 59226, 60212, 50717, 70796 ]
[ 0.07208251953125, 0.038116455078125, 0.2108154296875, 0.1673583984375, 0.2381591796875, 0.04656982421875, 0.0860595703125, 0.03643798828125, 0.0880126953125, 0.228271484375, 0.054473876953125, 0.2049560546875, 0.007080078125, 0.05450439453125, 0.042266845703125, 0.1348876953125, 0.05...
embed
36333976_c0
36333976
rust
0
Title: What size buffer should be used for reading from a UDP socket? Problem title: What size buffer should be used for reading from a UDP socket? Tags: udp, buffer, rust, size, sockets Problem: What size buffer should be used for reading from a UDP socket? When reading data from a std::net::UdpSocket in Rust we use a...
What size buffer should be used for reading from a UDP socket? What size buffer should be used for reading from a UDP socket? udp buffer rust size sockets a What UDP std::net::UdpSocket recv_from Result SocketAddr What size buffer should be used for reading from a UDP socket? When reading data from a std::net::UdpSocke...
[ 0.003570556640625, 0.0244140625, 0.00634765625, 0.01263427734375, -0.0024871826171875, 0.007476806640625, 0.006591796875, -0.0147705078125, -0.00775146484375, 0.00634765625, 0.0003108978271484375, -0.038818359375, 0.005889892578125, 0.003143310546875, -0.0003032684326171875, -0.0163574...
[ 13267, 373, 18234, 5608, 11814, 16454, 1295, 345, 28399, 221, 27853, 1872, 254, 52648, 6138, 71, 1179, 1062, 8912, 21954, 334, 161063, 126684, 1061, 7569, 2053, 23, 144222, 4527, 6957, 903, 186, 75973, 25561 ]
[ 0.1905517578125, 0.1441650390625, 0.279296875, 0.063232421875, 0.079345703125, 0.1649169921875, 0.07647705078125, 0.059661865234375, 0.2047119140625, 0.10430908203125, 0.1673583984375, 0.1087646484375, 0.142578125, 0.188720703125, 0.1298828125, 0.09747314453125, 0.07464599609375, 0...
embed
26151293_c0
26151293
rust
0
Title: How to disable parallel execution in Rust? Problem title: How to disable parallel execution in Rust? Tags: rust, multithreading Problem: How to disable parallel execution in Rust? I need to prevent some programs from running in parallel (last time I checked there was RUST_THREADS=1 option but can't find any docs...
How to disable parallel execution in Rust? How to disable parallel execution in Rust? rust multithreading How Rust RUST_THREADS How to disable parallel execution in Rust? I need to prevent some programs from running in parallel (last time I checked there was RUST_THREADS=1 option but can't find any docs for it) because...
[ 0.0000743865966796875, -0.00179290771484375, -0.01953125, -0.0084228515625, -0.000186920166015625, 0.01177978515625, 0.005035400390625, -0.018798828125, 0.007415771484375, -0.0274658203125, 0.00112152099609375, 0.033935546875, -0.0030059814453125, 0.01361083984375, -0.00787353515625, 0...
[ 11249, 47, 2837, 2886, 95103, 71924, 1830, 23, 144222, 52648, 3869, 65847, 11, 627, 67699, 23415, 41519, 3871, 56282, 103391, 1295, 51042, 13526, 33000, 35829, 54, 229319, 1257, 44116, 1528, 33362, 12601, 159354, 3173, 11675, 4527, 5, 1176, ...
[ 0.077880859375, 0.068115234375, 0.11669921875, 0.1971435546875, 0.26025390625, 0.1947021484375, 0.12060546875, 0.091064453125, 0.25537109375, 0.19580078125, 0.09869384765625, 0.129150390625, 0.0234832763671875, 0.07373046875, 0.1693115234375, 0.0484619140625, 0.1468505859375, 0.034...
embed
68807035_c2
68807035
rust
2
, Loader, std::sync, Arc, unic_langid, LanguageIdentifier, LOCALES, fallback_language, core_locales, core.ftl, Removes, bundle.set_use_isolating, Debug, Clone, Config, dead_code, debug_mode, CURRENT_CONFIG.with, c.read, make_current, c.write, Arc::new, set_debug, writer.debug_mode, Arc::clone, config.debug_mode, set_la...
, Loader, std::sync, Arc, unic_langid, LanguageIdentifier, LOCALES, fallback_language, core_locales, core.ftl, Removes, bundle.set_use_isolating, Debug, Clone, Config, dead_code, debug_mode, CURRENT_CONFIG.with, c.read, make_current, c.write, Arc::new, set_debug, writer.debug_mode, Arc::clone, config.debug_mode, set_la...
[ -0.0079345703125, 0.0191650390625, -0.00531005859375, 0.010986328125, -0.00494384765625, -0.0042724609375, 0.0203857421875, 0.0003509521484375, -0.005096435546875, -0.008544921875, 0.00156402587890625, 0.021484375, -0.005889892578125, -0.0242919921875, 0.0238037109375, 0.00933837890625...
[ 6, 4, 2091, 38970, 6138, 71, 12, 12654, 238, 51210, 51, 1771, 3066, 532, 83658, 37379, 85789, 230588, 6706, 6817, 12620, 196651, 56458, 98908, 90, 2480, 141, 181139, 57134, 133, 3509, 4032, 84804, 1916, 262, 85779, 51053, 86, 139403, 177,...
[ 0.019073486328125, 0.072998046875, 0.11962890625, 0.1898193359375, 0.1842041015625, 0.138916015625, 0.047515869140625, 0.1697998046875, 0.0565185546875, 0.211669921875, 0.1259765625, 0.1334228515625, 0.1373291015625, 0.1363525390625, 0.171630859375, 0.1500244140625, 0.153564453125, ...
embed
69601843_c0
69601843
rust
0
Title: Variable name depending on a value Problem title: Variable name depending on a value Tags: rust Problem: Variable name depending on a value I would like to create as many vecs according to a variable in a for loop. Is there an easy way? In the example below, I would like to get 2 different Vec, the first called ...
Variable name depending on a value Variable name depending on a value rust Variable vec_i Vec i32 with_capacity Variable name depending on a value I would like to create as many vecs according to a variable in a for loop. Is there an easy way? In the example below, I would like to get 2 different Vec, the first called ...
[ 0.0091552734375, 0.0047607421875, -0.0380859375, 0.01336669921875, 0.00885009765625, 0.0089111328125, 0.0026092529296875, 0.0150146484375, 0.00244140625, 0.0255126953125, 0.00007867813110351562, -0.021484375, -0.01239013671875, 0.0072021484375, 0.0015411376953125, -0.002410888671875, ...
[ 84572, 2886, 9351, 8, 96819, 98, 34292, 52648, 22834, 14, 52884, 17, 6460, 678, 76009, 2806, 1884, 28282, 237, 5941, 7, 59499, 47, 77336, 23, 100, 40956, 23468, 3917, 27781, 35064, 2046, 116, 12921, 5117, 35839, 2389, 136, 17932, 115187, ...
[ 0.210693359375, 0.138427734375, 0.2069091796875, 0.07830810546875, 0.1563720703125, 0.1212158203125, 0.2109375, 0.225341796875, 0.26904296875, 0.06549072265625, 0.285400390625, 0.027801513671875, 0.1875, 0.061492919921875, 0.140625, 0.0372314453125, 0.123291015625, 0.1361083984375,...
embed
72416738_c0
72416738
rust
0
Title: Pointer iteration issue Problem title: Pointer iteration issue Tags: rust Problem: Pointer iteration issue I try to iterate pointer from an allocated array. Consider this example: let layout = Layout::array::<u32>(5).unwrap(); let mut ptr = alloc(layout) as *mut u32; let base = ptr; let a = *base.add(0); let b =...
Pointer iteration issue Pointer iteration issue rust Pointer Layout::array u32 ptr.add base.add Pointer iteration issue I try to iterate pointer from an allocated array. Consider this example: result is: a : 10 b : 100 c : 0 d : 200 e : 0 What did I mistake, or is it a bug?
[ 0.006378173828125, -0.00494384765625, 0.003692626953125, 0.00665283203125, -0.0252685546875, 0.003082275390625, -0.024169921875, 0.00141143798828125, 0.01177978515625, -0.01177978515625, -0.00133514404296875, -0.0048828125, 0.0218505859375, 0.01324462890625, 0.004730224609375, -0.01080...
[ 41097, 56, 17, 720, 2320, 31089, 52648, 211032, 19305, 53, 75, 6460, 27037, 42, 4028, 3647, 9790, 8560, 67, 6275, 1295, 144, 116292, 10298, 137399, 27781, 16750, 10, 152, 209, 876, 805, 501, 757, 104, 1781, 28, 121742, 54608 ]
[ 0.26025390625, 0.1895751953125, 0.09088134765625, 0.278564453125, 0.04913330078125, 0.171142578125, 0.2386474609375, 0.206298828125, 0.1197509765625, 0.1207275390625, 0.06317138671875, 0.1922607421875, 0.03680419921875, 0.069580078125, 0.08447265625, 0.1693115234375, 0.10186767578125...
embed
63846516_c1
63846516
rust
1
)', src/lib.rs:40:54 How do I tell serde_json to use Incline 's implementation of std::fmt::Display::fmt to turn the Incline::new(4,3) into "4:3" ? Code signals: Using, serde_json, Serialize, Deserialize, std::collections::BTreeMap, std::fmt, Debug, PartialEq, PartialOrd, Ord, Incline, fmt::Display, fmt::Formatter, fmt...
)', src/lib.rs:40:54 How do I tell serde_json to use Incline 's implementation of std::fmt::Display::fmt to turn the Incline::new(4,3) into "4:3" ? Code signals: Using, serde_json, Serialize, Deserialize, std::collections::BTreeMap, std::fmt, Debug, PartialEq, PartialOrd, Ord, Incline, fmt::Display, fmt::Formatter, fmt...
[ 0.00848388671875, 0.0054931640625, 0.007568359375, -0.0023040771484375, -0.0174560546875, -0.004791259765625, 0.00946044921875, -0.004791259765625, -0.01519775390625, 0.0255126953125, 0.027099609375, 0.01312255859375, -0.0076904296875, 0.0235595703125, 0.0294189453125, 0.017333984375, ...
[ 1388, 19437, 5612, 4295, 22932, 34417, 11249, 14192, 520, 112, 170, 1681, 4527, 8942, 2256, 208124, 6138, 71, 420, 39, 18, 44456, 20706, 15504, 54936, 105801, 21320, 3934, 617, 12, 363, 28864, 26073, 345, 135188, 20650, 5581, 25435, 119066,...
[ 0.013092041015625, 0.05230712890625, 0.1063232421875, 0.0948486328125, 0.01666259765625, 0.0936279296875, 0.0340576171875, 0.151123046875, 0.171630859375, 0.2408447265625, 0.1285400390625, 0.172607421875, 0.0843505859375, 0.140869140625, 0.2783203125, 0.163330078125, 0.1695556640625,...
embed
70226439_c0
70226439
rust
0
Title: Fail to use datetime with deadpool-postgres Problem title: Fail to use datetime with deadpool-postgres Tags: postgresql, rust Problem: Fail to use datetime with deadpool-postgres Code signals: Fail, with-chrono-0_4, Client, db_pool.get, client.transaction, transaction.query_one, SELECT, WHERE, host_id, host_name...
Fail to use datetime with deadpool-postgres Fail to use datetime with deadpool-postgres postgresql rust Fail with-chrono-0_4 Client db_pool.get client.transaction transaction.query_one SELECT WHERE host_id host_name row.get host_description chrono::DateTime chrono::offset::Utc system:0 arbiter:0 Rust chrono::datetime::...
[ 0.0042724609375, 0.00396728515625, 0.00537109375, 0.01348876953125, 0.006378173828125, -0.0311279296875, -0.0018768310546875, -0.0118408203125, 0.019775390625, -0.0269775390625, -0.0019073486328125, 0.000020623207092285156, 0.001190185546875, 0.01165771484375, -0.0022125244140625, 0.02...
[ 190355, 4527, 5622, 6032, 678, 103494, 20740, 4594, 17562, 47, 1305, 99247, 52648, 101966, 31, 23320, 617, 91732, 40041, 3794, 23282, 30145, 44713, 124161, 3630, 6755, 144832, 27980, 532, 15555, 59478, 17656, 5831, 86291, 70059, 16713, 5426, ...
[ 0.172607421875, 0.1055908203125, 0.158447265625, 0.234619140625, 0.07861328125, 0.0936279296875, 0.221923828125, 0.083251953125, 0.185546875, 0.0202789306640625, 0.04925537109375, 0.133544921875, 0.1898193359375, 0.110595703125, 0.08978271484375, 0.048858642578125, 0.110107421875, ...
embed
71675110_c0
71675110
rust
0
Title: Can I declare a function or a struct which can take different types? Problem title: Can I declare a function or a struct which can take different types? Tags: rust Problem: Can I declare a function or a struct which can take different types? Code signals: Can, call_clientd, Result, ResBody, reqwest::Error, serde...
Can I declare a function or a struct which can take different types? Can I declare a function or a struct which can take different types? rust Can call_clientd Result ResBody reqwest::Error serde::ser::Serialize Sized Client::new res.json args.command Commands::Info Commands::Pending Commands::Spend Commands::Reissue C...
[ 0.01263427734375, 0.0205078125, 0.0015869140625, 0.007354736328125, -0.006927490234375, -0.01019287109375, -0.00151824951171875, -0.015869140625, 0.007080078125, 0.00634765625, 0.004913330078125, -0.0179443359375, -0.0057373046875, -0.00830078125, 0.0018463134765625, 0.004852294921875,...
[ 4171, 87, 159978, 32354, 707, 36716, 831, 5646, 12921, 52895, 52648, 11782, 222978, 71, 126684, 9624, 12647, 1459, 456, 864, 25617, 18468, 31611, 520, 112, 2189, 25435, 119066, 29367, 91732, 3332, 170, 1681, 79459, 12018, 123573, 93147, 76114...
[ 0.1097412109375, 0.05267333984375, 0.268310546875, 0.2191162109375, 0.059600830078125, 0.2252197265625, 0.107421875, 0.1412353515625, 0.180908203125, 0.2471923828125, 0.24951171875, 0.1361083984375, 0.2110595703125, 0.0867919921875, 0.163818359375, 0.07611083984375, 0.1199951171875, ...
embed
76230179_c1
76230179
rust
1
2 › rustc: 1.68.2 › cargo: 1.68.2 › Rust toolchain: stable-x86_64-pc-windows-msvc App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:1420/ › framework: SolidJS › bundler: Vite App directory structure ├─ .git ├─ .vscode ├─ dist ├─ node_modules ├─ public ├─ src └─ src-tauri Code signals:...
2 › rustc: 1.68.2 › cargo: 1.68.2 › Rust toolchain: stable-x86_64-pc-windows-msvc App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:1420/ › framework: SolidJS › bundler: Vite App directory structure ├─ .git ├─ .vscode ├─ dist ├─ node_modules ├─ public ├─ src └─ src-tauri Code signals:...
[ -0.00921630859375, 0.0223388671875, -0.0031890869140625, 0.01068115234375, 0.01202392578125, 0.02001953125, -0.010498046875, -0.016357421875, 0.00113677978515625, 0.003936767578125, 0.01470947265625, -0.0191650390625, 0.0025787353515625, 0.04150390625, -0.00531005859375, 0.019775390625...
[ 116, 5068, 52648, 238, 12, 51748, 128423, 33362, 144222, 55516, 115097, 144142, 425, 15276, 13307, 57095, 229792, 4432, 66357, 5659, 45367, 50986, 57134, 133, 313, 9434, 51, 3509, 45, 271, 481, 46295, 33245, 683, 10519, 98908, 40294, 22635, ...
[ 0.0711669921875, 0.006500244140625, 0.2357177734375, 0.182373046875, 0.0986328125, 0.170654296875, 0.211669921875, 0.2919921875, 0.3134765625, 0.158447265625, 0.2177734375, 0.2410888671875, 0.007843017578125, 0.2188720703125, 0.1981201171875, 0.12646484375, 0.138427734375, 0.062805...
embed
73173120_c0
73173120
rust
0
Title: What does Box::new actually do in this code snippet in Rust? Problem title: What does Box::new actually do in this code snippet in Rust? Tags: rust Problem: What does Box::new actually do in this code snippet in Rust? Why does it use Box::new to place a BufReader object into a Box ? Why doesn't just simply use t...
What does Box::new actually do in this code snippet in Rust? What does Box::new actually do in this code snippet in Rust? rust What Box::new Rust BufReader Box BufReader::new BufRead fs::File::open file.txt What does Box::new actually do in this code snippet in Rust? Why does it use Box::new to place a BufReader object...
[ 0.0274658203125, -0.000431060791015625, 0.018798828125, 0.0035247802734375, 0.006011962890625, 0.00121307373046875, 0.00457763671875, 0.006317138671875, -0.00274658203125, 0.0255126953125, -0.00927734375, -0.01470947265625, 0.00099945068359375, -0.006256103515625, 0.01123046875, -0.015...
[ 4865, 14602, 27271, 12, 54936, 20653, 54, 18151, 93, 58134, 144222, 903, 23, 52648, 667, 420, 31345, 56, 174350, 59636, 11435, 124326, 44084, 4527, 47, 3687, 36746, 3934, 30646, 34292 ]
[ 0.0511474609375, 0.05828857421875, 0.26806640625, 0.10455322265625, 0.2445068359375, 0.09716796875, 0.0841064453125, 0.099853515625, 0.027618408203125, 0.073486328125, 0.2030029296875, 0.010894775390625, 0.002288818359375, 0.15673828125, 0.094970703125, 0.1195068359375, 0.21228027343...
embed
42289590_c0
42289590
rust
0
Title: How are foreign thread-local global variables accessed in Rust? Problem title: How are foreign thread-local global variables accessed in Rust? Tags: rust, multithreading, ffi Problem: How are foreign thread-local global variables accessed in Rust? For each of the following thread-local storage implementations, h...
How are foreign thread-local global variables accessed in Rust? How are foreign thread-local global variables accessed in Rust? rust multithreading ffi How Rust How are foreign thread-local global variables accessed in Rust? For each of the following thread-local storage implementations, how can an external thread-loca...
[ 0.035400390625, -0.00121307373046875, 0.000858306884765625, -0.00799560546875, 0.0113525390625, -0.0034027099609375, 0.018798828125, 0.016845703125, -0.01312255859375, -0.0206298828125, 0.00836181640625, -0.008544921875, -0.00020885467529296875, -0.00010776519775390625, 0.024658203125, ...
[ 11249, 110613, 86997, 98908, 7964, 77336, 7, 17203, 297, 144222, 52648, 3869, 65847, 11, 24500, 23, 132096, 208124, 3642, 173591, 186, 103391, 5570, 191619, 172554, 9969, 34759, 35773, 313, 1662, 22109, 238, 75137, 111938, 915, 927, 39116, 37...
[ 0.08740234375, 0.1790771484375, 0.190673828125, 0.14794921875, 0.146484375, 0.2437744140625, 0.03900146484375, 0.143310546875, 0.03985595703125, 0.257568359375, 0.2060546875, 0.0989990234375, 0.141845703125, 0.0123291015625, 0.192138671875, 0.038421630859375, 0.141845703125, 0.0557...
embed
48236838_c0
48236838
rust
0
Title: How to convert DateTime::now() into NaiveDateTime? Problem title: How to convert DateTime::now() into NaiveDateTime? Tags: datetime, rust, timestamp Problem: How to convert DateTime::now() into NaiveDateTime? I'm using Diesel and chrono. In my model I have a field of type NaiveDateTime which contains the now() ....
How to convert DateTime::now() into NaiveDateTime? How to convert DateTime::now() into NaiveDateTime? datetime rust timestamp How DateTime::now NaiveDateTime DateTime Utc::now How to convert DateTime::now() into NaiveDateTime? I'm using Diesel and chrono. In my model I have a field of type NaiveDateTime which contains ...
[ -0.01806640625, -0.00604248046875, 0.0242919921875, -0.0137939453125, -0.0093994140625, -0.01055908203125, 0.00653076171875, -0.00445556640625, 0.0057373046875, -0.0634765625, 0.0032958984375, 0.0067138671875, 0.0030670166015625, 0.02099609375, 0.00830078125, -0.0234375, -0.019042968...
[ 11249, 47, 96760, 25512, 70059, 12, 35613, 132, 3934, 353, 5844, 86291, 32, 5622, 6032, 52648, 1733, 590, 2676, 3994, 238, 17368, 101114, 136, 17656, 5831, 3299, 44457, 10644, 70541, 5036, 33306, 22027, 18, 765, 32354, 21373, 7440, 14602, ...
[ 0.135009765625, 0.0863037109375, 0.2216796875, 0.2125244140625, 0.28466796875, 0.07275390625, 0.28662109375, 0.0892333984375, 0.14794921875, 0.2010498046875, 0.263916015625, 0.2078857421875, 0.016387939453125, 0.123779296875, 0.210205078125, 0.2425537109375, 0.0653076171875, 0.0954...
embed
65940510_c0
65940510
rust
0
Title: Could Java be made to run without a GC Problem title: Could Java be made to run without a GC Tags: rust, java Problem: Could Java be made to run without a GC I can't find much online on this but here is my thought, a language like rust analyses on compile when to free objects from memory. Why can't the same be d...
Could Java be made to run without a GC Could Java be made to run without a GC rust java Could Java Could Java be made to run without a GC I can't find much online on this but here is my thought, a language like rust analyses on compile when to free objects from memory. Why can't the same be done with Java then we don't...
[ -0.00171661376953125, 0.04345703125, 0.0010986328125, 0.0130615234375, -0.00408935546875, 0.01239013671875, -0.02734375, 0.0260009765625, -0.01214599609375, -0.0164794921875, 0.00007104873657226562, 0.00848388671875, -0.003143310546875, 0.0252685546875, -0.0013885498046875, 0.005157470...
[ 191147, 41925, 7228, 47, 11675, 15490, 10, 69657, 186, 52648, 79, 330, 17569, 46876, 51422, 98, 9969, 1340, 3229, 4092, 36746, 1295, 98323, 831, 678, 3871, 3671, 402, 43799, 748, 552, 96704, 5809, 34759, 111240, 8108, 6032 ]
[ 0.0977783203125, 0.255615234375, 0.122314453125, 0.0251007080078125, 0.1380615234375, 0.15771484375, 0.035400390625, 0.2030029296875, 0.0157318115234375, 0.2181396484375, 0.1424560546875, 0.16455078125, 0.032012939453125, 0.136962890625, 0.1932373046875, 0.03631591796875, 0.147827148...
embed
37042634_c0
37042634
rust
0
Title: Get the underlying variable of an enum Problem title: Get the underlying variable of an enum Tags: rust Problem: Get the underlying variable of an enum My simplified code: enum MyEnum { A(u32), B(String), C(i32), } pub struct MyStruct { aa: String, bb: u16, my_enum: MyEnum, } let my_struct1 = MyStruct { /*...*/ ...
Get the underlying variable of an enum Get the underlying variable of an enum rust Get MyEnum u32 i32 MyStruct u16 my_enum my_struct1 my_struct1.my_enum Get the underlying variable of an enum My simplified code: How can I get the underlying variable of my_struct1.my_enum which could be a u32 , String or i32 . Is it onl...
[ -0.00830078125, -0.004302978515625, -0.0087890625, 0.0296630859375, 0.017578125, 0.0213623046875, 0.002288818359375, -0.0037384033203125, 0.003936767578125, -0.00970458984375, 0.020751953125, -0.004241943359375, 0.00860595703125, 0.0108642578125, 0.0152587890625, -0.0035552978515625, ...
[ 20779, 70, 1379, 538, 214, 77336, 111, 22, 316, 52648, 2646, 647, 2606, 75, 6460, 17, 71713, 18190, 18, 2485, 759, 33, 36716, 418, 1176, 112892, 1029, 297, 18151, 831, 2046, 5809, 23351, 4734, 390, 103510, 14858 ]
[ 0.1165771484375, 0.066162109375, 0.22119140625, 0.210205078125, 0.1124267578125, 0.27001953125, 0.0303955078125, 0.1539306640625, 0.2509765625, 0.263916015625, 0.1092529296875, 0.108154296875, 0.27783203125, 0.0799560546875, 0.22119140625, 0.044708251953125, 0.09326171875, 0.072692...
embed
65016065_c0
65016065
rust
0
Title: How to use Ruplacer in another function (Rust) Problem title: How to use Ruplacer in another function (Rust) Tags: string, rust, replace Problem: How to use Ruplacer in another function (Rust) I've tried to write a function to replace string in a directory. And I founded a performance library written in Rust. ht...
How to use Ruplacer in another function (Rust) How to use Ruplacer in another function (Rust) string rust replace How Ruplacer Rust How to use Ruplacer in another function (Rust) I've tried to write a function to replace string in a directory. And I founded a performance library written in Rust. https://github.com/Tank...
[ -0.01116943359375, -0.004119873046875, -0.006195068359375, 0.0244140625, -0.0048828125, 0.0128173828125, 0.00193023681640625, 0.0003814697265625, 0.01104736328125, -0.0184326171875, -0.01361083984375, 0.01953125, -0.01165771484375, -0.00518798828125, 0.022216796875, -0.007415771484375,...
[ 11249, 4527, 4518, 23935, 42, 23, 15700, 32354, 92141, 18, 79315, 52648, 91995, 144222, 37842, 33022, 47, 14364, 14037, 23718, 35773, 1294, 59121, 15769, 32102, 78673, 1728, 95795, 882, 209806, 43240, 10927, 831, 959, 114122, 1884 ]
[ 0.0780029296875, 0.1295166015625, 0.22314453125, 0.2393798828125, 0.20068359375, 0.0943603515625, 0.09814453125, 0.209228515625, 0.15966796875, 0.1298828125, 0.2056884765625, 0.255126953125, 0.1719970703125, 0.259521484375, 0.0222015380859375, 0.06048583984375, 0.007843017578125, 0...
embed
70936236_c0
70936236
rust
0
Title: What is the purpose of `b` here? Problem title: What is the purpose of `b` here? Tags: rust, syntax Problem: What is the purpose of `b` here? In this code: fn main() { use std::collections::hash_map::DefaultHasher; use std::hash::Hasher; let mut hasher = DefaultHasher::new(); println!("Hash is {:x}!", hasher.fin...
What is the purpose of `b` here? What is the purpose of `b` here? rust syntax What std::collections::hash_map::DefaultHasher std::hash::Hasher DefaultHasher::new hasher.write_u32 hasher.write_u8 hasher.write Huh Hash hasher.finish What is the purpose of `b` here? In this code: What's the point of b ? What does it do?
[ -0.01190185546875, 0.0047607421875, 0.00506591796875, 0.0018768310546875, -0.01544189453125, 0.0106201171875, -0.00189208984375, -0.034912109375, 0.00592041015625, 0.0252685546875, -0.023681640625, 0.00750732421875, 0.0341796875, 0.019287109375, -0.0009613037109375, -0.00958251953125, ...
[ 4865, 83, 70, 60042, 111, 275, 3688, 52648, 6002, 86531, 6138, 71, 196352, 17514, 126234, 62346, 187423, 11, 7136, 6495, 42687, 262, 1021, 54936, 1556, 3334, 5, 18781, 6460, 1019, 145074, 162087, 5983, 903, 18151, 6275, 876, 14602, 442, 5...
[ 0.0777587890625, 0.08123779296875, 0.0909423828125, 0.213623046875, 0.1527099609375, 0.2352294921875, 0.16064453125, 0.249755859375, 0.10498046875, 0.1387939453125, 0.144287109375, 0.08514404296875, 0.16845703125, 0.1319580078125, 0.1614990234375, 0.13427734375, 0.0936279296875, 0....
embed
57203009_c0
57203009
rust
0
Title: Implementing slice for custom type Problem title: Implementing slice for custom type Tags: rust Problem: Implementing slice for custom type I have this struct: struct Test { data: Vec<u8>, } impl Test { fn new() -> Self { return Test { data: Vec::new() }; } } let a = Test::new(); // populate something into a... ...
Implementing slice for custom type Implementing slice for custom type rust Implementing Test Vec Vec::new Test::new Implementing slice for custom type I have this struct: I would like to implement slice for this type, when doing e.g. &a[2..5] , it returns a slice pointing to 2..5 of its internal data . Is it possible t...
[ 0.009033203125, 0.021484375, 0.00726318359375, 0.0267333984375, -0.017822265625, 0.01019287109375, 0.00689697265625, -0.003997802734375, 0.006500244140625, 0.0169677734375, 0.005126953125, -0.0045166015625, -0.0189208984375, -0.00286865234375, -0.00188446044921875, 0.00193023681640625,...
[ 153941, 214, 91, 13348, 100, 114122, 10644, 52648, 8647, 52884, 54936, 765, 903, 36716, 2806, 1884, 29479, 3229, 20594, 619, 11, 5442, 758, 30646, 6275, 47, 787, 5, 111, 70796, 2053, 2071, 7722, 54, 23, 144222 ]
[ 0.2225341796875, 0.0440673828125, 0.141357421875, 0.283447265625, 0.09521484375, 0.245361328125, 0.2491455078125, 0.250244140625, 0.139404296875, 0.162353515625, 0.0367431640625, 0.003692626953125, 0.03826904296875, 0.164794921875, 0.0142059326171875, 0.06182861328125, 0.238647460937...
embed
66735838_c1
66735838
rust
1
command line application in rust with multiple commands and options. I don't want to implement it all in a single file. What is a good pattern to follow here? Any help would be great, Thanks, Manthan Code signals: Clap, SomeHandler, App, app.subcommand, SubCommand::with_name, Displays, check_match, ArgMatches, matches...
command line application in rust with multiple commands and options. I don't want to implement it all in a single file. What is a good pattern to follow here? Any help would be great, Thanks, Manthan Code signals: Clap, SomeHandler, App, app.subcommand, SubCommand::with_name, Displays, check_match, ArgMatches, matches...
[ 0.0021209716796875, 0.0157470703125, -0.01446533203125, 0.0130615234375, -0.004547119140625, 0.01043701171875, 0.01806640625, -0.03173828125, 0.020751953125, 0.00799560546875, -0.002685546875, 0.007110595703125, -0.0009613037109375, 0.0311279296875, -0.0022125244140625, -0.007476806640...
[ 75101, 13315, 38415, 23, 52648, 678, 48716, 136, 50717, 18, 3444, 29479, 756, 11001, 11435, 4127, 103510, 28960, 3688, 4358, 1572, 21732, 28864, 26073, 7, 313, 6324, 31384, 135679, 603, 5659, 4027, 22144, 277, 12018, 8273, 10770, 76228, 116...
[ 0.255859375, 0.1622314453125, 0.171142578125, 0.1082763671875, 0.29443359375, 0.028656005859375, 0.147216796875, 0.0504150390625, 0.218017578125, 0.013641357421875, 0.081787109375, 0.1805419921875, 0.028472900390625, 0.08447265625, 0.17529296875, 0.07958984375, 0.169677734375, 0.08...
embed