File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,14 @@ share the same basic concepts that io-lifetimes uses. All are built around
325325Rust's lifetime and ownership concepts, and confirm that these concepts
326326are a good fit for this problem.
327327
328+ Android has special APIs for detecting improper ` close ` s; see
329+ rust-lang/rust #74860 for details. The motivation for these APIs also applies
330+ to I/O safety here. Android's special APIs use dynamic checks, which enable
331+ them to enforce rules across source language boundaries. The I/O safety
332+ types and traits proposed here are only aiming to enforce rules within Rust
333+ code, so they're able to use Rust's type system to enforce rules at
334+ compile time rather than run time.
335+
328336[ io-lifetimes README.md's Prior Art section ] : https://github.com/sunfishcode/io-lifetimes#prior-art
329337[ C# ] : https://docs.microsoft.com/en-us/dotnet/api/system.io.file?view=net-5.0
330338[ Java ] : https://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true
You can’t perform that action at this time.
0 commit comments