Struct daml_lf::element::DamlPackage
source · [−]pub struct DamlPackage<'a> { /* private fields */ }Implementations
sourceimpl<'a> DamlPackage<'a>
impl<'a> DamlPackage<'a>
pub const fn new(
name: Cow<'a, str>,
package_id: Cow<'a, str>,
version: Option<Cow<'a, str>>,
language_version: LanguageVersion,
root_module: DamlModule<'a>
) -> Self
pub fn name(&self) -> &str
pub fn package_id(&self) -> &str
sourcepub const fn language_version(&self) -> LanguageVersion
pub const fn language_version(&self) -> LanguageVersion
The Daml LF language version.
pub const fn root_module(&self) -> &DamlModule<'a>
Trait Implementations
sourceimpl<'a> Clone for DamlPackage<'a>
impl<'a> Clone for DamlPackage<'a>
sourcefn clone(&self) -> DamlPackage<'a>
fn clone(&self) -> DamlPackage<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> DamlVisitableElement<'a> for DamlPackage<'a>
impl<'a> DamlVisitableElement<'a> for DamlPackage<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> Debug for DamlPackage<'a>
impl<'a> Debug for DamlPackage<'a>
sourceimpl<'a> IntoBoundedStatic for DamlPackage<'a>
impl<'a> IntoBoundedStatic for DamlPackage<'a>
type Static = DamlPackage<'static>
type Static = DamlPackage<'static>
The target type is bounded by the 'static lifetime.
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<'a> Serialize for DamlPackage<'a>
impl<'a> Serialize for DamlPackage<'a>
sourceimpl<'a> ToBoundedStatic for DamlPackage<'a>
impl<'a> ToBoundedStatic for DamlPackage<'a>
type Static = DamlPackage<'static>
type Static = DamlPackage<'static>
The target type is bounded by the 'static lifetime.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlPackage<'a>
impl<'a> Send for DamlPackage<'a>
impl<'a> Sync for DamlPackage<'a>
impl<'a> Unpin for DamlPackage<'a>
impl<'a> UnwindSafe for DamlPackage<'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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more