Enum BtConstantValue
pub enum BtConstantValue {
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Float32(f32),
Float64(f64),
}Expand description
A constant arithmetic value.
Variants§
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Float32(f32)
Float64(f64)
Implementations§
§impl BtConstantValue
impl BtConstantValue
Trait Implementations§
§impl Clone for BtConstantValue
impl Clone for BtConstantValue
§fn clone(&self) -> BtConstantValue
fn clone(&self) -> BtConstantValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BtConstantValue
impl Debug for BtConstantValue
§impl Display for BtConstantValue
impl Display for BtConstantValue
§impl From<AstConstantFp> for BtConstantValue
impl From<AstConstantFp> for BtConstantValue
§fn from(value: AstConstantFp) -> Self
fn from(value: AstConstantFp) -> Self
Converts to this type from the input type.
§impl From<AstConstantInteger> for BtConstantValue
impl From<AstConstantInteger> for BtConstantValue
§fn from(value: AstConstantInteger) -> Self
fn from(value: AstConstantInteger) -> Self
Converts to this type from the input type.
§impl PartialEq for BtConstantValue
impl PartialEq for BtConstantValue
§impl PartialOrd for BtConstantValue
impl PartialOrd for BtConstantValue
impl StructuralPartialEq for BtConstantValue
Auto Trait Implementations§
impl Freeze for BtConstantValue
impl RefUnwindSafe for BtConstantValue
impl Send for BtConstantValue
impl Sync for BtConstantValue
impl Unpin for BtConstantValue
impl UnwindSafe for BtConstantValue
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