Struct cfsp::node::attribute::ConstantValue
source · pub struct ConstantValue {
pub constant_value_index: u16,
}Fields§
§constant_value_index: u16Implementations§
source§impl ConstantValue
impl ConstantValue
pub fn constant<'attribute, 'constant_pool: 'attribute>( &'attribute self, constant_pool: &'constant_pool ConstantPool ) -> Option<&'constant_pool Constant>
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<'de> Deserialize<'de> for ConstantValue
impl<'de> Deserialize<'de> for ConstantValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ConstantValue> for ConstantValue
impl PartialEq<ConstantValue> 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 Serialize for ConstantValue
impl Serialize for ConstantValue
impl Eq for ConstantValue
impl StructuralEq for ConstantValue
impl 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