pub enum ConstantPoolErrorKind {
Bytes,
UnknownTag,
Version,
ReferenceKind,
InvalidIndex,
UnusableTarget,
WrongCategory,
InvalidLayout,
}Expand description
A stable constant-pool failure category.
Variants§
Bytes
The underlying bounded byte lane failed.
UnknownTag
The pool uses an unassigned constant tag.
Version
The entry is not admitted by the classfile major version.
ReferenceKind
A method-handle reference kind is outside 1 through 9.
InvalidIndex
A referenced index is zero or outside the pool.
UnusableTarget
A reference points at a reserved or unusable slot.
WrongCategory
A reference points at the wrong constant category.
InvalidLayout
An in-memory slot sequence cannot be encoded faithfully.
Trait Implementations§
Source§impl Clone for ConstantPoolErrorKind
impl Clone for ConstantPoolErrorKind
Source§fn clone(&self) -> ConstantPoolErrorKind
fn clone(&self) -> ConstantPoolErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstantPoolErrorKind
Source§impl Debug for ConstantPoolErrorKind
impl Debug for ConstantPoolErrorKind
impl Eq for ConstantPoolErrorKind
Source§impl PartialEq for ConstantPoolErrorKind
impl PartialEq for ConstantPoolErrorKind
impl StructuralPartialEq for ConstantPoolErrorKind
Auto Trait Implementations§
impl Freeze for ConstantPoolErrorKind
impl RefUnwindSafe for ConstantPoolErrorKind
impl Send for ConstantPoolErrorKind
impl Sync for ConstantPoolErrorKind
impl Unpin for ConstantPoolErrorKind
impl UnsafeUnpin for ConstantPoolErrorKind
impl UnwindSafe for ConstantPoolErrorKind
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