Skip to content

Commit

Permalink
add docs for IntoInternalStructReader and IntoInternalListReader
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 16, 2023
1 parent 6be1b83 commit 636e4d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions capnp/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
Expand All @@ -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>;
}
Expand Down

0 comments on commit 636e4d5

Please sign in to comment.