pub enum LowerError {
Unparsable(String),
UnsupportedFile(String),
TooLarge,
DeclarationOnly,
}Expand description
Why a Language plugin cannot lower a file.
Variants§
Unparsable(String)
The file does not parse; the payload is the parser’s message.
UnsupportedFile(String)
No rule of the Language plugin covers the file; the payload says why.
TooLarge
The file has more source lines than a u32 holds.
DeclarationOnly
The file only declares types and holds no code to measure, such as a TypeScript .d.ts file.
Trait Implementations§
Source§impl Clone for LowerError
impl Clone for LowerError
Source§impl Debug for LowerError
impl Debug for LowerError
Source§impl Display for LowerError
impl Display for LowerError
impl Eq for LowerError
Source§impl Error for LowerError
impl Error for LowerError
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<LowerError> for LowerError
impl From<LowerError> for LowerError
Source§fn from(error: LowerError) -> LowerError
fn from(error: LowerError) -> LowerError
Converts to this type from the input type.
Source§impl PartialEq for LowerError
impl PartialEq for LowerError
impl StructuralPartialEq for LowerError
Auto Trait Implementations§
impl Forget for LowerError
impl Freeze for LowerError
impl Move for LowerError
impl RefUnwindSafe for LowerError
impl Send for LowerErrorwhere
RawVecInner: Send,
impl Sync for LowerErrorwhere
RawVecInner: Sync,
impl Unpin for LowerError
impl UnsafeUnpin for LowerError
impl UnwindSafe for LowerErrorwhere
RawVecInner: UnwindSafe,
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