pub enum RangedForm {
Bare,
Exact {
value: Span,
},
LegacyMin {
value: Span,
},
LegacyMax {
value: Span,
},
Left {
comparison: Comparison,
value: Span,
},
Right {
value: Span,
comparison: Comparison,
},
Range {
left: Span,
left_cmp: Comparison,
right_cmp: Comparison,
right: Span,
},
}Expand description
The form of a ranged feature expression.
Covers all syntactic forms including bare presence check, legacy min/max prefix, modern colon, and range comparison operators.
Variants§
Bare
(feature) — bare presence/boolean check of a ranged feature.
Exact
(feature: value) — modern colon form.
LegacyMin
(min-feature: value) — legacy min-prefixed colon form.
LegacyMax
(max-feature: value) — legacy max-prefixed colon form.
Left
(feature op value) — feature name on the left of the comparison.
Right
(value op feature) — feature name on the right of the comparison.
Range
(v1 op feature op v2) — range with feature name in the middle.
Trait Implementations§
Source§impl Clone for RangedForm
impl Clone for RangedForm
Source§fn clone(&self) -> RangedForm
fn clone(&self) -> RangedForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RangedForm
impl RefUnwindSafe for RangedForm
impl Send for RangedForm
impl Sync for RangedForm
impl Unpin for RangedForm
impl UnsafeUnpin for RangedForm
impl UnwindSafe for RangedForm
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