pub struct ConstantPoolError {
pub kind: ConstantPoolErrorKind,
pub index: u16,
pub target_index: Option<u16>,
pub message: String,
}Expand description
A typed constant-pool failure located at the entry that caused it.
Fields§
§kind: ConstantPoolErrorKindStable machine-matchable failure category.
index: u16Constant-pool index containing the invalid value, or the next index while decoding.
target_index: Option<u16>Referenced constant-pool index when the failure concerns a target.
message: StringHuman-readable context.
Trait Implementations§
Source§impl Clone for ConstantPoolError
impl Clone for ConstantPoolError
Source§fn clone(&self) -> ConstantPoolError
fn clone(&self) -> ConstantPoolError
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 moreSource§impl Debug for ConstantPoolError
impl Debug for ConstantPoolError
Source§impl Display for ConstantPoolError
impl Display for ConstantPoolError
impl Eq for ConstantPoolError
Source§impl Error for ConstantPoolError
impl Error for ConstantPoolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ConstantPoolError
impl PartialEq for ConstantPoolError
impl StructuralPartialEq for ConstantPoolError
Auto Trait Implementations§
impl Freeze for ConstantPoolError
impl RefUnwindSafe for ConstantPoolError
impl Send for ConstantPoolError
impl Sync for ConstantPoolError
impl Unpin for ConstantPoolError
impl UnsafeUnpin for ConstantPoolError
impl UnwindSafe for ConstantPoolError
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