pub struct FastMathFlags { /* private fields */ }Expand description
Floating-point fast-math flags (#arith.fastmath).
Each flag relaxes IEEE-754 semantics to permit additional optimization.
Implementations§
Source§impl FastMathFlags
impl FastMathFlags
Sourcepub const NAME: &'static str = "fastmath"
pub const NAME: &'static str = "fastmath"
Upstream MLIR attribute mnemonic, without the dialect prefix.
Sourcepub const fn from_bits(bits: u8) -> Option<Self>
pub const fn from_bits(bits: u8) -> Option<Self>
Creates a set from a raw mask, rejecting undefined bits.
Sourcepub fn mlir_spelling(self) -> String
pub fn mlir_spelling(self) -> String
Returns the comma-separated MLIR spelling, or none.
Source§impl FastMathFlags
impl FastMathFlags
Trait Implementations§
Source§impl BitOr for FastMathFlags
impl BitOr for FastMathFlags
Source§impl Clone for FastMathFlags
impl Clone for FastMathFlags
impl Copy for FastMathFlags
Source§impl Debug for FastMathFlags
impl Debug for FastMathFlags
Source§impl Default for FastMathFlags
impl Default for FastMathFlags
Source§impl Display for FastMathFlags
impl Display for FastMathFlags
impl Eq for FastMathFlags
Source§impl Hash for FastMathFlags
impl Hash for FastMathFlags
Source§impl Parsable for FastMathFlags
impl Parsable for FastMathFlags
Source§type Parsed = FastMathFlags
type Parsed = FastMathFlags
The type of the parsed entity.
Source§fn parse<'a>(
state_stream: &mut StateStream<'a>,
_: Self::Arg,
) -> ParseResult<'a, Self::Parsed>
fn parse<'a>( state_stream: &mut StateStream<'a>, _: Self::Arg, ) -> ParseResult<'a, Self::Parsed>
Define a parser using existing combinators and call
into on Parser::parse_stream to get the final ParseResult.
Use state_stream.state as necessary.Source§fn parser<'a>(
arg: Self::Arg,
) -> Box<dyn Parser<Stream<Stream<Stream<Stream<IteratorStream<CharIterator<'a>>, SourcePosition>>>, State<'a>>, Output = Self::Parsed, PartialState = ()> + 'a>where
Self::Parsed: 'a,
fn parser<'a>(
arg: Self::Arg,
) -> Box<dyn Parser<Stream<Stream<Stream<Stream<IteratorStream<CharIterator<'a>>, SourcePosition>>>, State<'a>>, Output = Self::Parsed, PartialState = ()> + 'a>where
Self::Parsed: 'a,
Get a parser combinator that can work on StateStream as its input.
Source§impl PartialEq for FastMathFlags
impl PartialEq for FastMathFlags
Source§impl Printable for FastMathFlags
impl Printable for FastMathFlags
impl StructuralPartialEq for FastMathFlags
Auto Trait Implementations§
impl Freeze for FastMathFlags
impl RefUnwindSafe for FastMathFlags
impl Send for FastMathFlags
impl Sync for FastMathFlags
impl Unpin for FastMathFlags
impl UnsafeUnpin for FastMathFlags
impl UnwindSafe for FastMathFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.