Struct daml_lf::element::DamlDefValue
source · [−]pub struct DamlDefValue<'a> {
pub name: Cow<'a, str>,
pub ty: DamlType<'a>,
pub expr: DamlExpr<'a>,
pub no_party_literals: bool,
pub is_test: bool,
}Fields
name: Cow<'a, str>ty: DamlType<'a>expr: DamlExpr<'a>no_party_literals: boolis_test: boolImplementations
sourceimpl<'a> DamlDefValue<'a>
impl<'a> DamlDefValue<'a>
pub const fn new(
name: Cow<'a, str>,
ty: DamlType<'a>,
expr: DamlExpr<'a>,
no_party_literals: bool,
is_test: bool
) -> Self
pub const fn ty(&self) -> &DamlType<'a>
pub const fn expr(&self) -> &DamlExpr<'a>
pub const fn no_party_literals(&self) -> bool
pub const fn is_test(&self) -> bool
Trait Implementations
sourceimpl<'a> Clone for DamlDefValue<'a>
impl<'a> Clone for DamlDefValue<'a>
sourcefn clone(&self) -> DamlDefValue<'a>
fn clone(&self) -> DamlDefValue<'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 DamlDefValue<'a>
impl<'a> DamlVisitableElement<'a> for DamlDefValue<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> Debug for DamlDefValue<'a>
impl<'a> Debug for DamlDefValue<'a>
sourceimpl<'a> IntoBoundedStatic for DamlDefValue<'a>
impl<'a> IntoBoundedStatic for DamlDefValue<'a>
type Static = DamlDefValue<'static>
type Static = DamlDefValue<'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 DamlDefValue<'a>
impl<'a> Serialize for DamlDefValue<'a>
sourceimpl<'a> ToBoundedStatic for DamlDefValue<'a>
impl<'a> ToBoundedStatic for DamlDefValue<'a>
type Static = DamlDefValue<'static>
type Static = DamlDefValue<'static>
The target type is bounded by the 'static lifetime.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlDefValue<'a>
impl<'a> Send for DamlDefValue<'a>
impl<'a> Sync for DamlDefValue<'a>
impl<'a> Unpin for DamlDefValue<'a>
impl<'a> UnwindSafe for DamlDefValue<'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