pub struct DamlThrow<'a> { /* private fields */ }Expand description
A Daml expression throw exception.
Implementations
sourceimpl<'a> DamlThrow<'a>
impl<'a> DamlThrow<'a>
pub fn new(
return_type: DamlType<'a>,
exception_type: DamlType<'a>,
exception_expr: Box<DamlExpr<'a>>
) -> Self
pub fn return_type(&self) -> &DamlType<'a>
pub fn exception_type(&self) -> &DamlType<'a>
pub fn exception_expr(&self) -> &DamlExpr<'a>
Trait Implementations
sourceimpl<'a> DamlVisitableElement<'a> for DamlThrow<'a>
impl<'a> DamlVisitableElement<'a> for DamlThrow<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> IntoBoundedStatic for DamlThrow<'a>
impl<'a> IntoBoundedStatic for DamlThrow<'a>
sourcefn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned T into an owned T such that T: 'static.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlThrow<'a>
impl<'a> Send for DamlThrow<'a>
impl<'a> Sync for DamlThrow<'a>
impl<'a> Unpin for DamlThrow<'a>
impl<'a> UnwindSafe for DamlThrow<'a>
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