Rust Opaque Types: Static Dispatch vs. Dynamic Dispatch

tags: Rust source: Johnston, Dylan R. “Formally Verifying Rust’s Opaque Types,” August 1, 2022. https://dylanj.xyz/posts/rust-coq-opaque-types/. Prelude trait ToString { fn to_string(&self) -> String; } Static Dispatch fn yell<S: ToString>(stringable: S) { println!(stringable.to_string().to_uppercase()) } Dynamic Dispatch fn yell(stringable: &dyn ToString) { println!(stringable.to_string().to_uppercase()) } impl Trait fn yell(stringable: impl ToString) { println!(stringable.to_string().to_uppercase()) }

August 2, 2022 · 1 min · Gray King

error: is only available in macOS 10.15 or newer

tags: Flutter,GUI,macOS souce: https://github.com/flutter/flutter/issues/73122 To solve this problem we should specify MACOSX_DEPLOYMENT_TARGET: I would imagine that there is Apple documentation on managing build settings in Xcode, but I don’t have a link offhand. There’s no Flutter-specific documentation of the process, if that’s what you mean; it isn’t any different in a Flutter macOS application as it would be any other macOS application. If you don’t want to use Xcode, you can change MACOSX_DEPLOYMENT_TARGET directly in Runner.xcodeproj/project.pbxproj. ...

July 28, 2022 · 1 min · Gray King

Wecom Debug Mode

macOS Press Command + Shift + Control + D to enter debug mod. Then you can open url in brower: Help -> Debug -> 「浏览器 webview 相关-系统浏览器打开网页」

July 25, 2022 · 1 min · Gray King

Flutter

tags: GUI

July 25, 2022 · 1 min · Gray King

iOS

July 25, 2022 · 0 min · Gray King