Struct noak::writer::cpool::MethodHandle
source · pub struct MethodHandle {
pub kind: MethodKind,
pub reference: Index<Item>,
}
Fields§
§kind: MethodKind
§reference: Index<Item>
Implementations§
source§impl MethodHandle
impl MethodHandle
pub fn by<I>(kind: MethodKind, reference: I) -> MethodHandleInserter<I>where
I: Insertable<Item>,
Trait Implementations§
source§impl Clone for MethodHandle
impl Clone for MethodHandle
source§fn clone(&self) -> MethodHandle
fn clone(&self) -> MethodHandle
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 MethodHandle
impl Debug for MethodHandle
source§impl From<MethodHandle> for Item
impl From<MethodHandle> for Item
source§fn from(item: MethodHandle) -> Item
fn from(item: MethodHandle) -> Item
Converts to this type from the input type.
source§impl Hash for MethodHandle
impl Hash for MethodHandle
source§impl Insertable<MethodHandle> for Index<MethodHandle>
impl Insertable<MethodHandle> for Index<MethodHandle>
fn insert<Ctx: EncoderContext>( self, _: &mut Ctx, ) -> Result<Index<MethodHandle>, EncodeError>
source§impl Insertable<MethodHandle> for MethodHandle
impl Insertable<MethodHandle> for MethodHandle
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<MethodHandle>, EncodeError>
source§impl<I: Insertable<Item>> Insertable<MethodHandle> for MethodHandleInserter<I>
impl<I: Insertable<Item>> Insertable<MethodHandle> for MethodHandleInserter<I>
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<MethodHandle>, EncodeError>
source§impl PartialEq for MethodHandle
impl PartialEq for MethodHandle
source§fn eq(&self, other: &MethodHandle) -> bool
fn eq(&self, other: &MethodHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MethodHandle
impl StructuralPartialEq for MethodHandle
Auto Trait Implementations§
impl Freeze for MethodHandle
impl RefUnwindSafe for MethodHandle
impl Send for MethodHandle
impl Sync for MethodHandle
impl Unpin for MethodHandle
impl UnwindSafe for MethodHandle
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.