Struct evcxr::CompilationError
source · [−]pub struct CompilationError {
pub json: JsonValue,
/* private fields */
}
Fields
json: JsonValue
Implementations
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
pub fn rendered(&self) -> String
Trait Implementations
sourceimpl Clone for CompilationError
impl Clone for CompilationError
sourcefn clone(&self) -> CompilationError
fn clone(&self) -> CompilationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for CompilationError
impl Send for CompilationError
impl Sync for CompilationError
impl Unpin for CompilationError
impl UnwindSafe for CompilationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.