#[non_exhaustive]pub enum FeatureId {
Level88Conditions,
Level66Renames,
OccursDepending,
EditedPic,
Comp1Comp2,
SignSeparate,
NestedOdo,
}Expand description
Identifier for a COBOL feature tracked in the support matrix.
§Examples
use copybook_support_matrix::{FeatureId, find_feature_by_id};
let id = FeatureId::Level88Conditions;
if let Some(feature) = find_feature_by_id(id) {
assert_eq!(feature.name, "LEVEL 88 condition names");
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Level88Conditions
Level-88 condition name VALUE clauses.
Level66Renames
Level-66 RENAMES non-storage renaming.
OccursDepending
Variable-length OCCURS DEPENDING ON arrays.
EditedPic
Edited numeric PICTURE clauses (e.g. PIC Z,ZZZ.99).
Comp1Comp2
COMP-1 / COMP-2 IEEE 754 floating-point types.
SignSeparate
SIGN LEADING / TRAILING SEPARATE directives.
NestedOdo
Nested OCCURS DEPENDING ON (ODO inside ODO).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FeatureId
impl<'de> Deserialize<'de> for FeatureId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeatureId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeatureId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FeatureId
impl Serialize for FeatureId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FeatureId
impl Eq for FeatureId
impl StructuralPartialEq for FeatureId
Auto Trait Implementations§
impl Freeze for FeatureId
impl RefUnwindSafe for FeatureId
impl Send for FeatureId
impl Sync for FeatureId
impl Unpin for FeatureId
impl UnsafeUnpin for FeatureId
impl UnwindSafe for FeatureId
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