Struct ckb_types::packed::Byte [−][src]
pub struct Byte(_);
Implementations
impl Byte[src]
impl Byte[src]pub const NAME: &'static str[src]
pub fn new(v: u8) -> Byte[src]
pub fn new_unchecked(data: Bytes) -> Byte[src]
pub fn as_slice(&self) -> &[u8][src]
pub fn as_bytes(self) -> Bytes[src]
pub fn from_slice(slice: &[u8]) -> Result<Byte, VerificationError>[src]
pub fn from_compatible_slice(slice: &[u8]) -> Result<Byte, VerificationError>[src]
impl Byte[src]
impl Byte[src]pub fn as_reader(&self) -> ByteReader<'_>[src]
Trait Implementations
impl Ord for Byte[src]
impl Ord for Byte[src]impl PartialOrd<Byte> for Byte[src]
impl PartialOrd<Byte> for Byte[src]pub fn partial_cmp(&self, other: &Byte) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &Byte) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl TryFrom<Byte> for ScriptHashType[src]
impl TryFrom<Byte> for ScriptHashType[src]impl Copy for Byte[src]
impl Eq for Byte[src]
impl StructuralEq for Byte[src]
impl StructuralPartialEq for Byte[src]
Auto Trait Implementations
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,