pub struct AssumedRange {
pub var: String,
pub lo: f64,
pub hi: f64,
pub dim: Dimension,
}Expand description
A declared input range: Assume x is between lo and hi. (or the Require that spelling —
the range IS the enforced RuntimeAssert shape, not the head keyword). The gain-scaling
pass’s input: a variable whose runtime value is CONTRACT-bounded to [lo, hi] on every tier.
Fields§
§var: String§lo: f64§hi: f64§dim: DimensionThe contract’s physical dimension — recovered from the parser’s quantity-bound fold
(Assume v is between 0.2 volts and 0.7 volts.). Bare numeric contracts carry
Dimension::DIMENSIONLESS. Metadata + coherence in this phase: the artifact bits are
identical to the bare twin’s; netlist dimension propagation is a later phase.
Trait Implementations§
Source§impl Clone for AssumedRange
impl Clone for AssumedRange
Source§fn clone(&self) -> AssumedRange
fn clone(&self) -> AssumedRange
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 AssumedRange
impl Debug for AssumedRange
Source§impl PartialEq for AssumedRange
impl PartialEq for AssumedRange
impl StructuralPartialEq for AssumedRange
Auto Trait Implementations§
impl Freeze for AssumedRange
impl RefUnwindSafe for AssumedRange
impl Send for AssumedRange
impl Sync for AssumedRange
impl Unpin for AssumedRange
impl UnsafeUnpin for AssumedRange
impl UnwindSafe for AssumedRange
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.