Struct evcxr::CompilationError
source · pub struct CompilationError {
pub json: JsonValue,
/* private fields */
}
Fields§
§json: JsonValue
Implementations§
source§impl CompilationError
impl CompilationError
sourcepub fn is_from_user_code(&self) -> bool
pub fn is_from_user_code(&self) -> bool
Returns whether this error originated in code supplied by the user.
sourcepub fn is_from_generated_code(&self) -> bool
pub fn is_from_generated_code(&self) -> bool
Returns whether this error originated in code that we generated.
pub fn message(&self) -> String
pub fn code(&self) -> Option<&str>
pub fn explanation(&self) -> Option<&str>
pub fn evcxr_extra_hint(&self) -> Option<&'static str>
pub fn spanned_messages(&self) -> &[SpannedMessage]
sourcepub fn primary_spanned_message(&self) -> Option<&SpannedMessage>
pub fn primary_spanned_message(&self) -> Option<&SpannedMessage>
Returns the primary spanned message, or if there is no primary spanned message, perhaps because it was reported in generated code, so go filtered out, then returns the first spanned message, if any.
pub fn level(&self) -> &str
pub fn help_spanned(&self) -> &[SpannedMessage]
pub fn help(&self) -> Vec<String> ⓘ
pub fn rendered(&self) -> String
Trait Implementations§
source§impl Clone for CompilationError
impl Clone for CompilationError
source§fn clone(&self) -> CompilationError
fn clone(&self) -> CompilationError
Returns a copy 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 more