Tag:Headlines

  • Rust programming video tutorial (Advanced) – 003_ 3 custom iterator

    Time:2021-11-7

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Explanation content 1. Implement iterator trait to create custom iteratorsexample: struct Counter { count: u32, } impl Counter { fn new() -> Counter { Counter { count: 0 } } } //Implement custom iterators impl Iterator for Counter { type Item = u32; fn next(&mut self) -> Option<Self::Item> { […]

  • Rust programming video tutorial (Advanced) – 005_ 2 use closures with generics and FN trait

    Time:2021-11-4

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Explanation content Example: / / implement a cache, process the first incoming value and save it struct Cacher<T> Where t: FN (U32) – > U32 // generics and FN trait { Calculation: T, // T is a closure value: Option<u32>, } impl<T> Cacher<T> where T: Fn(u32) -> u32 { […]

  • Rust programming video tutorial (Advanced) – 007_ Release and withdrawal of 4crate

    Time:2021-10-31

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Explanation content Release and withdrawal of crate (this part has not been actually operated)(1) Create crites.io account: register through GitHub account and register through cargo login**Come and log in(2) Before publishing, you need to add a description in cargo.toml: [package] name = “package_name” version = “0.1.0” License = “MIT” […]

  • Rust programming video tutorial (Advanced) – 007_ 1 review using external package examples

    Time:2021-10-29

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Explanation content You can share code with others by publishing packages. Crites.io is used to distribute the source code of the contract, so it mainly hosts open source code. reviewWhen we used trust crypto earlier, we directly added the following in cargo.toml: [dependencies] rust-crypto = “0.2” Use someone else’s […]

  • Rust programming video tutorial address, source code GitHub address description

    Time:2021-10-24

    Video address Base part address Headline address:https://www.ixigua.com/i676544267458235648…Station B address:https://www.bilibili.com/video/av78062009?…Netease cloud classroom address:https://study.163.com/course/introduction…. Advanced part address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Source GitHub address Source code GitHub address in all videos:https://github.com/anonymousGiga/learn_rus… rust Video tutorial Source code This work adoptsCC agreement, reprint must indicate the author and the link to this article Linghu rushed

  • Rust programming video tutorial corresponding explanation content – Test

    Time:2021-10-20

    Video address Headline address:https://www.ixigua.com/i676544267458235648…Station B address:https://www.bilibili.com/video/av78062009?…Netease cloud classroom address:https://study.163.com/course/introduction…. Explanation content 1. Write test #[cfg(test)] mod tests { #[test] fn it_works() { assert_eq!(2 + 2, 4); } } 2. Run test cargo test 3. Using the assert macro std::assert! std::assert_eq! std::assert_ne! rust Video tutorial Trust programming language This work adoptsCC agreement, reprint must indicate the […]

  • Rust programming video tutorial (Advanced) – 012_ 2 call drop in advance.

    Time:2021-10-18

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Source address GitHub address:https://github.com/anonymousGiga/learn_rus… Explanation content Discard the value early through STD:: MEM:: drop. When cleaning in advance is required, instead of directly calling the drop method, the STD:: MEM:: drop method is called, for example: struct Dog { name: String, } //The following is a drop trait implementation […]

  • Six reasons why tiktok is so popular.

    Time:2021-9-7

    What is tiktok? In short, it is an app similar to xiaoka show’s music creative short video, which allows users to shoot 15 second music short video. Subordinate toMassive engineA live broadcast software. Everyone can participate in video production. Next, we will analyze the reasons for the popularity of the jitter tiktok mainly through the […]

  • The third wave of interview questions are still free!!!

    Time:2021-8-30

    90 months of golden nine and silver tenSi no programming is carefully prepared for youLarge factory interview questionsThe first interview was titled Ali P7The second interview is entitled TencentThe third wave of interview is headlineThe fourth wave is temporarily confidential, huhOnly 500 copies at a timeEvery time it’s emptyThis is the coming third waveI wish […]

  • Byte beating helplessness! Two billion dozen drifts…

    Time:2021-8-18

    Byte beating helplessness! Two billion dollars in water… Recently, byte announced: underWukong Q & A app will be removed from the platforms of major app stores from 0:00 on January 20, 2021, downloads will no longer be available. The operation will be stopped and the service will be closed on February 3, 2021.After that, we […]

  • Rust programming video tutorial corresponding content variable

    Time:2021-7-8

    Video address Headline address:https://www.ixigua.com/i676544267458235648…Station B address:https://www.bilibili.com/video/av78062009?…Netease cloud classroom address:https://study.163.com/course/introduction…. Explanation content const MAX_POINTS1: u32 = 100000; //const fn main() { const MAX_POINTS: u32 = 100000; //const println!(“MAX_POINTS = {}”, MAX_POINTS); // println!(“MAX_POINTS = {}”, MAX_POINTS1); // //let a: u32 = 10; //inmut let mut a: u32 = 10;//mutable println!(“a = {}”, a); let b: String […]

  • Process control: the corresponding content of rust programming video tutorial

    Time:2021-7-3

    Video address Headline address:https://www.ixigua.com/i676544267458235648…Station B address:https://www.bilibili.com/video/av78062009?…Netease cloud classroom address:https://study.163.com/course/introduction…. Explanation content fn main() { //if let y = 1; if y == 1 { println!(“y = 1”); } //if-else if y == 1 { println!(“y = 1”); } else { println!(“y != 1”); } //if – else if – else if y == 0 { […]