pub struct Signature {
pub signature_index: u16,
}Fields§
§signature_index: u16Implementations§
Source§impl Signature
impl Signature
pub fn signature<'attribute, 'constant_pool: 'attribute>( &'attribute self, constant_pool: &'constant_pool ConstantPool, ) -> Option<&'constant_pool Utf8>
Sourcepub fn as_class_signature<'attribute, 'constant_pool: 'attribute>(
&'attribute self,
constant_pool: &'constant_pool ConstantPool,
) -> Result<Signature, NodeResError>
pub fn as_class_signature<'attribute, 'constant_pool: 'attribute>( &'attribute self, constant_pool: &'constant_pool ConstantPool, ) -> Result<Signature, NodeResError>
Parses current signature attribute’s string into class signature. Returns Err on either invalid constant reference or signature format.
Sourcepub fn as_field_signature<'attribute, 'constant_pool: 'attribute>(
&'attribute self,
constant_pool: &'constant_pool ConstantPool,
) -> Result<Signature, NodeResError>
pub fn as_field_signature<'attribute, 'constant_pool: 'attribute>( &'attribute self, constant_pool: &'constant_pool ConstantPool, ) -> Result<Signature, NodeResError>
Parses current signature attribute’s string into field signature. Returns Err on either invalid constant reference or signature format.
Sourcepub fn as_method_signature<'attribute, 'constant_pool: 'attribute>(
&'attribute self,
constant_pool: &'constant_pool ConstantPool,
) -> Result<Signature, NodeResError>
pub fn as_method_signature<'attribute, 'constant_pool: 'attribute>( &'attribute self, constant_pool: &'constant_pool ConstantPool, ) -> Result<Signature, NodeResError>
Parses current signature attribute’s string into method signature. Returns Err on either invalid constant reference or signature format.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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