Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ reset_write
Method
reset_write
crates/vm/src/stdlib/_io.rs:888–891 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
886
}
887
888
const fn reset_write(&mut self) {
889
self.write_pos = 0;
890
self.write_end = -1;
891
}
892
893
fn flush(&mut self, vm: &VirtualMachine) -> PyResult<()> {
894
if !self.valid_write() || self.write_pos == self.write_end {
Callers
2
flush
Method · 0.80
init
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected