pub struct NameAndType {
pub name_index: u16,
pub type_index: u16,
}Expand description
Represents constant NameAndType.
Fields§
§name_index: u16§type_index: u16Implementations§
Source§impl NameAndType
impl NameAndType
Sourcepub fn name<'constant, 'constant_pool: 'constant>(
&'constant self,
constant_pool: &'constant_pool ConstantPool,
) -> Option<&'constant_pool Utf8>
pub fn name<'constant, 'constant_pool: 'constant>( &'constant self, constant_pool: &'constant_pool ConstantPool, ) -> Option<&'constant_pool Utf8>
Gets the name of NameAndType.
Sourcepub fn typ<'constant, 'constant_pool: 'constant>(
&'constant self,
constant_pool: &'constant_pool ConstantPool,
) -> Option<&'constant_pool Utf8>
pub fn typ<'constant, 'constant_pool: 'constant>( &'constant self, constant_pool: &'constant_pool ConstantPool, ) -> Option<&'constant_pool Utf8>
Gets the type of NameAndType.
Trait Implementations§
Source§impl Clone for NameAndType
impl Clone for NameAndType
Source§fn clone(&self) -> NameAndType
fn clone(&self) -> NameAndType
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 moreSource§impl Debug for NameAndType
impl Debug for NameAndType
Source§impl<'de> Deserialize<'de> for NameAndType
impl<'de> Deserialize<'de> for NameAndType
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 for NameAndType
impl PartialEq for NameAndType
Source§impl Serialize for NameAndType
impl Serialize for NameAndType
impl Eq for NameAndType
impl StructuralPartialEq for NameAndType
Auto Trait Implementations§
impl Freeze for NameAndType
impl RefUnwindSafe for NameAndType
impl Send for NameAndType
impl Sync for NameAndType
impl Unpin for NameAndType
impl UnwindSafe for NameAndType
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