pub enum DamlData<'a> {
Template(Box<DamlTemplate<'a>>),
Record(DamlRecord<'a>),
Variant(DamlVariant<'a>),
Enum(DamlEnum<'a>),
}Variants
Template(Box<DamlTemplate<'a>>)
Record(DamlRecord<'a>)
Variant(DamlVariant<'a>)
Enum(DamlEnum<'a>)
Implementations
sourceimpl<'a> DamlData<'a>
impl<'a> DamlData<'a>
sourcepub fn package_id(&self) -> &str
pub fn package_id(&self) -> &str
The id of the package which contains this DamlData.
sourcepub fn module_path(&self) -> impl Iterator<Item = &str>
pub fn module_path(&self) -> impl Iterator<Item = &str>
The path to the module which contains this DamlData.
sourcepub fn type_params(&self) -> &[DamlTypeVarWithKind<'_>]
pub fn type_params(&self) -> &[DamlTypeVarWithKind<'_>]
The type parameters applied to this data type.
sourcepub fn serializable(&self) -> bool
pub fn serializable(&self) -> bool
Is this data type serializable?
Trait Implementations
sourceimpl<'a> DamlVisitableElement<'a> for DamlData<'a>
impl<'a> DamlVisitableElement<'a> for DamlData<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> IntoBoundedStatic for DamlData<'a>
impl<'a> IntoBoundedStatic for DamlData<'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 DamlTemplate<'_>
impl PartialEq<DamlData<'_>> for DamlTemplate<'_>
Convenience impl to compare a DamlData with a DamlTemplate.
sourceimpl PartialEq<DamlData<'_>> for DamlRecord<'_>
impl PartialEq<DamlData<'_>> for DamlRecord<'_>
Convenience impl to compare a DamlData with a DamlRecord.
sourceimpl PartialEq<DamlData<'_>> for DamlVariant<'_>
impl PartialEq<DamlData<'_>> for DamlVariant<'_>
Convenience impl to compare a DamlData with a DamlVariant.
sourceimpl PartialEq<DamlData<'_>> for DamlEnum<'_>
impl PartialEq<DamlData<'_>> for DamlEnum<'_>
Convenience impl to compare a DamlData with a DamlEnum.
sourceimpl PartialEq<DamlData<'_>> for DamlTyConName<'_>
impl PartialEq<DamlData<'_>> for DamlTyConName<'_>
Convenience impl to compare a DamlData with a DamlTyConName.
sourceimpl PartialEq<DamlEnum<'_>> for DamlData<'_>
impl PartialEq<DamlEnum<'_>> for DamlData<'_>
Convenience impl to compare a DamlEnum with a DamlData.
sourceimpl PartialEq<DamlRecord<'_>> for DamlData<'_>
impl PartialEq<DamlRecord<'_>> for DamlData<'_>
Convenience impl to compare a DamlRecord with a DamlData.
sourceimpl PartialEq<DamlTemplate<'_>> for DamlData<'_>
impl PartialEq<DamlTemplate<'_>> for DamlData<'_>
Convenience impl to compare a DamlTemplate with a DamlData.
sourceimpl PartialEq<DamlTyConName<'_>> for DamlData<'_>
impl PartialEq<DamlTyConName<'_>> for DamlData<'_>
Convenience impl to compare a DamlTyConName with a DamlData.
sourceimpl PartialEq<DamlVariant<'_>> for DamlData<'_>
impl PartialEq<DamlVariant<'_>> for DamlData<'_>
Convenience impl to compare a DamlVariant with a DamlData.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlData<'a>
impl<'a> Send for DamlData<'a>
impl<'a> Sync for DamlData<'a>
impl<'a> Unpin for DamlData<'a>
impl<'a> UnwindSafe for DamlData<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more