CheckedParseFailure
This commit is contained in:
parent
f1b4e7b88e
commit
2c3b7ba52b
@ -149,9 +149,10 @@ impl<P: Error> From<P> for CheckedParseError<P> {
|
||||
}
|
||||
}
|
||||
|
||||
pub type CheckedParseFailure<'a, Ctx, F> = CheckedParseError<ParseError<'a, Ctx, F>>;
|
||||
|
||||
/// Returned by [`CheckedParse::deserialize_checked`].
|
||||
pub type CheckedParseResult<'a, Ctx, F> =
|
||||
Result<Mtbl<'a, Ctx, F>, CheckedParseError<ParseError<'a, Ctx, F>>>;
|
||||
pub type CheckedParseResult<'a, Ctx, F> = Result<Mtbl<'a, Ctx, F>, CheckedParseFailure<'a, Ctx, F>>;
|
||||
|
||||
/// Extension trait for factories that ensures fixed size read.
|
||||
pub trait CheckedParse<'a, Ctx: Context<'a>>: FixedSizeFactory<'a, Ctx> {
|
||||
|
Loading…
Reference in New Issue
Block a user