pub struct DamlEnum<'a> { /* private fields */ }Expand description
A Daml enum.
Implementations§
Source§impl<'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§
Source§impl<'a> DamlVisitableElement<'a> for DamlEnum<'a>
impl<'a> DamlVisitableElement<'a> for DamlEnum<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
Source§impl<'a> IntoBoundedStatic for DamlEnum<'a>
impl<'a> IntoBoundedStatic for DamlEnum<'a>
Source§impl PartialEq<DamlData<'_>> for DamlEnum<'_>
Convenience impl to compare a DamlData with a DamlEnum.
impl PartialEq<DamlData<'_>> for DamlEnum<'_>
Convenience impl to compare a DamlData with a DamlEnum.
Source§impl PartialEq<DamlEnum<'_>> for DamlData<'_>
Convenience impl to compare a DamlEnum with a DamlData.
impl PartialEq<DamlEnum<'_>> for DamlData<'_>
Convenience impl to compare a DamlEnum with a DamlData.
Auto Trait Implementations§
impl<'a> Freeze for DamlEnum<'a>
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more