pub struct Index<I> { /* private fields */ }Expand description
A 1-based index into the constant pool.
Implementations§
Trait Implementations§
impl<I> Copy for Index<I>
impl<I> Eq for Index<I>
Source§impl<I> Ord for Index<I>
impl<I> Ord for Index<I>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I> PartialOrd for Index<I>
impl<I> PartialOrd for Index<I>
Source§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>
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> UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.