Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Jan 17, 2025
1 parent c84c6ca commit 7425257
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hugr-model/src/v0/binary/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use crate::v0 as model;
use bumpalo::collections::Vec as BumpVec;
use bumpalo::Bump;

/// TODO docs
/// An error encounted while deserialising a model.
#[derive(Debug, derive_more::From, derive_more::Display, derive_more::Error)]
#[non_exhaustive]
pub enum ReadError {
#[from(forward)]
/// TODO docs
EncodingError(capnp::Error),
/// An error encounted while decoding a model from a `capnproto` buffer.
DecodingError(capnp::Error),
}

type ReadResult<T> = Result<T, ReadError>;
Expand Down
4 changes: 2 additions & 2 deletions hugr-model/src/v0/binary/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use std::io::Write;
use crate::hugr_v0_capnp as hugr_capnp;
use crate::v0 as model;

/// TODO docs
/// An error encounter while serializing a model.
#[derive(Debug, derive_more::From, derive_more::Display, derive_more::Error)]
#[non_exhaustive]
pub enum WriteError {
/// TODO docs
/// An error encountered while encoding a `capnproto` buffer.
EncodingError(capnp::Error),
}

Expand Down

0 comments on commit 7425257

Please sign in to comment.