SliceDeserializer
docs shorten link
This commit is contained in:
parent
0470a0faa3
commit
d5c38cf0a4
@ -3,7 +3,7 @@ pub const HASH_SIZE: usize = 32;
|
|||||||
|
|
||||||
/// Zeroed out array of the same length as [`type@Hash`].
|
/// Zeroed out array of the same length as [`type@Hash`].
|
||||||
/// Used in [`nullable`].
|
/// Used in [`nullable`].
|
||||||
///
|
///
|
||||||
/// [`nullable`]: crate::rstd::nullable
|
/// [`nullable`]: crate::rstd::nullable
|
||||||
pub const HASH_ZEROS: [u8; HASH_SIZE] = [0; HASH_SIZE];
|
pub const HASH_ZEROS: [u8; HASH_SIZE] = [0; HASH_SIZE];
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@ use std::cmp::min;
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
/// [Deserializer] for slices. Used in [`FactoryExt::parse_slice`] and [`crate::rstd::atomic::AtomicExt::parse_slice`].
|
/// [Deserializer] for slices. Used in [`FactoryExt::parse_slice`] and [`AtomicExt::parse_slice`].
|
||||||
|
///
|
||||||
|
/// [`AtomicExt::parse_slice`]: crate::rstd::atomic::AtomicExt::parse_slice
|
||||||
pub struct SliceDeserializer<'a> {
|
pub struct SliceDeserializer<'a> {
|
||||||
slice: &'a [u8],
|
slice: &'a [u8],
|
||||||
pos: usize,
|
pos: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user