Enum daml_lf::element::DamlCaseAltSum
source · [−]pub enum DamlCaseAltSum<'a> {
Default,
Variant(DamlCaseAltVariant<'a>),
PrimCon(DamlPrimCon),
Nil,
Cons(DamlCaseAltCons<'a>),
OptionalNone,
OptionalSome(DamlCaseAltOptionalSome<'a>),
Enum(DamlCaseAltEnum<'a>),
}Expand description
A Daml expression case sum type.
Variants
Default
Variant(DamlCaseAltVariant<'a>)
PrimCon(DamlPrimCon)
Nil
Cons(DamlCaseAltCons<'a>)
OptionalNone
OptionalSome(DamlCaseAltOptionalSome<'a>)
Enum(DamlCaseAltEnum<'a>)
Trait Implementations
sourceimpl<'a> Clone for DamlCaseAltSum<'a>
impl<'a> Clone for DamlCaseAltSum<'a>
sourcefn clone(&self) -> DamlCaseAltSum<'a>
fn clone(&self) -> DamlCaseAltSum<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> DamlVisitableElement<'a> for DamlCaseAltSum<'a>
impl<'a> DamlVisitableElement<'a> for DamlCaseAltSum<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> Debug for DamlCaseAltSum<'a>
impl<'a> Debug for DamlCaseAltSum<'a>
sourceimpl<'a> IntoBoundedStatic for DamlCaseAltSum<'a>
impl<'a> IntoBoundedStatic for DamlCaseAltSum<'a>
type Static = DamlCaseAltSum<'static>
type Static = DamlCaseAltSum<'static>
The target type is bounded by the 'static lifetime.
sourcefn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned T into an owned T such that T: 'static.
sourceimpl<'a> Serialize for DamlCaseAltSum<'a>
impl<'a> Serialize for DamlCaseAltSum<'a>
sourceimpl<'a> ToBoundedStatic for DamlCaseAltSum<'a>
impl<'a> ToBoundedStatic for DamlCaseAltSum<'a>
type Static = DamlCaseAltSum<'static>
type Static = DamlCaseAltSum<'static>
The target type is bounded by the 'static lifetime.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlCaseAltSum<'a>
impl<'a> Send for DamlCaseAltSum<'a>
impl<'a> Sync for DamlCaseAltSum<'a>
impl<'a> Unpin for DamlCaseAltSum<'a>
impl<'a> UnwindSafe for DamlCaseAltSum<'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