Enum AstConstantFp
pub enum AstConstantFp {
Float(f32),
Double(f64),
}Expand description
A constant floating-point value.
Variants§
Implementations§
§impl AstConstantFp
impl AstConstantFp
pub fn get_ast_type(&self) -> AstType
pub fn get_ast_type(&self) -> AstType
Gets the AST type of the constant floating-point value.
Trait Implementations§
§impl Clone for AstConstantFp
impl Clone for AstConstantFp
§fn clone(&self) -> AstConstantFp
fn clone(&self) -> AstConstantFp
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 AstConstantFp
impl Debug for AstConstantFp
§impl Display for AstConstantFp
impl Display for AstConstantFp
§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 PartialEq for AstConstantFp
impl PartialEq for AstConstantFp
§impl PartialOrd for AstConstantFp
impl PartialOrd for AstConstantFp
impl Copy for AstConstantFp
impl StructuralPartialEq for AstConstantFp
Auto Trait Implementations§
impl Freeze for AstConstantFp
impl RefUnwindSafe for AstConstantFp
impl Send for AstConstantFp
impl Sync for AstConstantFp
impl Unpin for AstConstantFp
impl UnwindSafe for AstConstantFp
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