pub enum GepTypeError {
NotAPointer,
NoIndices,
DynamicStructIndex {
index: usize,
},
StructFieldOutOfBounds {
index: usize,
field: usize,
num_fields: usize,
},
CannotIndex {
index: usize,
ty: String,
},
}Expand description
Errors that can occur during GEP type computation.
Variants§
Trait Implementations§
Source§impl Clone for GepTypeError
impl Clone for GepTypeError
Source§fn clone(&self) -> GepTypeError
fn clone(&self) -> GepTypeError
Returns a duplicate of the value. Read more
1.0.0 · 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 GepTypeError
impl Debug for GepTypeError
Source§impl Display for GepTypeError
impl Display for GepTypeError
Source§impl Error for GepTypeError
impl Error for GepTypeError
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()
Auto Trait Implementations§
impl Freeze for GepTypeError
impl RefUnwindSafe for GepTypeError
impl Send for GepTypeError
impl Sync for GepTypeError
impl Unpin for GepTypeError
impl UnwindSafe for GepTypeError
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