Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
93969734
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
93969734
编写于
1月 08, 2018
作者:
G
Guillaume Gomez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add missing links
上级
1b193de9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
8 deletion
+18
-8
src/libcore/fmt/mod.rs
src/libcore/fmt/mod.rs
+4
-1
src/libstd/io/mod.rs
src/libstd/io/mod.rs
+14
-7
未找到文件。
src/libcore/fmt/mod.rs
浏览文件 @
93969734
...
...
@@ -83,9 +83,12 @@ pub mod rt {
/// some other means.
///
/// An important thing to remember is that the type `fmt::Error` should not be
/// confused with
`std::io::Error` or `std::error::Error`
, which you may also
/// confused with
[`std::io::Error`] or [`std::error::Error`]
, which you may also
/// have in scope.
///
/// [`std::io::Error`]: ../../std/io/struct.Error.html
/// [`std::error::Error`]: ../../std/error/trait.Error.html
///
/// # Examples
///
/// ```rust
...
...
src/libstd/io/mod.rs
浏览文件 @
93969734
...
...
@@ -997,9 +997,9 @@ pub trait Write {
///
/// Calls to `write` are not guaranteed to block waiting for data to be
/// written, and a write which would otherwise block can be indicated through
/// an
`Err`
variant.
/// an
[`Err`]
variant.
///
/// If the return value is
`Ok(n)`
then it must be guaranteed that
/// If the return value is
[`Ok(n)`]
then it must be guaranteed that
/// `0 <= n <= buf.len()`. A return value of `0` typically means that the
/// underlying object is no longer able to accept bytes and will likely not
/// be able to in the future as well, or that the buffer provided is empty.
...
...
@@ -1013,9 +1013,13 @@ pub trait Write {
/// It is **not** considered an error if the entire buffer could not be
/// written to this writer.
///
/// An error of the
`ErrorKind::Interrupted`
kind is non-fatal and the
/// An error of the
[`ErrorKind::Interrupted`]
kind is non-fatal and the
/// write operation should be retried if there is nothing else to do.
///
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
/// [`Ok(n)`]: ../../std/result/enum.Result.html#variant.Ok
/// [`ErrorKind::Interrupted`]: ../../std/io/enum.ErrorKind.html#variant.Interrupted
///
/// # Examples
///
/// ```
...
...
@@ -1061,17 +1065,20 @@ pub trait Write {
/// Attempts to write an entire buffer into this write.
///
/// This method will continuously call
`write`
until there is no more data
/// to be written or an error of non-
`ErrorKind::Interrupted`
kind is
/// This method will continuously call
[`write`]
until there is no more data
/// to be written or an error of non-
[`ErrorKind::Interrupted`]
kind is
/// returned. This method will not return until the entire buffer has been
/// successfully written or such an error occurs. The first error that is
/// not of
`ErrorKind::Interrupted`
kind generated from this method will be
/// not of
[`ErrorKind::Interrupted`]
kind generated from this method will be
/// returned.
///
/// # Errors
///
/// This function will return the first error of
/// non-`ErrorKind::Interrupted` kind that `write` returns.
/// non-[`ErrorKind::Interrupted`] kind that [`write`] returns.
///
/// [`ErrorKind::Interrupted`]: ../../std/io/enum.ErrorKind.html#variant.Interrupted
/// [`write`]: #tymethod.write
///
/// # Examples
///
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录