InliningExt
docs
This commit is contained in:
parent
7e4966e2b8
commit
9d189d2e8e
@ -19,6 +19,7 @@ pub trait Inlining: Sized {
|
||||
}
|
||||
|
||||
pub trait InliningExt<E>: Inlining {
|
||||
/// `const`-length equivalent of [`Inlining::iread_n`].
|
||||
fn iread_n_const<const N: usize>(
|
||||
self,
|
||||
err: impl FnOnce(&[u8]) -> E,
|
||||
@ -58,6 +59,7 @@ impl<D: ?Sized + Deserializer> Inlining for &mut D {
|
||||
}
|
||||
|
||||
pub trait InliningResultExt<A, E> {
|
||||
/// Drop the deserializer from parsing result.
|
||||
fn seal(self) -> Result<A, E>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user