pub struct InternalCompilerError {
pub message: String,
pub module_name: Option<String>,
pub location: Option<Location>,
}Fields§
§message: String§module_name: Option<String>§location: Option<Location>Implementations§
Source§impl InternalCompilerError
impl InternalCompilerError
pub fn internal_compiler_error_string(message: String) -> Self
Source§impl InternalCompilerError
impl InternalCompilerError
pub fn internal_compiler_error_string_string( message: String, module_name: String, ) -> Self
Source§impl InternalCompilerError
impl InternalCompilerError
pub fn internal_compiler_error_string_string_location( message: String, module_name: String, location: Location, ) -> Self
Trait Implementations§
Source§impl Clone for InternalCompilerError
impl Clone for InternalCompilerError
Source§fn clone(&self) -> InternalCompilerError
fn clone(&self) -> InternalCompilerError
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 InternalCompilerError
impl Debug for InternalCompilerError
Source§impl Display for InternalCompilerError
impl Display for InternalCompilerError
Source§impl Error for InternalCompilerError
Available on crate feature std only.
impl Error for InternalCompilerError
Available on crate feature
std only.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()
impl Send for InternalCompilerError
impl Sync for InternalCompilerError
Auto Trait Implementations§
impl Freeze for InternalCompilerError
impl RefUnwindSafe for InternalCompilerError
impl Unpin for InternalCompilerError
impl UnsafeUnpin for InternalCompilerError
impl UnwindSafe for InternalCompilerError
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