pub struct DamlTyCon<'a> { /* private fields */ }Expand description
A Daml type constructor.
Implementations§
Source§impl<'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§
Source§impl<'a> DamlVisitableElement<'a> for DamlTyCon<'a>
impl<'a> DamlVisitableElement<'a> for DamlTyCon<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
Source§impl<'a> IntoBoundedStatic for DamlTyCon<'a>
impl<'a> IntoBoundedStatic for DamlTyCon<'a>
Source§impl PartialEq for DamlTyCon<'_>
Equality for DamlTyCon is defined on the DamlTyConName only, type_arguments are not considered.
impl PartialEq for DamlTyCon<'_>
Equality for DamlTyCon is defined on the DamlTyConName only, type_arguments are not considered.
Source§impl<'a> ToBoundedStatic for DamlTyCon<'a>
impl<'a> ToBoundedStatic for DamlTyCon<'a>
impl Eq for DamlTyCon<'_>
Auto Trait Implementations§
impl<'a> Freeze for DamlTyCon<'a>
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§
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