pub struct Parents(_);Expand description
Implementations
sourceimpl Parents
impl Parents
sourcepub const COUNT_RANGE: RangeInclusive<u8> = _
pub const COUNT_RANGE: RangeInclusive<u8> = _
The range representing the valid number of parents.
sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &BlockId> + '_
pub fn iter(&self) -> impl ExactSizeIterator<Item = &BlockId> + '_
Returns an iterator over the parents.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Parents
impl<'de> Deserialize<'de> for Parents
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Packable for Parents
impl Packable for Parents
impl Eq for Parents
impl StructuralEq for Parents
impl StructuralPartialEq for Parents
Auto Trait Implementations
impl RefUnwindSafe for Parents
impl Send for Parents
impl Sync for Parents
impl Unpin for Parents
impl UnwindSafe for Parents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P> PackableExt for P where
P: Packable,
impl<P> PackableExt for P where
P: Packable,
sourcefn unpack_verified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>> where
T: AsRef<[u8]>,
fn unpack_verified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>> where
T: AsRef<[u8]>,
Unpacks this value from a type that implements [AsRef<[u8]>].
sourcefn unpack_unverified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>> where
T: AsRef<[u8]>,
fn unpack_unverified<T>(
bytes: T
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>> where
T: AsRef<[u8]>,
Unpacks this value from a type that implements [AsRef<[u8]>] skipping some syntatical checks.
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using pack. Read more