From 636e4d50af63efd2f61dc8e08c7573c71420af75 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Mon, 16 Jan 2023 15:39:19 -0500 Subject: [PATCH] add docs for IntoInternalStructReader and IntoInternalListReader --- capnp/src/traits.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capnp/src/traits.rs b/capnp/src/traits.rs index 82a88a7a8..fbe45a41c 100644 --- a/capnp/src/traits.rs +++ b/capnp/src/traits.rs @@ -34,6 +34,7 @@ pub trait HasStructSize { const STRUCT_SIZE: StructSize; } +/// Trait for all types that can be converted to a low-level `StructReader`. pub trait IntoInternalStructReader<'a> { fn into_internal_struct_reader(self) -> StructReader<'a>; } @@ -42,6 +43,7 @@ pub trait FromStructBuilder<'a> { fn new(struct_builder: StructBuilder<'a>) -> Self; } +/// Trait for all types that can be converted to a low-level `ListReader`. pub trait IntoInternalListReader<'a> { fn into_internal_list_reader(self) -> ListReader<'a>; }