pub struct Contract { /* private fields */ }Expand description
Source is signed; derived programs are private, rebuilt at installation after parsing or deserialization.
Implementations§
Source§impl Contract
impl Contract
pub fn unresolved(source: SExpr) -> Self
pub fn source(&self) -> &SExpr
pub fn representation(&self) -> Option<TypeConstraint>
pub fn representations(&self) -> u16
pub fn check( &self, value: &SExpr, available_work: u64, ) -> Result<(), CheckError>
pub fn required_work(&self) -> Option<u64>
Trait Implementations§
impl Eq for Contract
Auto Trait Implementations§
impl Forget for Contract
impl Freeze for Contractwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SExpr>: Freeze,
*const ArcInner<Node> is !null: Freeze,
PhantomData<ArcInner<Node>>: Freeze,
impl Move for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contractwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SExpr>: UnsafeUnpin,
*const ArcInner<Node> is !null: UnsafeUnpin,
PhantomData<ArcInner<Node>>: UnsafeUnpin,
impl UnwindSafe for Contract
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