pub struct Byte(/* private fields */);
Implementations§
Source§impl Byte
impl Byte
pub const NAME: &'static str = "Byte"
pub fn new(v: u8) -> Byte
pub fn new_unchecked(data: Bytes) -> Byte
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_bytes(self) -> Bytes
pub fn from_slice(slice: &[u8]) -> Result<Byte, VerificationError>
pub fn from_compatible_slice(slice: &[u8]) -> Result<Byte, VerificationError>
Trait Implementations§
Source§impl Into<Byte> for ScriptHashType
impl Into<Byte> for ScriptHashType
Source§impl Ord for Byte
impl Ord for Byte
Source§impl PartialOrd for Byte
impl PartialOrd for Byte
Source§impl TryFrom<Byte> for ScriptHashType
impl TryFrom<Byte> for ScriptHashType
impl Copy for Byte
impl Eq for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations§
impl Freeze for Byte
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)