pub struct Float(/* private fields */);
Implementations§
Source§impl Float
impl Float
pub fn new(t: &FloatType, value: f64) -> Self
pub fn new_checked(t: &FloatType, value: f64, loc: &Location) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_type_float(&self) -> FloatType
pub fn get_value(&self) -> f64
Trait Implementations§
Source§impl From<MlirAttribute> for Float
impl From<MlirAttribute> for Float
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Float
impl IAttribute for Float
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn as_attribute(&self) -> Attribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
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