- 博客(25)
- 资源 (1)
- 收藏
- 关注
原创 rust(68)-rust enum
Finished dev [unoptimized + debuginfo] target(s) in 0.05s Running `F:\learn\rustlearn\learn60\target\debug\learn60.exe`FloatNum(2.2725)IntNum(20)None------------------(program exited w...
2020-04-16 17:04:26 276
原创 ust(62)-Option<T>
use std::fmt::Debug;fn print_option_result<T:Debug>(o:Option<T>){ match o{ Some(i)=>println!("{:?}",i), None=>println!("nothing"), } }fn main() { let x1:Option<i32>=S...
2020-04-05 21:56:18 195
原创 rust(61)-opencv(2)
PS F:\learn\rustlearn> cargo new learn59PS F:\learn\rustlearn> cd learn59PS F:\learn\rustlearn\learn59> cargo add opecncv> git clone https://github.com/Microsoft/vcpkg.git> cd vcp...
2020-04-02 21:52:24 339
原创 rust(60)-opencv(1)
函数imread从指定的文件加载图像并返回它。如果无法读取图像(由于文件丢失、权限不正确、不支持或格式无效),函数将返回一个空矩阵(Mat::data==NULL)。目前支持以下文件格式:Windows bitmaps - *.bmp, *.dib (always supported)JPEG files - *.jpeg, *.jpg, *.jpe (see the Note sectio...
2020-04-02 21:00:49 491
原创 rust(59)-opengl图形(1)
fn main() { let el = glutin::event_loop::EventLoop::new(); let wb = glutin::window::WindowBuilder::new() .with_title("Hello world!") .with_inner_size(glutin::dpi::LogicalSize::new(1024...
2020-04-01 09:32:41 1322
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人