Enum interoptopus::lang::c::ConstantValue
source · pub enum ConstantValue {
Primitive(PrimitiveValue),
}
Expand description
The value of a constant.
Variants§
Primitive(PrimitiveValue)
Trait Implementations§
source§impl Clone for ConstantValue
impl Clone for ConstantValue
source§fn clone(&self) -> ConstantValue
fn clone(&self) -> ConstantValue
Returns a copy 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 moresource§impl Debug for ConstantValue
impl Debug for ConstantValue
source§impl From<bool> for ConstantValue
impl From<bool> for ConstantValue
source§impl From<f32> for ConstantValue
impl From<f32> for ConstantValue
source§impl From<f64> for ConstantValue
impl From<f64> for ConstantValue
source§impl From<i16> for ConstantValue
impl From<i16> for ConstantValue
source§impl From<i32> for ConstantValue
impl From<i32> for ConstantValue
source§impl From<i64> for ConstantValue
impl From<i64> for ConstantValue
source§impl From<i8> for ConstantValue
impl From<i8> for ConstantValue
source§impl From<u16> for ConstantValue
impl From<u16> for ConstantValue
source§impl From<u32> for ConstantValue
impl From<u32> for ConstantValue
source§impl From<u64> for ConstantValue
impl From<u64> for ConstantValue
source§impl From<u8> for ConstantValue
impl From<u8> for ConstantValue
source§impl PartialEq for ConstantValue
impl PartialEq for ConstantValue
source§fn eq(&self, other: &ConstantValue) -> bool
fn eq(&self, other: &ConstantValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConstantValue
impl PartialOrd for ConstantValue
source§fn partial_cmp(&self, other: &ConstantValue) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstantValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for ConstantValue
Auto Trait Implementations§
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnwindSafe for ConstantValue
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