Struct ckb_types::packed::NodeReader
source · pub struct NodeReader<'r>(/* private fields */);
Implementations§
source§impl<'r> NodeReader<'r>
impl<'r> NodeReader<'r>
pub const FIELD_COUNT: usize = 1usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn addresses(&self) -> BytesVecReader<'r>
Trait Implementations§
source§impl<'r> Clone for NodeReader<'r>
impl<'r> Clone for NodeReader<'r>
source§fn clone(&self) -> NodeReader<'r>
fn clone(&self) -> NodeReader<'r>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'r> Debug for NodeReader<'r>
impl<'r> Debug for NodeReader<'r>
source§impl<'r> Display for NodeReader<'r>
impl<'r> Display for NodeReader<'r>
source§impl<'r> LowerHex for NodeReader<'r>
impl<'r> LowerHex for NodeReader<'r>
source§impl<'r> Reader<'r> for NodeReader<'r>
impl<'r> Reader<'r> for NodeReader<'r>
type Entity = Node
const NAME: &'static str = "NodeReader"
fn to_entity(&self) -> <NodeReader<'r> as Reader<'r>>::Entity
fn new_unchecked(slice: &'r [u8]) -> NodeReader<'r>
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for NodeReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for NodeReader<'r>
impl<'r> RefUnwindSafe for NodeReader<'r>
impl<'r> Send for NodeReader<'r>
impl<'r> Sync for NodeReader<'r>
impl<'r> Unpin for NodeReader<'r>
impl<'r> UnwindSafe for NodeReader<'r>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..)
with confidence and we assume that it’s impossible to fail.source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..)
with confidence and we assume that it’s impossible to fail.