Struct ckb_types::packed::CellOutput [−][src]
pub struct CellOutput(_);
Implementations
impl CellOutput[src]
impl CellOutput[src]pub const FIELD_COUNT: usize[src]
pub fn total_size(&self) -> usize[src]
pub fn field_count(&self) -> usize[src]
pub fn count_extra_fields(&self) -> usize[src]
pub fn has_extra_fields(&self) -> bool[src]
pub fn capacity(&self) -> Uint64[src]
pub fn lock(&self) -> Script[src]
pub fn type_(&self) -> ScriptOpt[src]
pub fn as_reader<'r>(&'r self) -> CellOutputReader<'r>[src]
impl CellOutput[src]
impl CellOutput[src]impl CellOutput[src]
impl CellOutput[src]pub fn calc_lock_hash(&self) -> Byte32[src]
pub fn calc_lock_hash(&self) -> Byte32[src]impl CellOutput[src]
impl CellOutput[src]pub fn occupied_capacity(
&self,
data_capacity: Capacity
) -> CapacityResult<Capacity>[src]
pub fn occupied_capacity(
&self,
data_capacity: Capacity
) -> CapacityResult<Capacity>[src]Calculates the occupied capacity of CellOutput.
Includes output_data (provided), capacity (8), lock (calculated) and type (calculated).
pub fn is_lack_of_capacity(
&self,
data_capacity: Capacity
) -> CapacityResult<bool>[src]
pub fn is_lack_of_capacity(
&self,
data_capacity: Capacity
) -> CapacityResult<bool>[src]Returns if the capacity in CellOutput is smaller than the occupied capacity.
Trait Implementations
impl Clone for CellOutput[src]
impl Clone for CellOutput[src]fn clone(&self) -> CellOutput[src]
fn clone(&self) -> CellOutput[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for CellOutput[src]
impl Debug for CellOutput[src]impl Default for CellOutput[src]
impl Default for CellOutput[src]impl Display for CellOutput[src]
impl Display for CellOutput[src]impl Entity for CellOutput[src]
impl Entity for CellOutput[src]type Builder = CellOutputBuilder
const NAME: &'static str[src]
fn new_unchecked(data: Bytes) -> Self[src]
fn as_bytes(&self) -> Bytes[src]
fn as_slice(&self) -> &[u8][src]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn new_builder() -> Self::Builder[src]
fn as_builder(self) -> Self::Builder[src]
impl Hash for CellOutput[src]
impl Hash for CellOutput[src]impl LowerHex for CellOutput[src]
impl LowerHex for CellOutput[src]impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]fn pack(self) -> CellOutputVec[src]
fn pack(self) -> CellOutputVec[src]Packs a vector of binary data into one binary data.
impl PartialEq<CellOutput> for CellOutput[src]
impl PartialEq<CellOutput> for CellOutput[src]impl Eq for CellOutput[src]
Auto Trait Implementations
impl RefUnwindSafe for CellOutput
impl Send for CellOutput
impl Sync for CellOutput
impl Unpin for CellOutput
impl UnwindSafe for CellOutput
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> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]pub fn pack(Self) -> CellOutputVec[src]
pub fn pack(Self) -> CellOutputVec[src]Packs a vector of binary data into one binary data.
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]pub fn pack(Self) -> CellOutputVec[src]
pub fn pack(Self) -> CellOutputVec[src]Packs a vector of binary data into one binary data.
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]
impl<T> PackVec<CellOutputVec, CellOutput> for T where
T: IntoIterator<Item = CellOutput>, [src]pub fn pack(Self) -> CellOutputVec[src]
pub fn pack(Self) -> CellOutputVec[src]Packs a vector of binary data into one binary data.
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>,