pub struct Index<I> { /* private fields */ }
Expand description
A 1-based index into the constant pool.
Implementations
Trait Implementations
sourceimpl Insertable<Class> for Index<Class>
impl Insertable<Class> for Index<Class>
sourceimpl Insertable<Double> for Index<Double>
impl Insertable<Double> for Index<Double>
sourceimpl Insertable<Dynamic> for Index<Dynamic>
impl Insertable<Dynamic> for Index<Dynamic>
sourceimpl Insertable<FieldRef> for Index<FieldRef>
impl Insertable<FieldRef> for Index<FieldRef>
sourceimpl Insertable<Float> for Index<Float>
impl Insertable<Float> for Index<Float>
sourceimpl Insertable<Integer> for Index<Integer>
impl Insertable<Integer> for Index<Integer>
sourceimpl Insertable<InterfaceMethodRef> for Index<InterfaceMethodRef>
impl Insertable<InterfaceMethodRef> for Index<InterfaceMethodRef>
fn insert<Ctx: EncoderContext>(
self,
_: &mut Ctx
) -> Result<Index<InterfaceMethodRef>, EncodeError>
sourceimpl Insertable<InvokeDynamic> for Index<InvokeDynamic>
impl Insertable<InvokeDynamic> for Index<InvokeDynamic>
fn insert<Ctx: EncoderContext>(
self,
_: &mut Ctx
) -> Result<Index<InvokeDynamic>, EncodeError>
sourceimpl Insertable<Item> for Index<Item>
impl Insertable<Item> for Index<Item>
sourceimpl Insertable<Long> for Index<Long>
impl Insertable<Long> for Index<Long>
sourceimpl Insertable<MethodHandle> for Index<MethodHandle>
impl Insertable<MethodHandle> for Index<MethodHandle>
fn insert<Ctx: EncoderContext>(
self,
_: &mut Ctx
) -> Result<Index<MethodHandle>, EncodeError>
sourceimpl Insertable<MethodRef> for Index<MethodRef>
impl Insertable<MethodRef> for Index<MethodRef>
sourceimpl Insertable<MethodType> for Index<MethodType>
impl Insertable<MethodType> for Index<MethodType>
fn insert<Ctx: EncoderContext>(
self,
_: &mut Ctx
) -> Result<Index<MethodType>, EncodeError>
sourceimpl Insertable<Module> for Index<Module>
impl Insertable<Module> for Index<Module>
sourceimpl Insertable<NameAndType> for Index<NameAndType>
impl Insertable<NameAndType> for Index<NameAndType>
fn insert<Ctx: EncoderContext>(
self,
_: &mut Ctx
) -> Result<Index<NameAndType>, EncodeError>
sourceimpl Insertable<Package> for Index<Package>
impl Insertable<Package> for Index<Package>
sourceimpl Insertable<String> for Index<String>
impl Insertable<String> for Index<String>
sourceimpl Insertable<Utf8> for Index<Utf8>
impl Insertable<Utf8> for Index<Utf8>
impl<I> Copy for Index<I>
impl<I: Eq> Eq for Index<I>
impl<I> StructuralEq for Index<I>
impl<I> StructuralPartialEq for Index<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for Index<I> where
I: RefUnwindSafe,
impl<I> Send for Index<I> where
I: Send,
impl<I> Sync for Index<I> where
I: Sync,
impl<I> Unpin for Index<I> where
I: Unpin,
impl<I> UnwindSafe for Index<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<I> Insertable<Class> for I where
I: Insertable<Utf8>,
impl<I> Insertable<Class> for I where
I: Insertable<Utf8>,
sourceimpl<I> Insertable<String> for I where
I: Insertable<Utf8>,
impl<I> Insertable<String> for I where
I: Insertable<Utf8>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more