Skip to content

Commit 636e4d5

Browse files
committed
add docs for IntoInternalStructReader and IntoInternalListReader
1 parent 6be1b83 commit 636e4d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

capnp/src/traits.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub trait HasStructSize {
3434
const STRUCT_SIZE: StructSize;
3535
}
3636

37+
/// Trait for all types that can be converted to a low-level `StructReader`.
3738
pub trait IntoInternalStructReader<'a> {
3839
fn into_internal_struct_reader(self) -> StructReader<'a>;
3940
}
@@ -42,6 +43,7 @@ pub trait FromStructBuilder<'a> {
4243
fn new(struct_builder: StructBuilder<'a>) -> Self;
4344
}
4445

46+
/// Trait for all types that can be converted to a low-level `ListReader`.
4547
pub trait IntoInternalListReader<'a> {
4648
fn into_internal_list_reader(self) -> ListReader<'a>;
4749
}

0 commit comments

Comments
 (0)