Struct ckb_types::packed::WitnessArgs
source · pub struct WitnessArgs(/* private fields */);
Implementations§
source§impl WitnessArgs
impl WitnessArgs
pub const FIELD_COUNT: usize = 3usize
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 lock(&self) -> BytesOpt
pub fn input_type(&self) -> BytesOpt
pub fn output_type(&self) -> BytesOpt
pub fn as_reader<'r>(&'r self) -> WitnessArgsReader<'r>
Trait Implementations§
source§impl Clone for WitnessArgs
impl Clone for WitnessArgs
source§fn clone(&self) -> WitnessArgs
fn clone(&self) -> WitnessArgs
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 Debug for WitnessArgs
impl Debug for WitnessArgs
source§impl Default for WitnessArgs
impl Default for WitnessArgs
source§fn default() -> WitnessArgs
fn default() -> WitnessArgs
Returns the “default value” for a type. Read more
source§impl Display for WitnessArgs
impl Display for WitnessArgs
source§impl Entity for WitnessArgs
impl Entity for WitnessArgs
type Builder = WitnessArgsBuilder
const NAME: &'static str = "WitnessArgs"
fn new_unchecked(data: Bytes) -> WitnessArgs
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<WitnessArgs, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<WitnessArgs, VerificationError>
fn new_builder() -> <WitnessArgs as Entity>::Builder
fn as_builder(self) -> <WitnessArgs as Entity>::Builder
Auto Trait Implementations§
impl RefUnwindSafe for WitnessArgs
impl Send for WitnessArgs
impl Sync for WitnessArgs
impl Unpin for WitnessArgs
impl UnwindSafe for WitnessArgs
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