pub enum ElementValue {
}Expand description
The value of an element in an annotation.
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.7.16.1
Variants§
Byte(u16)
Char(u16)
Double(u16)
Float(u16)
Int(u16)
Long(u16)
Short(u16)
Boolean(u16)
String(u16)
EnumConstValue
Class(u16)
AnnotationValue(Annotation)
Array(Vec<ElementValue>)
Trait Implementations§
Source§impl Clone for ElementValue
impl Clone for ElementValue
Source§fn clone(&self) -> ElementValue
fn clone(&self) -> ElementValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElementValue
impl Debug for ElementValue
impl Eq for ElementValue
Source§impl PartialEq for ElementValue
impl PartialEq for ElementValue
Source§fn eq(&self, other: &ElementValue) -> bool
fn eq(&self, other: &ElementValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElementValue
Auto Trait Implementations§
impl Freeze for ElementValue
impl RefUnwindSafe for ElementValue
impl Send for ElementValue
impl Sync for ElementValue
impl Unpin for ElementValue
impl UnsafeUnpin for ElementValue
impl UnwindSafe for ElementValue
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