[−][src]Enum cranelift_codegen_meta::cdsl::ast::Literal
Variants
A value of an enumerated immediate operand.
Some immediate operand kinds like intcc
and floatcc
have an enumerated range of values
corresponding to a Rust enum type. An Enumerator
object is an AST leaf node representing one
of the values.
A bitwise value of an immediate operand, used for bitwise exact floating point constants.
Int(i64)
A value of an integer immediate operand.
A empty list of variable set of arguments.
Implementations
impl Literal
[src]
pub fn enumerator_for(kind: &OperandKind, value: &'static str) -> Self
[src]
pub fn bits(kind: &OperandKind, bits: u64) -> Self
[src]
pub fn constant(kind: &OperandKind, value: i64) -> Self
[src]
pub fn empty_vararg() -> Self
[src]
pub fn to_rust_code(&self) -> String
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,