Struct ckb_types::packed::BytesOptReader
source · [−]pub struct BytesOptReader<'r>(_);Implementations
Trait Implementations
sourceimpl<'r> Clone for BytesOptReader<'r>
impl<'r> Clone for BytesOptReader<'r>
sourcefn clone(&self) -> BytesOptReader<'r>
fn clone(&self) -> BytesOptReader<'r>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'r> Debug for BytesOptReader<'r>
impl<'r> Debug for BytesOptReader<'r>
sourceimpl<'r> Display for BytesOptReader<'r>
impl<'r> Display for BytesOptReader<'r>
sourceimpl<'r> LowerHex for BytesOptReader<'r>
impl<'r> LowerHex for BytesOptReader<'r>
sourceimpl<'r> Reader<'r> for BytesOptReader<'r>
impl<'r> Reader<'r> for BytesOptReader<'r>
type Entity = BytesOpt
const NAME: &'static str
fn to_entity(&self) -> Self::Entity
fn new_unchecked(slice: &'r [u8]) -> Self
fn as_slice(&self) -> &'r [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn verify(slice: &[u8], compatible: bool) -> VerificationResult<()>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for BytesOptReader<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for BytesOptReader<'r>
impl<'r> Send for BytesOptReader<'r>
impl<'r> Sync for BytesOptReader<'r>
impl<'r> Unpin for BytesOptReader<'r>
impl<'r> UnwindSafe for BytesOptReader<'r>
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<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
sourcefn 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.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more