pub struct LeafScript<S> {
pub version: LeafVersion,
pub script: S,
}
Expand description
The leaf script with its version.
Fields§
§version: LeafVersion
The version of the script.
script: S
The script, usually ScriptBuf
or &Script
.
Trait Implementations§
Source§impl<S: Clone> Clone for LeafScript<S>
impl<S: Clone> Clone for LeafScript<S>
Source§fn clone(&self) -> LeafScript<S>
fn clone(&self) -> LeafScript<S>
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<S: Debug> Debug for LeafScript<S>
impl<S: Debug> Debug for LeafScript<S>
Source§impl<S: Hash> Hash for LeafScript<S>
impl<S: Hash> Hash for LeafScript<S>
Source§impl<S: PartialEq> PartialEq for LeafScript<S>
impl<S: PartialEq> PartialEq for LeafScript<S>
impl<S: Copy> Copy for LeafScript<S>
impl<S: Eq> Eq for LeafScript<S>
impl<S> StructuralPartialEq for LeafScript<S>
Auto Trait Implementations§
impl<S> Freeze for LeafScript<S>where
S: Freeze,
impl<S> RefUnwindSafe for LeafScript<S>where
S: RefUnwindSafe,
impl<S> Send for LeafScript<S>where
S: Send,
impl<S> Sync for LeafScript<S>where
S: Sync,
impl<S> Unpin for LeafScript<S>where
S: Unpin,
impl<S> UnwindSafe for LeafScript<S>where
S: UnwindSafe,
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