pub struct Index<I> { /* private fields */ }
Expand description
A 1-based index into the constant pool.
Implementations§
Trait Implementations§
source§impl<I> Ord for Index<I>
impl<I> Ord for Index<I>
source§impl<I> PartialEq for Index<I>
impl<I> PartialEq for Index<I>
source§impl<I> PartialOrd for Index<I>
impl<I> PartialOrd for Index<I>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'input> ToValue<'input> for Index<Class<'input>>
impl<'input> ToValue<'input> for Index<Class<'input>>
type Target = Class<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Double>
impl<'input> ToValue<'input> for Index<Double>
type Target = Double
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Dynamic<'input>>
impl<'input> ToValue<'input> for Index<Dynamic<'input>>
type Target = Dynamic<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<FieldRef<'input>>
impl<'input> ToValue<'input> for Index<FieldRef<'input>>
type Target = FieldRef<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Float>
impl<'input> ToValue<'input> for Index<Float>
type Target = Float
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Integer>
impl<'input> ToValue<'input> for Index<Integer>
type Target = Integer
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<InterfaceMethodRef<'input>>
impl<'input> ToValue<'input> for Index<InterfaceMethodRef<'input>>
type Target = InterfaceMethodRef<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<InvokeDynamic<'input>>
impl<'input> ToValue<'input> for Index<InvokeDynamic<'input>>
type Target = InvokeDynamic<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Long>
impl<'input> ToValue<'input> for Index<Long>
type Target = Long
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<MethodHandle<'input>>
impl<'input> ToValue<'input> for Index<MethodHandle<'input>>
type Target = MethodHandle<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<MethodRef<'input>>
impl<'input> ToValue<'input> for Index<MethodRef<'input>>
type Target = MethodRef<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<MethodType<'input>>
impl<'input> ToValue<'input> for Index<MethodType<'input>>
type Target = MethodType<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Module<'input>>
impl<'input> ToValue<'input> for Index<Module<'input>>
type Target = Module<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<NameAndType<'input>>
impl<'input> ToValue<'input> for Index<NameAndType<'input>>
type Target = NameAndType<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Package<'input>>
impl<'input> ToValue<'input> for Index<Package<'input>>
type Target = Package<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<String<'input>>
impl<'input> ToValue<'input> for Index<String<'input>>
type Target = String<'input>
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
source§impl<'input> ToValue<'input> for Index<Utf8<'input>>
impl<'input> ToValue<'input> for Index<Utf8<'input>>
type Target = &'input MStr
fn retrieve_from( self, pool: &ConstantPool<'input>, ) -> Result<Self::Target, DecodeError>
impl<I> Copy for Index<I>
impl<I> Eq for Index<I>
Auto Trait Implementations§
impl<I> Freeze for Index<I>
impl<I> RefUnwindSafe for Index<I>
impl<I> Send for Index<I>
impl<I> Sync for Index<I>
impl<I> Unpin for Index<I>
impl<I> UnwindSafe for Index<I>
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.