Struct noak::writer::cpool::NameAndType
source · pub struct NameAndType {
pub name: Index<Utf8>,
pub descriptor: Index<Utf8>,
}
Fields§
§name: Index<Utf8>
§descriptor: Index<Utf8>
Trait Implementations§
source§impl Clone for NameAndType
impl Clone for NameAndType
source§fn clone(&self) -> NameAndType
fn clone(&self) -> NameAndType
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 NameAndType
impl Debug for NameAndType
source§impl From<NameAndType> for Item
impl From<NameAndType> for Item
source§fn from(item: NameAndType) -> Item
fn from(item: NameAndType) -> Item
Converts to this type from the input type.
source§impl Hash for NameAndType
impl Hash for NameAndType
source§impl<Name, Descriptor> Insertable<NameAndType> for (Name, Descriptor)
impl<Name, Descriptor> Insertable<NameAndType> for (Name, Descriptor)
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<NameAndType>, EncodeError>
source§impl Insertable<NameAndType> for Index<NameAndType>
impl Insertable<NameAndType> for Index<NameAndType>
fn insert<Ctx: EncoderContext>( self, _: &mut Ctx, ) -> Result<Index<NameAndType>, EncodeError>
source§impl Insertable<NameAndType> for NameAndType
impl Insertable<NameAndType> for NameAndType
fn insert<Ctx: EncoderContext>( self, context: &mut Ctx, ) -> Result<Index<NameAndType>, EncodeError>
source§impl PartialEq for NameAndType
impl PartialEq for NameAndType
source§fn eq(&self, other: &NameAndType) -> bool
fn eq(&self, other: &NameAndType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
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.