pub struct Script(pub Vec<u8>);
Expand description
Transaction script
Tuple Fields§
§0: Vec<u8>
Implementations§
Source§impl Script
impl Script
Sourcepub fn append_slice(&mut self, slice: &[u8])
pub fn append_slice(&mut self, slice: &[u8])
Appends a slice of data
Sourcepub fn append_data(&mut self, data: &[u8])
pub fn append_data(&mut self, data: &[u8])
Appends the opcodes and provided data that push it onto the stack
Sourcepub fn append_num(&mut self, n: i32) -> Result<()>
pub fn append_num(&mut self, n: i32) -> Result<()>
Appends the opcodes to push a number to the stack
The number must be in the range [2^-31+1,2^31-1].
Trait Implementations§
impl Eq for Script
impl StructuralPartialEq for Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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