pub struct Metadata { /* private fields */ }
Implementations
sourceimpl Metadata
impl Metadata
pub const fn new(
id: Bytes32,
script_data_offset: Option<usize>,
input_predicate_offset: Vec<Option<(usize, 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_predicate_offset(&self, index: usize) -> Option<(usize, 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