pub enum EmissionError {
NumberRejected {
spelling: String,
},
NulTerminatedTextRejected,
SourceSpanRosterContradiction,
SourceSpanUnresolved(SpanResolutionRefusal),
}Expand description
Why one admitted generated literal could not cross the compiler-token host.
This is a host contradiction rather than a declaration diagnostic: the ordinary compiler admitted the literal before the proc API was asked to materialize it.
Variants§
NumberRejected
The proc-macro literal API rejected one already admitted numeric spelling.
NulTerminatedTextRejected
The proc-macro C-string literal API rejected already admitted C-string material.
SourceSpanRosterContradiction
A generated tree’s private source roster no longer matches its recursive token denominator.
SourceSpanUnresolved(SpanResolutionRefusal)
One preserved source handle does not resolve in the capture table supplied for emission.
Trait Implementations§
Source§impl Clone for EmissionError
impl Clone for EmissionError
Source§fn clone(&self) -> EmissionError
fn clone(&self) -> EmissionError
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 EmissionError
impl Debug for EmissionError
Source§impl Display for EmissionError
impl Display for EmissionError
impl Eq for EmissionError
Source§impl Error for EmissionError
impl Error for EmissionError
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 Hash for EmissionError
impl Hash for EmissionError
Source§impl PartialEq for EmissionError
impl PartialEq for EmissionError
impl StructuralPartialEq for EmissionError
Auto Trait Implementations§
impl Freeze for EmissionError
impl RefUnwindSafe for EmissionError
impl Send for EmissionError
impl Sync for EmissionError
impl Unpin for EmissionError
impl UnsafeUnpin for EmissionError
impl UnwindSafe for EmissionError
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