pub enum LanguageVersion {
Lv0,
Lv1(LanguageV1MinorVersion),
}Expand description
Daml Ledger Fragment language version.
Variants§
Lv0
Lv1(LanguageV1MinorVersion)
Implementations§
Source§impl LanguageVersion
impl LanguageVersion
pub const V0: LanguageVersion = LanguageVersion::Lv0
pub const V1_0: LanguageVersion
pub const V1_1: LanguageVersion
pub const V1_11: LanguageVersion
pub const V1_12: LanguageVersion
pub const V1_13: LanguageVersion
pub const V1_14: LanguageVersion
pub const V1_2: LanguageVersion
pub const V1_3: LanguageVersion
pub const V1_4: LanguageVersion
pub const V1_5: LanguageVersion
pub const V1_6: LanguageVersion
pub const V1_7: LanguageVersion
pub const V1_8: LanguageVersion
pub const V1_DEV: LanguageVersion
pub fn new_v1(minor: LanguageV1MinorVersion) -> Self
pub fn supports_feature(self, feature_version: &LanguageFeatureVersion) -> bool
Trait Implementations§
Source§impl Clone for LanguageVersion
impl Clone for LanguageVersion
Source§fn clone(&self) -> LanguageVersion
fn clone(&self) -> LanguageVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageVersion
impl Debug for LanguageVersion
Source§impl Display for LanguageVersion
impl Display for LanguageVersion
Source§impl Hash for LanguageVersion
impl Hash for LanguageVersion
Source§impl IntoBoundedStatic for LanguageVersion
impl IntoBoundedStatic for LanguageVersion
Source§type Static = LanguageVersion
type Static = LanguageVersion
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl Ord for LanguageVersion
impl Ord for LanguageVersion
Source§fn cmp(&self, other: &LanguageVersion) -> Ordering
fn cmp(&self, other: &LanguageVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LanguageVersion
impl PartialEq for LanguageVersion
Source§impl PartialOrd for LanguageVersion
impl PartialOrd for LanguageVersion
Source§impl Serialize for LanguageVersion
impl Serialize for LanguageVersion
Source§impl ToBoundedStatic for LanguageVersion
impl ToBoundedStatic for LanguageVersion
impl Copy for LanguageVersion
impl Eq for LanguageVersion
impl StructuralPartialEq for LanguageVersion
Auto Trait Implementations§
impl Freeze for LanguageVersion
impl RefUnwindSafe for LanguageVersion
impl Send for LanguageVersion
impl Sync for LanguageVersion
impl Unpin for LanguageVersion
impl UnwindSafe for LanguageVersion
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