Struct daml_lf::element::DamlNonLocalValueName
source · [−]pub struct DamlNonLocalValueName<'a> { /* private fields */ }Expand description
A Daml non-local value name.
Implementations
sourceimpl<'a> DamlNonLocalValueName<'a>
impl<'a> DamlNonLocalValueName<'a>
pub fn new(
name: Cow<'a, str>,
source_package_id: Cow<'a, str>,
source_package_name: Cow<'a, str>,
source_module_path: Vec<Cow<'a, str>>,
target_package_id: Cow<'a, str>,
target_package_name: Cow<'a, str>,
target_module_path: Vec<Cow<'a, str>>
) -> Self
pub fn name(&self) -> &str
pub fn source_package_id(&self) -> &str
pub fn source_package_name(&self) -> &str
pub fn source_module_path(&self) -> impl Iterator<Item = &str>
pub fn target_package_id(&self) -> &str
pub fn target_package_name(&self) -> &str
pub fn target_module_path(&self) -> impl Iterator<Item = &str>
Trait Implementations
sourceimpl<'a> Clone for DamlNonLocalValueName<'a>
impl<'a> Clone for DamlNonLocalValueName<'a>
sourcefn clone(&self) -> DamlNonLocalValueName<'a>
fn clone(&self) -> DamlNonLocalValueName<'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 DamlNonLocalValueName<'a>
impl<'a> DamlVisitableElement<'a> for DamlNonLocalValueName<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> Debug for DamlNonLocalValueName<'a>
impl<'a> Debug for DamlNonLocalValueName<'a>
sourceimpl<'a> IntoBoundedStatic for DamlNonLocalValueName<'a>
impl<'a> IntoBoundedStatic for DamlNonLocalValueName<'a>
type Static = DamlNonLocalValueName<'static>
type Static = DamlNonLocalValueName<'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 DamlNonLocalValueName<'a>
impl<'a> Serialize for DamlNonLocalValueName<'a>
sourceimpl<'a> ToBoundedStatic for DamlNonLocalValueName<'a>
impl<'a> ToBoundedStatic for DamlNonLocalValueName<'a>
type Static = DamlNonLocalValueName<'static>
type Static = DamlNonLocalValueName<'static>
The target type is bounded by the 'static lifetime.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlNonLocalValueName<'a>
impl<'a> Send for DamlNonLocalValueName<'a>
impl<'a> Sync for DamlNonLocalValueName<'a>
impl<'a> Unpin for DamlNonLocalValueName<'a>
impl<'a> UnwindSafe for DamlNonLocalValueName<'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