pub enum RangeItem {
Single(Expr),
Range(Bound, Bound),
Tolerance {
center: Expr,
tol: Expr,
relative: bool,
},
}Expand description
One element of a covergroup_range_list (Syntax 19-2).
Variants§
Single(Expr)
A single value (or, for a set expression’s elements, one element).
Range(Bound, Bound)
[lo:hi], [$:hi], [lo:$].
Tolerance
[center +/- tol] (relative = false) or [center +%- tol]
(relative = true), 11.4.13.
Trait Implementations§
impl StructuralPartialEq for RangeItem
Auto Trait Implementations§
impl Freeze for RangeItem
impl RefUnwindSafe for RangeItem
impl Send for RangeItem
impl Sync for RangeItem
impl Unpin for RangeItem
impl UnsafeUnpin for RangeItem
impl UnwindSafe for RangeItem
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