Skip to main content

Real

Struct Real 

Source
pub struct Real;

Implementations§

Source§

impl Real

Source

pub fn from_int(_: Int) -> Self

logic

Trait Implementations§

Source§

impl AddLogic for Real

Source§

fn add_logic(self, other: Self) -> Self

logic

Source§

type Output = Real

Source§

impl DivLogic for Real

Source§

fn div_logic(self, other: Self) -> Self

logic

Source§

type Output = Real

Source§

impl MulLogic for Real

Source§

fn mul_logic(self, other: Self) -> Self

logic

Source§

type Output = Real

Source§

impl NegLogic for Real

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = Real

Source§

impl OrdLogic for Real

Source§

fn lt_log_total(self, other: Self)

logic

ensures

self < other || self == other || other < self

Source§

fn cmp_log(self, other: Self) -> Ordering

The comparison operation. Read more
Source§

impl PartialOrdLogic for Real

Source§

fn lt_log(self, _: Self) -> bool

logic

Source§

fn le_log(self, _: Self) -> bool

logic

Source§

fn irreflexive(self)

logic

ensures

!(self < self)

Source§

fn transitive(x: Self, y: Self, z: Self)

logic

requires

x < y

requires

y < z

ensures

x < z

Source§

fn le_lt_log(self, other: Self)

logic

ensures

(self <= other) == (self < other || self == other)

Source§

fn gt_log(self, other: Self) -> bool

The logical > operation. Read more
Source§

fn ge_log(self, other: Self) -> bool

The logical >= operation. Read more
Source§

fn partial_cmp_log(self, other: Self) -> Option<Ordering>

logic(open, sealed) Read more

Source§

impl SubLogic for Real

Source§

fn sub_logic(self, other: Self) -> Self

logic

Source§

type Output = Real

Auto Trait Implementations§

§

impl Freeze for Real

§

impl Objective for Real

§

impl RefUnwindSafe for Real

§

impl Send for Real

§

impl Sync for Real

§

impl Unpin for Real

§

impl UnsafeUnpin for Real

§

impl UnwindSafe for Real

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.