pub struct Float {
pub source: FloatSource,
/* private fields */
}Fields§
§source: FloatSourceImplementations§
Source§impl Float
impl Float
pub fn new(source: FloatSource) -> Float
pub fn new_constant_f32(value: f32) -> Self
pub fn new_constant_f64(value: f64) -> Self
pub fn kind(&self) -> Result<FloatKind>
pub fn get_constant_value(&self) -> Result<Option<ConstantSource>>
pub fn negate(self: Rc<Self>) -> Self
pub fn add(self: Rc<Self>, rhs: Rc<Float>) -> Result<Self>
pub fn sub(self: Rc<Self>, rhs: Rc<Float>) -> Result<Self>
pub fn mul(self: Rc<Self>, rhs: Rc<Float>) -> Result<Self>
pub fn div(self: Rc<Self>, rhs: Rc<Float>) -> Result<Self>
Trait Implementations§
Source§impl Translation for &Float
impl Translation for &Float
impl StructuralPartialEq for Float
Auto Trait Implementations§
impl !Freeze for Float
impl !RefUnwindSafe for Float
impl !Send for Float
impl !Sync for Float
impl Unpin for Float
impl !UnwindSafe for Float
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