pub struct DamlEnum<'a> { /* private fields */ }Expand description
A Daml enum.
Implementations
sourceimpl<'a> DamlEnum<'a>
impl<'a> DamlEnum<'a>
pub fn new(
name: Cow<'a, str>,
package_id: Cow<'a, str>,
module_path: Vec<Cow<'a, str>>,
constructors: Vec<Cow<'a, str>>,
type_params: Vec<DamlTypeVarWithKind<'a>>,
serializable: bool
) -> Self
pub fn name(&self) -> &str
pub fn package_id(&self) -> &str
pub fn module_path(&self) -> impl Iterator<Item = &str>
pub fn constructors(&self) -> impl Iterator<Item = &str>
pub fn type_params(&self) -> &[DamlTypeVarWithKind<'a>]
pub const fn serializable(&self) -> bool
Trait Implementations
sourceimpl<'a> DamlVisitableElement<'a> for DamlEnum<'a>
impl<'a> DamlVisitableElement<'a> for DamlEnum<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> IntoBoundedStatic for DamlEnum<'a>
impl<'a> IntoBoundedStatic for DamlEnum<'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.
sourceimpl PartialEq<DamlData<'_>> for DamlEnum<'_>
impl PartialEq<DamlData<'_>> for DamlEnum<'_>
Convenience impl to compare a DamlData with a DamlEnum.
sourceimpl PartialEq<DamlEnum<'_>> for DamlData<'_>
impl PartialEq<DamlEnum<'_>> for DamlData<'_>
Convenience impl to compare a DamlEnum with a DamlData.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlEnum<'a>
impl<'a> Send for DamlEnum<'a>
impl<'a> Sync for DamlEnum<'a>
impl<'a> Unpin for DamlEnum<'a>
impl<'a> UnwindSafe for DamlEnum<'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