pub enum BuilderError {
UnsetPosition,
AlignmentError(AlignmentError),
ExtractOutOfRange,
BitwidthError,
PointeeTypeMismatch,
NotSameType,
NotPointerOrInteger,
OrderingError(OrderingError),
GEPPointee,
GEPIndex,
}Expand description
Errors that can be generated by the Builder. All build_* methods return a Result<_, BuilderError>, which must be handled.
Variants§
UnsetPosition
AlignmentError(AlignmentError)
ExtractOutOfRange
BitwidthError
PointeeTypeMismatch
NotSameType
NotPointerOrInteger
OrderingError(OrderingError)
GEPPointee
GEPIndex
Trait Implementations§
Source§impl Debug for BuilderError
impl Debug for BuilderError
Source§impl Display for BuilderError
impl Display for BuilderError
Source§impl Error for BuilderError
impl Error for BuilderError
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 From<AlignmentError> for BuilderError
impl From<AlignmentError> for BuilderError
Source§fn from(source: AlignmentError) -> Self
fn from(source: AlignmentError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for Error
impl From<BuilderError> for Error
Source§fn from(source: BuilderError) -> Self
fn from(source: BuilderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BuilderError
impl PartialEq for BuilderError
impl Eq for BuilderError
impl StructuralPartialEq for BuilderError
Auto Trait Implementations§
impl Freeze for BuilderError
impl RefUnwindSafe for BuilderError
impl Send for BuilderError
impl Sync for BuilderError
impl Unpin for BuilderError
impl UnsafeUnpin for BuilderError
impl UnwindSafe for BuilderError
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