pub struct CompilationError {
pub kind: CompilationErrorKind,
pub message: String,
}Fields§
§kind: CompilationErrorKind§message: StringImplementations§
Source§impl CompilationError
impl CompilationError
pub fn is_limit_exceeded(&self) -> bool
pub fn limit_exceeded(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CompilationError
impl Clone for CompilationError
Source§fn clone(&self) -> CompilationError
fn clone(&self) -> CompilationError
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 CompilationError
impl Debug for CompilationError
Source§impl Display for CompilationError
impl Display for CompilationError
impl Eq for CompilationError
Source§impl Error for CompilationError
impl Error for CompilationError
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 From<&str> for CompilationError
impl From<&str> for CompilationError
Source§impl From<CompilationError> for Error
impl From<CompilationError> for Error
Source§fn from(error: CompilationError) -> Self
fn from(error: CompilationError) -> Self
Converts to this type from the input type.
Source§impl From<PreparationError> for CompilationError
impl From<PreparationError> for CompilationError
Source§fn from(error: PreparationError) -> Self
fn from(error: PreparationError) -> Self
Converts to this type from the input type.
Source§impl From<String> for CompilationError
impl From<String> for CompilationError
Source§impl PartialEq for CompilationError
impl PartialEq for CompilationError
Source§fn eq(&self, other: &CompilationError) -> bool
fn eq(&self, other: &CompilationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompilationError
Auto Trait Implementations§
impl Freeze for CompilationError
impl RefUnwindSafe for CompilationError
impl Send for CompilationError
impl Sync for CompilationError
impl Unpin for CompilationError
impl UnsafeUnpin for CompilationError
impl UnwindSafe for CompilationError
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