pub struct Measure<'a> {
pub ctx: &'a LayoutContext,
/* private fields */
}Expand description
A real-number measurement of a property of an object.
Fields§
§ctx: &'a LayoutContextImplementations§
Source§impl<'a> Measure<'a>
impl<'a> Measure<'a>
pub fn zero(ctx: &'a LayoutContext) -> Self
pub fn new_const( ctx: &'a LayoutContext, value: f64, ) -> Result<Self, MeasureError>
pub fn new_unbound(ctx: &'a LayoutContext) -> Self
pub fn is_unbound(&self) -> bool
pub fn build_z3<'ctx>( self, build_ctx: &mut Z3BuildContext<'ctx>, ) -> Result<Real<'ctx>>
pub fn prop_eq(self, that: Self) -> Prop<'a>
pub fn prop_lt(self, that: Self) -> Prop<'a>
pub fn prop_le(self, that: Self) -> Prop<'a>
pub fn prop_gt(self, that: Self) -> Prop<'a>
pub fn prop_ge(self, that: Self) -> Prop<'a>
pub fn min(self, that: Self) -> Measure<'a>
pub fn max(self, that: Self) -> Measure<'a>
Trait Implementations§
impl<'a> Copy for Measure<'a>
Auto Trait Implementations§
impl<'a> Freeze for Measure<'a>
impl<'a> !RefUnwindSafe for Measure<'a>
impl<'a> !Send for Measure<'a>
impl<'a> !Sync for Measure<'a>
impl<'a> Unpin for Measure<'a>
impl<'a> !UnwindSafe for Measure<'a>
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