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 duplicate of the value. Read more
1.0.0ยง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ยงimpl PartialOrd for ConstantValue
impl PartialOrd for ConstantValue
impl StructuralPartialEq for ConstantValue
Auto Trait Implementationsยง
impl Freeze for ConstantValue
impl RefUnwindSafe for ConstantValue
impl Send for ConstantValue
impl Sync for ConstantValue
impl Unpin for ConstantValue
impl UnwindSafe for ConstantValue
Blanket Implementationsยง
ยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
ยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
ยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงunsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit)