pub struct DamlTyCon<'a> { /* private fields */ }Expand description
A Daml type constructor.
Implementations
sourceimpl<'a> DamlTyCon<'a>
impl<'a> DamlTyCon<'a>
pub fn new(
tycon: Box<DamlTyConName<'a>>,
type_arguments: Vec<DamlType<'a>>
) -> Self
pub fn new_absolute<'b, S: AsRef<str> + 'b>(
package_id: &'b str,
module: &'b [S],
entity: &'b str
) -> DamlTyCon<'b>
pub fn new_absolute_with_type_args<'b, S: AsRef<str> + 'b>(
package_id: &'b str,
module: &'b [S],
entity: &'b str,
type_arguments: Vec<DamlType<'b>>
) -> DamlTyCon<'b>
pub fn type_arguments(&self) -> &[DamlType<'_>]
pub fn tycon(&self) -> &DamlTyConName<'_>
Trait Implementations
sourceimpl<'a> DamlVisitableElement<'a> for DamlTyCon<'a>
impl<'a> DamlVisitableElement<'a> for DamlTyCon<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> IntoBoundedStatic for DamlTyCon<'a>
impl<'a> IntoBoundedStatic for DamlTyCon<'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<DamlTyCon<'_>> for DamlTyCon<'_>
impl PartialEq<DamlTyCon<'_>> for DamlTyCon<'_>
Equality for DamlTyCon is defined on the DamlTyConName only, type_arguments are not considered.
sourceimpl<'a> ToBoundedStatic for DamlTyCon<'a>
impl<'a> ToBoundedStatic for DamlTyCon<'a>
impl Eq for DamlTyCon<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlTyCon<'a>
impl<'a> Send for DamlTyCon<'a>
impl<'a> Sync for DamlTyCon<'a>
impl<'a> Unpin for DamlTyCon<'a>
impl<'a> UnwindSafe for DamlTyCon<'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