pub struct Metadata { /* private fields */ }
Implementations
sourceimpl Metadata
impl Metadata
pub const fn new(
id: Bytes32,
script_data_offset: Option<usize>,
input_coin_predicate_offset: Vec<Option<usize>>,
inputs_offset: Vec<usize>,
outputs_offset: Vec<usize>,
witnesses_offset: Vec<usize>
) -> Self
pub const fn id(&self) -> &Bytes32
pub fn script_data_offset(&self) -> Option<usize>
pub fn input_coin_predicate_offset(&self, index: usize) -> Option<usize>
pub fn inputs_offset(&self, index: usize) -> Option<usize>
pub fn outputs_offset(&self, index: usize) -> Option<usize>
pub fn witnesses_offset(&self, index: usize) -> Option<usize>
Trait Implementations
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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<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