about summary refs log tree commit diff
path: root/src/libstd/sys/windows/io.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-80/+0
2020-06-10Migrate to numeric associated constsLzu Tao-2/+2
2020-02-23Implement `Copy` for `IoSlice`LeSeulArtichaut-0/+1
2019-11-29Format libstd/sys with rustfmtDavid Tolnay-13/+4
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd/sys *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd/sys -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd/sys outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of the files. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
2019-08-03Add {IoSlice, IoSliceMut}::advanceThomas de Zeeuw-0/+24
2019-07-26add repr(transparent) to IoSliceMut where missingNiv Kaminer-0/+1
2019-04-27Stabilized vectored IOSteven Fackler-8/+8
This renames `std::io::IoVec` to `std::io::IoSlice` and `std::io::IoVecMut` to `std::io::IoSliceMut`, and stabilizes `std::io::IoSlice`, `std::io::IoSliceMut`, `std::io::Read::read_vectored`, and `std::io::Write::write_vectored`. Closes #58452
2019-02-28Fix rebase failTaiki Endo-3/+3
2019-02-13impl Deref/DerefMut for IoVec typesSteven Fackler-3/+3
Returning &'a mut [u8] was unsound, and we may as well just have them directly deref to their slices to make it easier to work with them.
2019-02-13Add vectored read and write supportSteven Fackler-0/+63
This functionality has lived for a while in the tokio ecosystem, where it can improve performance by minimizing copies.