pub struct ValidatedInterval { /* private fields */ }Expand description
A validated interval: a FloatInterval together with a proof obligation tag.
In a real verified system this would carry a kernel proof; here we store a human-readable certificate string.
Implementations§
Source§impl ValidatedInterval
impl ValidatedInterval
Sourcepub fn verified(interval: FloatInterval, certificate: impl Into<String>) -> Self
pub fn verified(interval: FloatInterval, certificate: impl Into<String>) -> Self
Create a verified validated interval.
Sourcepub fn unverified(interval: FloatInterval) -> Self
pub fn unverified(interval: FloatInterval) -> Self
Create an unverified validated interval (e.g., computed, not proved).
Sourcepub fn interval(&self) -> FloatInterval
pub fn interval(&self) -> FloatInterval
Return the underlying interval.
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Return whether this interval has been formally verified.
Sourcepub fn certificate(&self) -> &str
pub fn certificate(&self) -> &str
The certificate string.
Trait Implementations§
Source§impl Clone for ValidatedInterval
impl Clone for ValidatedInterval
Source§fn clone(&self) -> ValidatedInterval
fn clone(&self) -> ValidatedInterval
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 moreAuto Trait Implementations§
impl Freeze for ValidatedInterval
impl RefUnwindSafe for ValidatedInterval
impl Send for ValidatedInterval
impl Sync for ValidatedInterval
impl Unpin for ValidatedInterval
impl UnsafeUnpin for ValidatedInterval
impl UnwindSafe for ValidatedInterval
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